From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHh4N-0002rG-Gc for qemu-devel@nongnu.org; Mon, 27 Jun 2016 20:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHh4L-0004SG-FK for qemu-devel@nongnu.org; Mon, 27 Jun 2016 20:40:02 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:35646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHh4L-0004S8-Bn for qemu-devel@nongnu.org; Mon, 27 Jun 2016 20:40:01 -0400 Received: by mail-qk0-x241.google.com with SMTP id b136so324125qkg.2 for ; Mon, 27 Jun 2016 17:40:01 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 27 Jun 2016 17:39:05 -0700 Message-Id: <1467074353-26130-17-git-send-email-rth@twiddle.net> In-Reply-To: <1467074353-26130-1-git-send-email-rth@twiddle.net> References: <1467074353-26130-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v4 16/24] target-sparc: Fix obvious error in ASI_M_BFILL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Reviewed-By: Artyom Tarasenko 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 23840db..3700ca1 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.5.5