Clarify: dmmuregs[1] is not a typo
[qemu] / target-sparc / helper.c
index 09a2829..2ecafd1 100644 (file)
@@ -490,7 +490,8 @@ static int get_physical_address_code(CPUState *env,
 #ifdef DEBUG_MMU
     printf("TMISS at 0x%" PRIx64 "\n", address);
 #endif
-    env->immuregs[6] = (address & ~0x1fffULL) | (env->immuregs[1] & 0x1fff);
+    /* Context is stored in DMMU (dmmuregs[1]) also for IMMU */
+    env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
     env->exception_index = TT_TMISS;
     return 1;
 }