Patchwork [1/2] sparc64: fix mmu demap operand typo

login
register
mail settings
Submitter Igor V. Kovalenko
Date May 16, 2010, 12:11 a.m.
Message ID <20100516001123.8600.60491.stgit@skyserv>
Download mbox | patch
Permalink /patch/52739/
State New
Headers show

Comments

Igor V. Kovalenko - May 16, 2010, 12:11 a.m.
From: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>

- must use store address operand to demap, not store value

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
---
 target-sparc/op_helper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index fcfd3f3..ec39244 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -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