Received: from eggs.gnu.org ([2001:4830:134:3::10]:50935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYKG4-000649-DA for qemu-devel@nongnu.org; Tue, 23 Feb 2016 16:12:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYKG3-0001L8-9A for qemu-devel@nongnu.org; Tue, 23 Feb 2016 16:12:36 -0500 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:34187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYKG3-0001L3-3T for qemu-devel@nongnu.org; Tue, 23 Feb 2016 16:12:35 -0500 Received: by mail-qg0-x231.google.com with SMTP id b67so147361871qgb.1 for ; Tue, 23 Feb 2016 13:12:35 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Tue, 23 Feb 2016 13:11:52 -0800 Message-Id: <1456261920-29900-17-git-send-email-rth@twiddle.net> In-Reply-To: <1456261920-29900-1-git-send-email-rth@twiddle.net> References: <1456261920-29900-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v2 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, atar4qemu@gmail.com 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 1eff8b4..9bedac9 100644 --- a/target-sparc/ldst_helper.c +++ b/target-sparc/ldst_helper.c @@ -988,7 +988,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.0