aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/ldst_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-09-03 13:15:26 -0700
committerRichard Henderson <rth@twiddle.net>2016-07-12 11:02:37 -0700
commitc095b83f9836cef80f64b32603fea240762a824b (patch)
treebe05625349e431c118326acb7e5c19f34e70dfe0 /target-sparc/ldst_helper.c
parente4dc0052a40d3e7b00ca0b008f345e2ed644aa20 (diff)
downloadqemu-arm-c095b83f9836cef80f64b32603fea240762a824b.tar.gz
target-sparc: Fix obvious error in ASI_M_BFILL
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-sparc/ldst_helper.c')
-rw-r--r--target-sparc/ldst_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c
index ba48687b19..49082c5091 100644
--- a/target-sparc/ldst_helper.c
+++ b/target-sparc/ldst_helper.c
@@ -989,7 +989,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi,
/* addr = dst
fill 32 bytes with val */
unsigned int i;
- uint32_t dst = addr & 7;
+ uint32_t dst = addr & ~7;
for (i = 0; i < 32; i += 8, dst += 8) {
cpu_stq_kernel(env, dst, val);