Received: from eggs.gnu.org ([2001:4830:134:3::10]:44138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHCY-0006Dz-23 for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqHCW-0007i1-6N for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:24 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHCV-0007hr-VW for qemu-devel@nongnu.org; Sat, 01 Oct 2016 06:07:24 -0400 Received: by mail-wm0-x243.google.com with SMTP id b184so6754856wma.3 for ; Sat, 01 Oct 2016 03:07:23 -0700 (PDT) From: Artyom Tarasenko Date: Sat, 1 Oct 2016 12:05:17 +0200 Message-Id: <1475316333-9776-14-git-send-email-atar4qemu@gmail.com> In-Reply-To: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> References: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> Subject: [Qemu-devel] [PATCH 13/29] target-sparc: fix immediate UA2005 traps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Mark Cave-Ayland , Artyom Tarasenko Signed-off-by: Artyom Tarasenko --- target-sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 19ffb23..6520bb3 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3143,7 +3143,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) rs1 = GET_FIELD_SP(insn, 14, 18); if (IS_IMM) { - rs2 = GET_FIELD_SP(insn, 0, 6); + rs2 = GET_FIELD_SP(insn, 0, 7); if (rs1 == 0) { tcg_gen_movi_i32(trap, (rs2 & mask) + TT_TRAP); /* Signal that the trap value is fully constant. */ -- 2.7.2