]> git.proxmox.com Git - qemu.git/commitdiff
target-sh4: fix TLB invalidation code
authorAlexandre Courbot <gnurou@gmail.com>
Tue, 25 Jan 2011 06:32:01 +0000 (15:32 +0900)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 25 Jan 2011 07:36:29 +0000 (08:36 +0100)
In cpu_sh4_invalidate_tlb, the UTLB was invalidated twice and the
ITLB left unchaged, probably because of some unfortunate copy/paste.

Signed-off-by: Alexandre Courbot <gnurou@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/helper.c

index 45449ea64e953aa2d6b04183e3be148525627825..bee05274fd6665b3baafbd5edcf6aac188662a8a 100644 (file)
@@ -559,8 +559,8 @@ void cpu_load_tlb(CPUSH4State * env)
         entry->v = 0;
     }
     /* ITLB */
-    for (i = 0; i < UTLB_SIZE; i++) {
-        tlb_t * entry = &s->utlb[i];
+    for (i = 0; i < ITLB_SIZE; i++) {
+        tlb_t * entry = &s->itlb[i];
         entry->v = 0;
     }