Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1B0AC4361B for ; Wed, 16 Dec 2020 16:51:55 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7EDB8233F8 for ; Wed, 16 Dec 2020 16:51:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7EDB8233F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpa1q-0003sC-KL for qemu-devel@archiver.kernel.org; Wed, 16 Dec 2020 11:51:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpZfV-0005W1-3p for qemu-devel@nongnu.org; Wed, 16 Dec 2020 11:28:49 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:34215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpZfQ-0007oH-1x for qemu-devel@nongnu.org; Wed, 16 Dec 2020 11:28:46 -0500 Received: by mail-wm1-x329.google.com with SMTP id g25so2268217wmh.1 for ; Wed, 16 Dec 2020 08:28:42 -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=/D7zdCflSZ6xA7e0uhMvc28vP/CHUGVea2/tI230T3c=; b=po+A8HHzMBToeB1ahSUSPCF1wCQsyz2HGMurriWshBekLN5VU3823tB4PDYDn2X8q0 6LPqQZV+miLhPwOOw17nIJNEgSBlejYvWx6TKTN8oo1h1tHJL2D5uUDBewWMGXT00rt1 eSRuz05f8wx/mH3KCp8CBvegd+1LG+VwK0GFz4LQq3Dd5z0FswoTGPg5pxsdaGr5EIWB Ao6tPXc6veMRzdqEcRkhVH6iwKZkyNxbyoec9YrKekdLHutup2yLvnm81Z3djwO5g4UX weSSiyIA6lokAZm4hK9SLY8XEoZp74YxR+I/Yi9I5QZYtgnTbr4sqbHGDT9gkbqXLVNP 5DiQ== 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=/D7zdCflSZ6xA7e0uhMvc28vP/CHUGVea2/tI230T3c=; b=QaYumb6mDe8zM54P7hjfjiST8OTBTPD7Ysg16LCMzfcTjYlUszUudGKOK90vn/CJXO p8Am8PegA81Ukeiy5Yux1N+BKQ4/eDCkIeNbAYPB9m43xXfmeOpUoFdNbfVklUgKbq1X 6gsPT+bonC9DS/FqYTOY7A4vjLBYe5h+dFVV25QIjCc3CePidlwDS5vduRo5UVwVBNew 6zt61ZFuFi3KoVD3ImeqrNY4kHFKSkiLJytxZ/8Np4jOqyIZ7D6tYVWsTZ71sTjMbu/9 mJZaclu0nXOOPuo8bGHFmj1yTnbIQeQ2pj/Qhe8Wv2YLQrDlCB5rBNX0qZY4CGmLvK7W CV8w== X-Gm-Message-State: AOAM532AePcAP2xbfqYb8W+k/Tg3xTep/NU6lcLd8DMUomwK0mzdq/Na s/5gZSvQnrjUUjOsSFOL5bwizD8BVrA= X-Google-Smtp-Source: ABdhPJxoPN5e7I0CW51aNBncTh0ZzURIfknV9IiFMnEJdJaIGNhNs82F1T4VkI1GYIjSn7NYNehRHw== X-Received: by 2002:a1c:2182:: with SMTP id h124mr4135400wmh.25.1608136121841; Wed, 16 Dec 2020 08:28:41 -0800 (PST) Received: from localhost.localdomain (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id r20sm3892217wrg.66.2020.12.16.08.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 08:28:41 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 11/12] target/mips/mips-defs: Rename ISA_MIPS32R5 as ISA_MIPS_R5 Date: Wed, 16 Dec 2020 17:27:43 +0100 Message-Id: <20201216162744.895920-12-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201216162744.895920-1-f4bug@amsat.org> References: <20201216162744.895920-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x329.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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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 , Paul Burton , Richard Henderson , Laurent Vivier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The MIPS ISA release 5 is common to 32/64-bit CPUs. To avoid holes in the insn_flags type, update the definition with the next available bit. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/mips-defs.h | 4 ++-- target/mips/translate.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/mips/mips-defs.h b/target/mips/mips-defs.h index 171d94c16dc..068fe9c8a19 100644 --- a/target/mips/mips-defs.h +++ b/target/mips/mips-defs.h @@ -25,7 +25,7 @@ #define ISA_MIPS_R1 0x0000000000000020ULL #define ISA_MIPS_R2 0x0000000000000040ULL #define ISA_MIPS_R3 0x0000000000000080ULL -#define ISA_MIPS32R5 0x0000000000000800ULL +#define ISA_MIPS_R5 0x0000000000000100ULL #define ISA_MIPS32R6 0x0000000000002000ULL #define ISA_NANOMIPS32 0x0000000000008000ULL /* @@ -84,7 +84,7 @@ #define CPU_MIPS64R3 (CPU_MIPS64R2 | CPU_MIPS32R3) /* MIPS Technologies "Release 5" */ -#define CPU_MIPS32R5 (CPU_MIPS32R3 | ISA_MIPS32R5) +#define CPU_MIPS32R5 (CPU_MIPS32R3 | ISA_MIPS_R5) #define CPU_MIPS64R5 (CPU_MIPS64R3 | CPU_MIPS32R5) /* MIPS Technologies "Release 6" */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 34bc083c813..43462c195fe 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -10588,7 +10588,7 @@ static void gen_cp0(CPUMIPSState *env, DisasContext *ctx, uint32_t opc, if (ctx->opcode & (1 << bit_shift)) { /* OPC_ERETNC */ opn = "eretnc"; - check_insn(ctx, ISA_MIPS32R5); + check_insn(ctx, ISA_MIPS_R5); gen_helper_eretnc(cpu_env); } else { /* OPC_ERET */ -- 2.26.2