diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2013-12-17 15:29:06 +1000 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2014-02-11 22:57:38 +1000 |
commit | db3be60deb01af6ee72edc7fa13f0ff820029831 (patch) | |
tree | df36af25ce0bc97942c572f2e81d77c495704353 /target-sparc | |
parent | 5ce5944dc0ffdc43c11b5cad11e526f699aabe4c (diff) | |
download | hqemu-db3be60deb01af6ee72edc7fa13f0ff820029831.zip hqemu-db3be60deb01af6ee72edc7fa13f0ff820029831.tar.gz |
exec: Make stb_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/ldst_helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c index 4bc2568..92761ad 100644 --- a/target-sparc/ldst_helper.c +++ b/target-sparc/ldst_helper.c @@ -1012,7 +1012,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi, { switch (size) { case 1: - stb_phys(addr, val); + stb_phys(cs->as, addr, val); break; case 2: stw_phys(cs->as, addr, val); @@ -1031,7 +1031,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi, { switch (size) { case 1: - stb_phys((hwaddr)addr + stb_phys(cs->as, (hwaddr)addr | ((hwaddr)(asi & 0xf) << 32), val); break; case 2: @@ -1811,7 +1811,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, target_ulong val, { switch (size) { case 1: - stb_phys(addr, val); + stb_phys(cs->as, addr, val); break; case 2: stw_phys(cs->as, addr, val); |