Commit 417728d87526f43528fd4de5c7a250fe22d32207
Committed by
Blue Swirl
1 parent
82f2cfc3
sparc64 fix context value for ITLB fault
Revert previous change to get_physical_address_code: I/D MMU context register is shared, so using dmmuregs[1] is correct Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
target-sparc/helper.c
... | ... | @@ -490,7 +490,7 @@ static int get_physical_address_code(CPUState *env, |
490 | 490 | #ifdef DEBUG_MMU |
491 | 491 | printf("TMISS at 0x%" PRIx64 "\n", address); |
492 | 492 | #endif |
493 | - env->immuregs[6] = (address & ~0x1fffULL) | (env->immuregs[1] & 0x1fff); | |
493 | + env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff); | |
494 | 494 | env->exception_index = TT_TMISS; |
495 | 495 | return 1; |
496 | 496 | } | ... | ... |