Skip to contentSkip to conversation

sparc64 fix context value for ITLB fault

PATCH Applied Igor Kovalenko 2 participants 2 messages Apr 27, 2009 – Apr 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

target-sparc/helper.c +1 -1
Index: qemu-trunk/target-sparc/helper.c
===================================================================
@@ -490,7 +490,7 @@ static int get_physical_address_code(CPU
 #ifdef DEBUG_MMU
     printf("TMISS at 0x%" PRIx64 "\n", address);
 #endif
-    env->immuregs[6] = (address & ~0x1fffULL) | (env->immuregs[1] & 0x1fff);
+    env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
     env->exception_index = TT_TMISS;
     return 1;
 }
Applied
#1 lore raw
Quoted 4 lines · Igor Kovalenko

Revert previous change to get_physical_address_code:
I/D MMU context register is shared, so using dmmuregs[1] is correct

Thanks, applied. The line deserves a comment.