Sparc64: fix compilation with DEBUG_MMU
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
fe0d61231e
commit
31a68d5766
@ -579,7 +579,7 @@ void dump_mmu(CPUState *env)
|
|||||||
} else {
|
} else {
|
||||||
printf("DMMU dump:\n");
|
printf("DMMU dump:\n");
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
switch ((env->dtlb_tte[i] >> 61) & 3) {
|
switch ((env->dtlb[i].tte >> 61) & 3) {
|
||||||
default:
|
default:
|
||||||
case 0x0:
|
case 0x0:
|
||||||
mask = " 8k";
|
mask = " 8k";
|
||||||
@ -594,17 +594,17 @@ void dump_mmu(CPUState *env)
|
|||||||
mask = " 4M";
|
mask = " 4M";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((env->dtlb_tte[i] & 0x8000000000000000ULL) != 0) {
|
if ((env->dtlb[i].tte & 0x8000000000000000ULL) != 0) {
|
||||||
printf("[%02u] VA: " PRIx64 ", PA: " PRIx64
|
printf("[%02u] VA: %" PRIx64 ", PA: %" PRIx64
|
||||||
", %s, %s, %s, %s, ctx %" PRId64 "\n",
|
", %s, %s, %s, %s, ctx %" PRId64 "\n",
|
||||||
i,
|
i,
|
||||||
env->dtlb_tag[i] & (uint64_t)~0x1fffULL,
|
env->dtlb[i].tag & (uint64_t)~0x1fffULL,
|
||||||
env->dtlb_tte[i] & (uint64_t)0x1ffffffe000ULL,
|
env->dtlb[i].tte & (uint64_t)0x1ffffffe000ULL,
|
||||||
mask,
|
mask,
|
||||||
env->dtlb_tte[i] & 0x4? "priv": "user",
|
env->dtlb[i].tte & 0x4? "priv": "user",
|
||||||
env->dtlb_tte[i] & 0x2? "RW": "RO",
|
env->dtlb[i].tte & 0x2? "RW": "RO",
|
||||||
env->dtlb_tte[i] & 0x40? "locked": "unlocked",
|
env->dtlb[i].tte & 0x40? "locked": "unlocked",
|
||||||
env->dtlb_tag[i] & (uint64_t)0x1fffULL);
|
env->dtlb[i].tag & (uint64_t)0x1fffULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -613,7 +613,7 @@ void dump_mmu(CPUState *env)
|
|||||||
} else {
|
} else {
|
||||||
printf("IMMU dump:\n");
|
printf("IMMU dump:\n");
|
||||||
for (i = 0; i < 64; i++) {
|
for (i = 0; i < 64; i++) {
|
||||||
switch ((env->itlb_tte[i] >> 61) & 3) {
|
switch ((env->itlb[i].tte >> 61) & 3) {
|
||||||
default:
|
default:
|
||||||
case 0x0:
|
case 0x0:
|
||||||
mask = " 8k";
|
mask = " 8k";
|
||||||
@ -628,15 +628,15 @@ void dump_mmu(CPUState *env)
|
|||||||
mask = " 4M";
|
mask = " 4M";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((env->itlb_tte[i] & 0x8000000000000000ULL) != 0) {
|
if ((env->itlb[i].tte & 0x8000000000000000ULL) != 0) {
|
||||||
printf("[%02u] VA: " PRIx64 ", PA: " PRIx64
|
printf("[%02u] VA: %" PRIx64 ", PA: %" PRIx64
|
||||||
", %s, %s, %s, ctx %" PRId64 "\n",
|
", %s, %s, %s, ctx %" PRId64 "\n",
|
||||||
i,
|
i,
|
||||||
env->itlb[i].tag & (uint64_t)~0x1fffULL,
|
env->itlb[i].tag & (uint64_t)~0x1fffULL,
|
||||||
env->itlb_tte[i] & (uint64_t)0x1ffffffe000ULL,
|
env->itlb[i].tte & (uint64_t)0x1ffffffe000ULL,
|
||||||
mask,
|
mask,
|
||||||
env->itlb_tte[i] & 0x4? "priv": "user",
|
env->itlb[i].tte & 0x4? "priv": "user",
|
||||||
env->itlb_tte[i] & 0x40? "locked": "unlocked",
|
env->itlb[i].tte & 0x40? "locked": "unlocked",
|
||||||
env->itlb[i].tag & (uint64_t)0x1fffULL);
|
env->itlb[i].tag & (uint64_t)0x1fffULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user