From patchwork Wed Jan 11 20:19:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Tarasenko X-Patchwork-Id: 9511353 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 4847060762 for ; Wed, 11 Jan 2017 20:53:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39A972868C for ; Wed, 11 Jan 2017 20:53:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E97728694; Wed, 11 Jan 2017 20:53:24 +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 DBCDA28692 for ; Wed, 11 Jan 2017 20:53:23 +0000 (UTC) Received: from localhost ([::1]:57027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRPta-00071t-UC for patchwork-qemu-devel@patchwork.kernel.org; Wed, 11 Jan 2017 15:53:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRPOG-0006fC-LI for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:21:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRPOF-00014X-Rg for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:21:00 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35293) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRPOF-00013M-LU for qemu-devel@nongnu.org; Wed, 11 Jan 2017 15:20:59 -0500 Received: by mail-wm0-x243.google.com with SMTP id l2so568801wml.2 for ; Wed, 11 Jan 2017 12:20:59 -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 :in-reply-to:references; bh=ZqyXe7tgw89jehOI7NKblu3EXOEhICJbBlmsdxW/XRo=; b=Vy3NqgKXQJlSGpJS54I5UBOpAipbZmPRRZ+GUF6S5rtLFRR3I+RWohmbB2Umxavi87 XlBGmvLn44Gw0k1BU8bWRXxsA7DHLONLl3F0KXp9FTinfa2FWhT33p0ooUhlPjsxmIYZ kGvYucSBGdhClpQ7WJwAdwsMoz0cWESLwrf9YbZaEO4XcTdVs/7pUX7Jv1dmxEGmAk2V HLOfLuAaXh8jJ7vJRmQ9Vg5byp7+V2dZ/nCAUROc/MYmeuSkKvrlFcu4oxkRggamtqsp XerWgP3LQJdSqBqqnhelgZkzuoAU7sNTB9zUiJAj6fJsuYM8r3do3pJmUPBfbQ2762yx p3RQ== 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:in-reply-to:references; bh=ZqyXe7tgw89jehOI7NKblu3EXOEhICJbBlmsdxW/XRo=; b=sLRIqVa8K1i/HH+UGQ/kKcI3Ys5ubMJREPQ4/D1UlVauhu4LFk93BVbGuwHSvFdC/d Sq3GUcdi2HIw8DsXbzauMVBciqCi/4xRDzssjdajWSiua8+TZ74+OF53+kQzdAd4sCNh 0GV/pEdeAuygNJfubCR/abf0X1csHouMdHS1z7lqfD/g5nmSHR22JLXgJ/qxKOaIX+Tk p8ka7JookqBGDhB90ZBBH5O7jc4GfYzfXhnKamMAPDcFuPd7cNdM/4uCxzrGdDij9TNi 6wduq1638hj7ipsLl2NJ82NVmj/rZLPStttmLGXgpCHGdb31mL0RI5x8qFYx4qI5teav 9XEg== X-Gm-Message-State: AIkVDXIg7DkK/XLySyACd/fV7gUdYogQeKl5nSPeKbQrIaxP2Umi/0auNjz98Guv5mAtDg== X-Received: by 10.28.226.67 with SMTP id z64mr4173785wmg.137.1484166058737; Wed, 11 Jan 2017 12:20:58 -0800 (PST) Received: from localhost (x55b4b54a.dyn.telefonica.de. [85.180.181.74]) by smtp.gmail.com with ESMTPSA id d10sm10125362wja.20.2017.01.11.12.20.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 12:20:57 -0800 (PST) From: Artyom Tarasenko To: qemu-devel@nongnu.org Date: Wed, 11 Jan 2017 21:19:45 +0100 Message-Id: <6139718b8d11c9c893d6deb02431c615ef422d65.1484165352.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::243 Subject: [Qemu-devel] [PATCH v2 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. */