Commit 7ab463cb524af324c4357ef4c148056c7e124f2c
1 parent
41d72852
Clarify: dmmuregs[1] is not a typo
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing
1 changed file
with
1 additions
and
0 deletions
target-sparc/helper.c
@@ -490,6 +490,7 @@ static int get_physical_address_code(CPUState *env, | @@ -490,6 +490,7 @@ static int get_physical_address_code(CPUState *env, | ||
490 | #ifdef DEBUG_MMU | 490 | #ifdef DEBUG_MMU |
491 | printf("TMISS at 0x%" PRIx64 "\n", address); | 491 | printf("TMISS at 0x%" PRIx64 "\n", address); |
492 | #endif | 492 | #endif |
493 | + /* Context is stored in DMMU (dmmuregs[1]) also for IMMU */ | ||
493 | env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff); | 494 | env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff); |
494 | env->exception_index = TT_TMISS; | 495 | env->exception_index = TT_TMISS; |
495 | return 1; | 496 | return 1; |