From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN2xa-0005Fm-6D for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN2xY-0002gT-CN for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:09 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:33539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN2xY-0002gN-8G for qemu-devel@nongnu.org; Tue, 12 Jul 2016 15:03:08 -0400 Received: by mail-qt0-x242.google.com with SMTP id j37so892550qta.0 for ; Tue, 12 Jul 2016 12:03:08 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 12 Jul 2016 12:02:10 -0700 Message-Id: <1468350138-9736-17-git-send-email-rth@twiddle.net> In-Reply-To: <1468350138-9736-1-git-send-email-rth@twiddle.net> References: <1468350138-9736-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 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: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk 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 ba48687..49082c5 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.7.4