From c095b83f9836cef80f64b32603fea240762a824b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 3 Sep 2015 13:15:26 -0700 Subject: [PATCH] target-sparc: Fix obvious error in ASI_M_BFILL Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target-sparc/ldst_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c index ba48687b19b..49082c5091b 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); -- 2.39.5