From nobody Wed Nov 5 18:37:20 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1538337553032567.1945068804959; Sun, 30 Sep 2018 12:59:13 -0700 (PDT) Received: from localhost ([::1]:57131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6hrt-0003d1-2q for importer@patchew.org; Sun, 30 Sep 2018 15:59:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6hq5-0002EH-Lb for qemu-devel@nongnu.org; Sun, 30 Sep 2018 15:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6hq2-0006tu-9E for qemu-devel@nongnu.org; Sun, 30 Sep 2018 15:57:11 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:45158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6hq2-0006tV-23 for qemu-devel@nongnu.org; Sun, 30 Sep 2018 15:57:10 -0400 Received: by mail-wr1-x432.google.com with SMTP id q5-v6so5035734wrw.12 for ; Sun, 30 Sep 2018 12:57:09 -0700 (PDT) Received: from x1.local ([80.31.72.241]) by smtp.gmail.com with ESMTPSA id x24-v6sm12385633wrd.13.2018.09.30.12.57.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 12:57:08 -0700 (PDT) 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=UIGAxiafLgqHuWbx1xIACtgVdjDdr+JB7rJt1q1yvDY=; b=uv0Mod0KAJsuIFhCD3M+V7/07nPwVwNdAikIgifOjKjwnZSlnSb43UaJF5Du6bK7ZZ BWd0Rpp4c3Nd+xEil5S5NKhBVPABLlD1E7043lNDWwmIcxqeZdV2AOqm1UkR6dpWuXol S70tH6RuUMXFfW/Ks23jBke/OTXxRRLRwyUASOXSTJa/H7riK2tCtex1XKmOn7Rx38Im N7xm7iSBquYduXeSHjFQiSe1X+3hlNt24Mwb4xqBuKlum5wOcWa/NKF4R0xOhiWF9zmG uMjBvzNzEvMgTx6ovSID2VVyyc/eJvDX0WAulc04fYMzcQJ9FX+IjMVr2W0GWJ14a2PI kbbA== 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=UIGAxiafLgqHuWbx1xIACtgVdjDdr+JB7rJt1q1yvDY=; b=VeI0FFt51Ezhok4Jk9TSCGu7cYvXRwKaETOuWOmevZ/eXlkMFXZOSwl9nzwE1O21Z6 P0NS5J4vOQdiF8nulEb8ECdxiu2d77WuF2q2GsjzCTS1MIMovxqLsXxS0KNnoQQ3qPRI BIoc7TyUBEtlF0wPAlP2kHT3hM4sGGKjZJNfZy8/KLrMVkWnpGq7m8JihSbGwyHnkl1P axPSkrA7st4RBzrgKUzEPWnbPit6nO4JivgZaPpFEP2by3hQ1+bwiFX9AJ8o/OtE50El s8ZX7SAfzJc8nfpebauvGqjLVcJGViX4AKNvfXYmqFhUYOTL2sv5SbYTmLzMGBOh9U9Y 2bYQ== X-Gm-Message-State: ABuFfojpY4/hWiSbQ9o6aCpMsxGDDdINBtAjjkeOsajATQrQNyT1ByDO 4FoCzcIEcSpuwZ4N++9AWkdeyuJD X-Google-Smtp-Source: ACcGV63dYbVohrPcJ6OzRCh1I6WOfnekOgskz1dSgldDnICVwZiUKCPLVFq9IZ9CaCfcR03uN5pTbw== X-Received: by 2002:adf:f651:: with SMTP id x17-v6mr4504150wrp.317.1538337428995; Sun, 30 Sep 2018 12:57:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Aurelien Jarno , Aleksandar Markovic Date: Sun, 30 Sep 2018 21:56:54 +0200 Message-Id: <20180930195655.24684-4-f4bug@amsat.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180930195655.24684-1-f4bug@amsat.org> References: <20180930195655.24684-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::432 Subject: [Qemu-devel] [PATCH v2 3/4] target/mips: Clean the 'insn_flags' namespace 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_6 Z_629925259 SPT_0 Let space available for ASE_DSPR3 and INSN_R3900 entries. Suggested-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/mips-defs.h | 87 ++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/target/mips/mips-defs.h b/target/mips/mips-defs.h index 84607d8933..2c5a294c16 100644 --- a/target/mips/mips-defs.h +++ b/target/mips/mips-defs.h @@ -22,41 +22,58 @@ #endif #endif =20 -/* Masks used to mark instructions to indicate which ISA level they - were introduced in. */ -#define ISA_MIPS1 0x00000001 -#define ISA_MIPS2 0x00000002 -#define ISA_MIPS3 0x00000004 -#define ISA_MIPS4 0x00000008 -#define ISA_MIPS5 0x00000010 -#define ISA_MIPS32 0x00000020 -#define ISA_MIPS32R2 0x00000040 -#define ISA_MIPS64 0x00000080 -#define ISA_MIPS64R2 0x00000100 -#define ISA_MIPS32R3 0x00000200 -#define ISA_MIPS64R3 0x00000400 -#define ISA_MIPS32R5 0x00000800 -#define ISA_MIPS64R5 0x00001000 -#define ISA_MIPS32R6 0x00002000 -#define ISA_MIPS64R6 0x00004000 -#define ISA_NANOMIPS32 0x00008000 - -/* MIPS ASEs. */ -#define ASE_MIPS16 0x00010000 -#define ASE_MIPS3D 0x00020000 -#define ASE_MDMX 0x00040000 -#define ASE_DSP 0x00080000 -#define ASE_DSPR2 0x00100000 -#define ASE_MT 0x00200000 -#define ASE_SMARTMIPS 0x00400000 -#define ASE_MICROMIPS 0x00800000 -#define ASE_MSA 0x01000000 - -/* Chip specific instructions. */ -#define INSN_R5900 0x10000000 -#define INSN_LOONGSON2E 0x20000000 -#define INSN_LOONGSON2F 0x40000000 -#define INSN_VR54XX 0x80000000 +/* +* insn_flags: mask used to mark instructions to indicate which ISA +* level they were introduced in. +*/ + +/* + * bits 0-31 MIPS base instruction sets + */ +#define ISA_MIPS1 0x0000000000000001 +#define ISA_MIPS2 0x0000000000000002 +#define ISA_MIPS3 0x0000000000000004 +#define ISA_MIPS4 0x0000000000000008 +#define ISA_MIPS5 0x0000000000000010 +#define ISA_MIPS32 0x0000000000000020 +#define ISA_MIPS32R2 0x0000000000000040 +#define ISA_MIPS64 0x0000000000000080 +#define ISA_MIPS64R2 0x0000000000000100 +#define ISA_MIPS32R3 0x0000000000000200 +#define ISA_MIPS64R3 0x0000000000000400 +#define ISA_MIPS32R5 0x0000000000000800 +#define ISA_MIPS64R5 0x0000000000001000 +#define ISA_MIPS32R6 0x0000000000002000 +#define ISA_MIPS64R6 0x0000000000004000 +#define ISA_NANOMIPS32 0x0000000000008000 + +/* + * bits 32-47 MIPS ASEs + */ +#define ASE_MIPS16 0x0000000100000000ULL +#define ASE_MIPS3D 0x0000000200000000ULL +#define ASE_MDMX 0x0000000400000000ULL +#define ASE_DSP 0x0000000800000000ULL +#define ASE_DSPR2 0x0000001000000000ULL +#define ASE_MT 0x0000004000000000ULL +#define ASE_SMARTMIPS 0x0000008000000000ULL +#define ASE_MICROMIPS 0x0000010000000000ULL +#define ASE_MSA 0x0000020000000000ULL + +/* + * bits 48-55 vendor-specific base instruction sets + */ +#define INSN_LOONGSON2E 0x0001000000000000ULL +#define INSN_LOONGSON2F 0x0002000000000000ULL +#define INSN_VR54XX 0x0004000000000000ULL +#define INSN_R5900 0x0010000000000000ULL + +/* + * bits 56-63 vendor-specific ASEs + * + * Example: Igenic ASE_MXU and ASE MXU2 + */ + =20 /* MIPS CPU defines. */ #define CPU_MIPS1 (ISA_MIPS1) --=20 2.19.0