Skip to contentSkip to conversation

[4897] Update TLB miss addresses

Qemu-devel Blue Swirl 1 participant 1 message Jul 19, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 4897

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4897
Author:   blueswir1
Date:     2008-07-19 10:04:48 +0000 (Sat, 19 Jul 2008)

Log Message:
-----------
Update TLB miss addresses

Modified Paths:
--------------
trunk/target-sparc/helper.c

Modified: trunk/target-sparc/helper.c
===================================================================

target-sparc/helper.c +2 -0
@@ -449,6 +449,7 @@
 #ifdef DEBUG_MMU
     printf("DMISS at 0x%" PRIx64 "\n", address);
 #endif
+    env->dmmuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
     env->exception_index = TT_DMISS;
     return 1;
 }
@@ -507,6 +508,7 @@
 #ifdef DEBUG_MMU
     printf("TMISS at 0x%" PRIx64 "\n", address);
 #endif
+    env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
     env->exception_index = TT_TMISS;
     return 1;
 }