aboutsummaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorSamuel Damashek <samuel.damashek@invincea.com>2016-07-06 14:26:52 -0400
committerRichard Henderson <rth@twiddle.net>2016-07-08 13:04:41 -0700
commita390284b80d2b6581143cdb40666674e60e635ae (patch)
tree7a964ccdfcf542b8e401b868eaf05853c817f71a /cputlb.c
parent7e9a7c50d9a400ef51242d661a261123c2cc9485 (diff)
cputlb: Add address parameter to VICTIM_TLB_HIT
[rth: Split out from the original patch.] Signed-off-by: Samuel Damashek <samuel.damashek@invincea.com> Message-Id: <20160706182652.16190-1-samuel.damashek@invincea.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'cputlb.c')
-rw-r--r--cputlb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cputlb.c b/cputlb.c
index 7518544e12..d068ee597e 100644
--- a/cputlb.c
+++ b/cputlb.c
@@ -523,9 +523,9 @@ static bool victim_tlb_hit(CPUArchState *env, size_t mmu_idx, size_t index,
}
/* Macro to call the above, with local variables from the use context. */
-#define VICTIM_TLB_HIT(TY) \
+#define VICTIM_TLB_HIT(TY, ADDR) \
victim_tlb_hit(env, mmu_idx, index, offsetof(CPUTLBEntry, TY), \
- addr & TARGET_PAGE_MASK)
+ (ADDR) & TARGET_PAGE_MASK)
#define MMUSUFFIX _mmu