sparc64: fix mmu demap operand typo
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Sun, 16 May 2010 00:11:24 +0000 (04:11 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 16 May 2010 07:54:33 +0000 (07:54 +0000)
- must use store address operand to demap, not store value

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c

index fcfd3f3161916007b2f3e04cb73fdefb8b1e2564..ec392445110da0c5c305ea95bcb44956be8f0266 100644 (file)
@@ -2877,7 +2877,7 @@ void helper_st_asi(target_ulong addr, target_ulong val, int asi, int size)
             return;
         }
     case 0x57: // I-MMU demap
-        demap_tlb(env->itlb, val, "immu", env);
+        demap_tlb(env->itlb, addr, "immu", env);
         return;
     case 0x58: // D-MMU regs
         {
@@ -2942,7 +2942,7 @@ void helper_st_asi(target_ulong addr, target_ulong val, int asi, int size)
             return;
         }
     case 0x5f: // D-MMU demap
-        demap_tlb(env->dtlb, val, "dmmu", env);
+        demap_tlb(env->dtlb, addr, "dmmu", env);
         return;
     case 0x49: // Interrupt data receive
         // XXX