From patchwork Thu Nov 9 13:42:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 742573 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:110f:b0:32d:baff:b0ca with SMTP id z15csp846162wrw; Thu, 9 Nov 2023 05:50:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFL1+O3t1Aiz/PQ1enE54ooxWQzHty1b2UMjDJiihmeoo5bB9Mw3g70r7SaNjksDxhxYtUV X-Received: by 2002:a67:e1c5:0:b0:45d:9a4d:dc1d with SMTP id p5-20020a67e1c5000000b0045d9a4ddc1dmr3819630vsl.8.1699537835497; Thu, 09 Nov 2023 05:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699537835; cv=none; d=google.com; s=arc-20160816; b=m+PqIk97ow4hJrhik7i12c/+5pEUVGQZck2tR+mzbCnJK4/yoHhTIMfZ72CU1rNYy8 4WPaWq6BNskXJsyTmv/kP6ozszwWmnymZiJ9RquOu45gQUSsc3l7ojXj6F2OqPl23gOJ AXMexcqr1vVz1CW795bIB9YUlsD/mvmC15QgIzaydieLGMTkeyHP0C1d+r4hCNgp40h6 2JrGY6fRhhxuj57qP/pqPAkyhjLPg/nmyZZtUF8oEoU1GjVsAq2kfxU2MaCLFFJWcGJP nB0BI0XKgzBHtw4/DXiQeDA5Mu0RPi/retewT0LYOLu82CbjbkH5o2EWUbm9TzCDeTLD E73w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=dW/+JbcP/FD3T0rjC3e39+Ij2RYo3CiD9vdJR7fZwto=; fh=UbSczJHoK8QyPNwfbKMWepRwzNWZsm+gkdUzUXKForo=; b=JEPsKITekktUHxyVDbEq/MElEU70el/MdUBTI+vjClAzXav5HGo7qr+rn1nuJy6r6l 5B19zYoH1uq/n9HjuDJrJDNhqWdM5HFgkyaRDOdh55xFkBTXU6ihZKB+3GFfaSmO3Hbc f3ovqAzp/3MaHfdgraKpMOtBV+HUgLqSWKJpKFnuAmi7WvzFhKsKd/CVqHP1SYxouVai iS87udmaY6qCLmeQwZlfapQFXzGEkt1Mjyf+hkg7WZpsvEd4MoVuoFs/IthN3iNfhgiz nnPnHtglH1kGJK9c7TBH35WR7CPCGYgUvqC7NMM+EiiDOyaGTDGWn0b8eo7olMZRpOkX H47w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f1-20020ad442c1000000b006708e35d522si2920849qvr.200.2023.11.09.05.50.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2023 05:50:35 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r15Oz-0004yJ-IB; Thu, 09 Nov 2023 08:48:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r15OA-0002wm-HS; Thu, 09 Nov 2023 08:48:06 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r15O8-0002S0-NU; Thu, 09 Nov 2023 08:48:06 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 3638B31B28; Thu, 9 Nov 2023 16:43:15 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 441D2344CE; Thu, 9 Nov 2023 16:43:07 +0300 (MSK) Received: (nullmailer pid 1461907 invoked by uid 1000); Thu, 09 Nov 2023 13:43:03 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Michael Tokarev Subject: [Stable-8.1.3 48/55] target/mips: Fix TX79 LQ/SQ opcodes Date: Thu, 9 Nov 2023 16:42:52 +0300 Message-Id: <20231109134300.1461632-48-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé The base register address offset is *signed*. Cc: qemu-stable@nongnu.org Fixes: aaaa82a9f9 ("target/mips/tx79: Introduce LQ opcode (Load Quadword)") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230914090447.12557-1-philmd@linaro.org> (cherry picked from commit 18f86aecd6a1bea0f78af14587a684ad966d8d3a) Signed-off-by: Michael Tokarev diff --git a/target/mips/tcg/tx79.decode b/target/mips/tcg/tx79.decode index 57d87a2076..578b8c54c0 100644 --- a/target/mips/tcg/tx79.decode +++ b/target/mips/tcg/tx79.decode @@ -24,7 +24,7 @@ @rs ...... rs:5 ..... .......... ...... &r sa=0 rt=0 rd=0 @rd ...... .......... rd:5 ..... ...... &r sa=0 rs=0 rt=0 -@ldst ...... base:5 rt:5 offset:16 &i +@ldst ...... base:5 rt:5 offset:s16 &i ###########################################################################