From patchwork Fri Nov 4 20:50:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9413205 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 CF30A60573 for ; Fri, 4 Nov 2016 21:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1A222AE95 for ; Fri, 4 Nov 2016 21:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B616B2AEB0; Fri, 4 Nov 2016 21:00:38 +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 6AF762AE95 for ; Fri, 4 Nov 2016 21:00:38 +0000 (UTC) Received: from localhost ([::1]:40748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lbJ-0008E4-CL for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Nov 2016 17:00:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lSZ-0000u1-1v for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2lSY-00045v-EM for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:35 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:34129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2lSY-00044z-8P for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:34 -0400 Received: by mail-wm0-x241.google.com with SMTP id p190so5635089wmp.1 for ; Fri, 04 Nov 2016 13:51:34 -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 :in-reply-to:references; bh=CZgKf0ZpuWoWikBhS+RV8Ys69/N2j3gLnpvphlXfFS4=; b=QNq+8rMWBWUuCgeqJAnsf4UMNT8R9faHVPbMlmpLHOhKBlOtkZPqDp2VlWybVfjpt3 2b7GmT/2AMWfIu8Xl/W8M0OyuSCPGXEO+BaR+gze6QhZ/jyvzoe4a4X0AMHDIn8leOYG vQHAWm0gE+rlApwUbdWMRxKp4HQUk71gJ+meh/bkcObO2CzQJX9VOXzxhlUEgABylomt riKqJzhZ2ZVug5T5X9iMpbKx7kUEk6D0+IwbjRf+WGAuygKYbMiti+k2Av9qy0IH7mJh ZlJveprDR1RccpCtmCUIg2dba7Hn7IMXGSsfHkzqNc7McfJndIhWK03ZXlujO2jcmDIl S+AA== 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:in-reply-to:references; bh=CZgKf0ZpuWoWikBhS+RV8Ys69/N2j3gLnpvphlXfFS4=; b=gbslaBj3k0uq9w6UWYzHXjMAdTTIGYQGcfRE+usFH9DArJRsPRDG0fSzsGh77ce1wM kpxPqY+CmOydSvVFbg7SrpwZixBmIkFosyFdT6mHdu8loZa+gbRvSw5UPy3FgD6Nc9Hq puhf5lwmu8aALK8jQ3w8uHK6SfNFs+70hDQ8KVDXwhfiUtYf2pknwTyWsyFJv8kv+ydd nBKgI2YxqVIm6yUrBm7ncBRXhn4A5L7LXQW0pW71W4niW01IxTnzdUk702OC3elzQcU4 Ir4JvtNxfjKQBzjE0Tg+qhLbg1uEB9UBYMAtHzZy4CqS1GcYHVnjV9I2YPU62SM/cwuu QWdQ== X-Gm-Message-State: ABUngvcDv2PAuBJpCqDvv33ptCSeSjjya3U58hkF7vCESJBBwx+pTXF/ba46iV5DMWQQxQ== X-Received: by 10.28.23.199 with SMTP id 190mr178825wmx.107.1478292693230; Fri, 04 Nov 2016 13:51:33 -0700 (PDT) Received: from localhost (x55b4b5cf.dyn.telefonica.de. [85.180.181.207]) by smtp.gmail.com with ESMTPSA id au8sm16098229wjc.12.2016.11.04.13.51.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 13:51:32 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Fri, 4 Nov 2016 21:50:15 +0100 Message-Id: <3937d54ced279323ad65fbc2c9c61a47763630b7.1478291230.git.atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v1 14/30] 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 7e399a3..23d4673 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3298,7 +3298,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. */