From nobody Tue Nov 18 14:12:42 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1610643338; cv=none; d=zohomail.com; s=zohoarc; b=Y9R40iwQq+vctwVbka1nexUoEIqp0LPHxhfZI8kuqUPlOX8NLkYlXqnLQ/QxRO80pAHMcl+NursNeSMAs5SimkFkckY1oQGvI4ZJKiUvqwoPGdVFtnVTrW+f+uxS3Rgh8PvMWarJiFfNXF5+cEecaoqDyDI5jqoxxnueQEkSQl8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610643338; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=Tkb6QNHvd3F924cjq9ERrydV/9VY8et6DB9+/1SkbtI=; b=hsTDoHiCmO1CowJlZddCzy66kaKkgkez6bXlO22Gice+OfaAWUTTPww+HeX6qdLlvrrieaxyf/cyGMKqBBcNLSY2h/FAb+c5D0v13TRLveZjBoo3oKdH6vFqEbAYwpq+LhDen1pacKPEm3kl48Gy6KubsZnn/EiRerMtwXluFzs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610643338035744.8124557763032; Thu, 14 Jan 2021 08:55:38 -0800 (PST) Received: from localhost ([::1]:55898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l05uK-0000Qm-Sp for importer@patchew.org; Thu, 14 Jan 2021 11:55:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l05NS-000443-Vf for qemu-devel@nongnu.org; Thu, 14 Jan 2021 11:21:39 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:35928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l05NR-0000c4-JY for qemu-devel@nongnu.org; Thu, 14 Jan 2021 11:21:38 -0500 Received: by mail-wm1-x333.google.com with SMTP id v184so995519wma.1 for ; Thu, 14 Jan 2021 08:21:36 -0800 (PST) Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id k10sm10127129wrq.38.2021.01.14.08.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tkb6QNHvd3F924cjq9ERrydV/9VY8et6DB9+/1SkbtI=; b=Hoy9kO1D9iWWF0TTSi90ZDJQCyGCCf0bOmEhdZ1yO8auRzIgU8dXcfLGQedwU1Qrpw idiJChX3dRxvFOjf2BGshQrFLhHFkyj/GkE/7RIByzWomjq8BN4vTseyHQG+9aSigrFx /35M4FlzF9UI0YfRoyPuVBd5Nr4hs9plmVuDA6lChph58AHYadD6lwZxdiHjvrA2B9tL CG69K8e0TjdWGNWq4zFRRQxwAOTPw9q5+bTe/M9Yfvz6jHgINxErz7u9z3lSXnkBPLMQ SpiURHHE7apVqGGP3Y039SGRaEBxQAgSc+fJlhOpHOBoxpJvlmNupn5R/0likJa+1ifM XpPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Tkb6QNHvd3F924cjq9ERrydV/9VY8et6DB9+/1SkbtI=; b=jFf4sQDZXC9mCOIdrBRKYMQ0oE7wcVCamB7VRa8ZE0qeBNKQQ7HEvcxO4x+N/aJvh5 Q2+XjYz8zH0djhZ8Q8DIIbJidJ59SW+DX/wAnOuEVhZoDe6fUNhgnMniBZM10nHkW5GL Fdo6MQO+ziQ+19ONsRxlavdqRDCCCqS/zdGtxcacTBH1sDnsj1/4t6AXOW7wsWyGydVJ Rgw0HgZWBpBhYybWMWspWnIRMDApffpO4rAUUVgr9qcf0SwamDunHXFytNF0JimSYRcy xT6lRVAu1tTO/Dqno2r9EObFiq93CLdANzydJNvcR1mGsUMGc0xs9DTRBXO0pvlCDLHv W7lA== X-Gm-Message-State: AOAM530ntjTMbQfAho2KBafkU28+j7xmkIadvMBbaan2T8A0G1QEkjYL xExYahKR7/U1+QRwp5BI19xIoGXpkrk= X-Google-Smtp-Source: ABdhPJzsVRoHZIjey+b4TSTGx+9L8REIajB0h0a6h9CzJDfuBkggk+0x7VbZQ0NEscEM0IEKGKPkpg== X-Received: by 2002:a05:600c:1549:: with SMTP id f9mr4776192wmg.61.1610641295261; Thu, 14 Jan 2021 08:21:35 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Subject: [PULL v2 63/69] target/mips: Convert Rel6 LDL/LDR/SDL/SDR opcodes to decodetree Date: Thu, 14 Jan 2021 17:20:13 +0100 Message-Id: <20210114162016.2901557-15-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210114162016.2901557-1-f4bug@amsat.org> References: <20210114162016.2901557-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Richard Henderson , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) LDL/LDR/SDL/SDR opcodes have been removed from the Release 6. Add a single decodetree entry for the opcodes, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() calls. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20201208203704.243704-12-f4bug@amsat.org> --- target/mips/mips64r6.decode | 7 +++++++ target/mips/translate.c | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target/mips/mips64r6.decode b/target/mips/mips64r6.decode index fd58ac72414..8ca352a5c19 100644 --- a/target/mips/mips64r6.decode +++ b/target/mips/mips64r6.decode @@ -12,6 +12,13 @@ =20 &rtype rs rt rd sa !extern =20 +&REMOVED !extern + @lsa ...... rs:5 rt:5 rd:5 ... sa:2 ...... &rtype =20 DLSA 000000 ..... ..... ..... 000 .. 010101 @lsa + +REMOVED 011010 ----- ----- ---------------- # LDL +REMOVED 011011 ----- ----- ---------------- # LDR +REMOVED 101100 ----- ----- ---------------- # SDL +REMOVED 101101 ----- ----- ---------------- # SDR diff --git a/target/mips/translate.c b/target/mips/translate.c index ffe283928bd..f0438ab9bef 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -28870,11 +28870,10 @@ static bool decode_opc_legacy(CPUMIPSState *env, = DisasContext *ctx) if (ctx->insn_flags & INSN_R5900) { check_insn_opc_user_only(ctx, INSN_R5900); } + check_insn_opc_removed(ctx, ISA_MIPS_R6); /* fall through */ case OPC_LDL: case OPC_LDR: - check_insn_opc_removed(ctx, ISA_MIPS_R6); - /* fall through */ case OPC_LWU: case OPC_LD: check_insn(ctx, ISA_MIPS3); @@ -28883,8 +28882,6 @@ static bool decode_opc_legacy(CPUMIPSState *env, Di= sasContext *ctx) break; case OPC_SDL: case OPC_SDR: - check_insn_opc_removed(ctx, ISA_MIPS_R6); - /* fall through */ case OPC_SD: check_insn(ctx, ISA_MIPS3); check_mips_64(ctx); --=20 2.26.2