From patchwork Sat Oct 1 10:05:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9359165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8D2C600C8 for ; Sat, 1 Oct 2016 10:29:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7ECC29933 for ; Sat, 1 Oct 2016 10:29:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B5B429946; Sat, 1 Oct 2016 10:29:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03D7529933 for ; Sat, 1 Oct 2016 10:29:50 +0000 (UTC) Received: from localhost ([::1]:55034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHYC-000854-Ub for patchwork-qemu-devel@patchwork.kernel.org; Sat, 01 Oct 2016 06:29:49 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FYV/zpQZUggfo4nFoyRKs/XrZH/AwcdoV9tvfCyCh1U=; b=C3S9aGHN3EdAY6I6Jmf6Kr/pVFHWHj4OZo/oENn33RKkD3BBWQPWAeVu9EvLqXO8Cr LHF8/cXdBjqa/xHayOc+/dAV2FQuv8mGxCuJxB6RwUhIx8pojEAUMGAq+3dSI1dbE4xG Yp6MkXMNq3pyvtu4O2Q4Cw3Z6NSF362lg+KI0n9D0M+NqOG8IdhDQo2heeqkUWJWyhXN jc/CDhhTIdSyAr3gJcRJO2YRz7KRVnTCqmg4mD4IDke4PW7wVtnF2gYIplEebWvIgkAE eLNnFUE8EfEaFvTfjO7SadL1rHwgaIXFk047d0s21inZc2rmy44tFtUaE/KarN1AuDyf 5F1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FYV/zpQZUggfo4nFoyRKs/XrZH/AwcdoV9tvfCyCh1U=; b=PIW5ATFx6vh4yvJ4XQmPSztN1M7o7krfvP49mF5Yk1PXFX1FurnZ/2+LfwUt5WWcHW ulipN75W0FvH/FRAtawuHu1gDv6/RJ8QflaG45SZCeNRIzMvl9rB+y22dyrXtlU1jvGq IHYOAU6usFPrxftEP8gX1dAqizJAkN6XGzDqL2sHmiG0N/ITKqAuJ1OSrI0oKI08QWpw lFm40W5BMZ8GWrBsslyoE6n2baKbRDlnEddsJ9smtEhYhsqg1OvqIBAV6qRwYp7YPIKR d4fth1KYCz41Bg4c7jjs0mKBYIHBmRIhRSVWSRTAhCBB3Eumd3GNuXC4hOLyhIgKTmpw lZCA== X-Gm-Message-State: AA6/9RksKaBImLxtiL2yipOrH5cA/TDgB9lMUapgGFepsPxwCNiMux4yIk/t7Y/IKTLX/Q== X-Received: by 10.194.178.165 with SMTP id cz5mr11552188wjc.202.1475316443444; Sat, 01 Oct 2016 03:07:23 -0700 (PDT) Received: from localhost (x55b4da19.dyn.telefonica.de. [85.180.218.25]) by smtp.gmail.com with ESMTPSA id r2sm8424190wmf.14.2016.10.01.03.07.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2016 03:07:22 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Sat, 1 Oct 2016 12:05:17 +0200 Message-Id: <1475316333-9776-14-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> References: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 13/29] target-sparc: fix immediate UA2005 traps X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Cave-Ayland , Artyom Tarasenko , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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. */