From patchwork Wed Jan 18 22:38:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9524883 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 B97306020B for ; Wed, 18 Jan 2017 22:44:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABD2D28540 for ; Wed, 18 Jan 2017 22:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A00D828639; Wed, 18 Jan 2017 22:44:35 +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 49BF528540 for ; Wed, 18 Jan 2017 22:44:35 +0000 (UTC) Received: from localhost ([::1]:44801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTyy2-00024r-4u for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Jan 2017 17:44:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTytB-0006an-M6 for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTytB-0002oA-0E for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:33 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTytA-0002nr-Qb for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:32 -0500 Received: by mail-wm0-x242.google.com with SMTP id d140so7556941wmd.2 for ; Wed, 18 Jan 2017 14:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NtJEEUVGglyGE0hiwOBGhPi53W3SAyqXXnNWKHfoyMg=; b=q9dcNA7xiCl12rC8dmXBWcQ50lEHkV0JG2dsKdXDSehSGpju0lbH2lXXsZ5wj4iDoG E9CD4+HmSkTEv1QS3kdmjNs9YnJcydV/l/AiR4apnSWFzCUaMTs1JTYaTdfM6d7NuTfy wpWG9Ao2c+trWZtzNtTNF80QVMJCF6lU1KKUGm2eNsJqpQxvF9ft2SvwsfuCthevr7el Cu0KoQKZZsR7hpgPRVM9vhXRX898kd4Sgln0G6bNGGW48HpQn9ynlMDRNErPSDxAjnS2 gU6M8Dd1I0KRgL0kChuq25eIE4h/3tQ6hsfyLoIlqmH7gWPg+pulPBCID3kwOn4Wx6hz yi1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NtJEEUVGglyGE0hiwOBGhPi53W3SAyqXXnNWKHfoyMg=; b=Gk9Q6o6nuOxE+l3mp310uZqBYgcqtBrSg20mqtLOXU7nxsm5xW6cBV5pakN7S3BHgB OLIhJ453NU3XhEmnFCC7fnU2PieSNmzyXk3jRHdZaWGisYIKv5TQU6M4Sb+T9pcZgZY/ 72VxX3FRbJiGqRjVYZNTp/kIZRBY9c8poRcjwO34RZm2Mri9Psjv4vL6ltDSt8krc9Wp cLcLy/5O9KNQnEkrf9NW9xKAANhUTiNGpYse4r0EdQ7IIc0CaVVzELBfh96S3yXoXmOp F5Vl+8uGBvOH/+z48O9YpNTdL1IdlG732mpwp9u1oiUKWVfwN1Dy6Nb6w57+x19kNIO/ kK1Q== X-Gm-Message-State: AIkVDXKw3muJvk15mOx1xs7SdsXASCnWZ7h+gNHo9sd+he5XthK8Lyj3TaTcMnWRPGsWtw== X-Received: by 10.223.160.132 with SMTP id m4mr5473514wrm.116.1484779171818; Wed, 18 Jan 2017 14:39:31 -0800 (PST) Received: from localhost (x4e33e2b8.dyn.telefonica.de. [78.51.226.184]) by smtp.gmail.com with ESMTPSA id z134sm48303322wmc.20.2017.01.18.14.39.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 14:39:31 -0800 (PST) From: Artyom Tarasenko To: peter.maydell@linaro.org Date: Wed, 18 Jan 2017 23:38:27 +0100 Message-Id: <1484779123-18968-15-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1484779123-18968-1-git-send-email-atar4qemu@gmail.com> References: <1484779123-18968-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::242 Subject: [Qemu-devel] [PULL 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@ilande.co.uk, qemu-devel@nongnu.org, Artyom Tarasenko , rth@twiddle.net 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 399a8ac..1099976 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. */