Message ID | 20211020031709.359469-3-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 99bc874fb3a0709c36ae4e594a1262ce1660e698 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a11e:0:0:0:0:0 with SMTP id o30csp1323194wro; Tue, 19 Oct 2021 20:27:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv/KvZgC816J3hGo8DlY0Ar5BHX6zk/FxfAzD1qRGJCMBccMCZPeCF3HBJ31J59hrNzYWA X-Received: by 2002:a05:6830:1ad5:: with SMTP id r21mr8466981otc.98.1634700469745; Tue, 19 Oct 2021 20:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634700469; cv=none; d=google.com; s=arc-20160816; b=A1fpU5FaNxRBxzrd9HmUohZQ2MLtgNlNwTvB8it594aOvB4uyIRkETWwA/JAlmU5FK M/yGwpcXkIKOwrI3n+Cp0YRTA0G0QQF4ToOCTXk0TRBYQqL/3BkTie1JbUjv74bdQGl4 5MMjQ2vNSXTSyNOiedv8r5qhdEgOuE7y4mFsuUWON1cYT60/f9BFnvdnQUn5HvQHH+pw MSfjpTVkI/0DL16ytsPqldBbrowiF7yvPobgCtVf7Y+LbrCVUFdfT8iueIJXq0Zloirh U+87k5pamwqAsD2hYrQaOzSR7TI1oHzpUBtYp+0Mg90iIecG3EhFO9xABlKZ6jnM4nad Fj2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=JW/tzOqQKK5hRD4CRoj0kca6rOybKGXTUDDhLFOWwb8=; b=smCHT6pJvoplsDa/mL7HNLWCaKAjePFHF997HrNeL/sV2IyA8SBxVR7kc2fapZ9aPY EmwQJuV+oTXNHfOgqTpKJOd4ha/aDK7BxzKm+So6SB7OfKllF9lhxZ6gLCUuCeUrDjMp QJpvtzKHlxcs9rXRxG1blAsHOOQQBLJ4R5O/0Cgae7yZRnJRIibVwAHIWHsRno2X7F7E YcD/+fPzrgoEkGXtF2tU/BfibrKn7w17Z1mfyFSosIYoa91KsZz2tp5LWQdIDehTJkyJ 1QRN4nnjNEjLiYNt37O9zdK0ctuLGeaiNRMPX+d9j4nAQbVzVxdt82l7v1b53b5X6Ku8 5FrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ShQkPjwv; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s195si993620oie.174.2021.10.19.20.27.49 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Oct 2021 20:27:49 -0700 (PDT) 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; dkim=fail header.i=@linaro.org header.s=google header.b=ShQkPjwv; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1md2Gb-0008Kp-1Z for patch@linaro.org; Tue, 19 Oct 2021 23:27:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1md26Q-0006iR-NM for qemu-devel@nongnu.org; Tue, 19 Oct 2021 23:17:18 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:46798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1md26L-0000xa-P6 for qemu-devel@nongnu.org; Tue, 19 Oct 2021 23:17:18 -0400 Received: by mail-pf1-x42d.google.com with SMTP id i76so1688596pfe.13 for <qemu-devel@nongnu.org>; Tue, 19 Oct 2021 20:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JW/tzOqQKK5hRD4CRoj0kca6rOybKGXTUDDhLFOWwb8=; b=ShQkPjwvwiDWZUQrmbbzGxAvrkQlnTdDlHMrDqdBiIjVsHOn07nL+Mib/kpEgCNB0d m0dftLl7BrEI8JiwqfMtXUXh+cqnamDJBzE1ZkW7pBBiuf9L6UBMv4YgpZDA42rGmr6N ZsTwSbeOm5+aJNZxarSImrcj/q1sm2bKrvktAH4HrVx/6k6MidNwI2IpMlLHfNozf+WV wrskI5Yyo8XGt/+Qq3yrqlViUsxbObSgM/L1kBNo2AQ3L/kxLFkE7eERvd6E9WR7q0k1 D9GxtIILx+Knty54mHMgrW6nPe9+cK63p1C14eMXvPEkvON/FfwSj0f8SlXG83YtuN89 PpBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JW/tzOqQKK5hRD4CRoj0kca6rOybKGXTUDDhLFOWwb8=; b=X9hzx3xDUbI55Eu4Cbi45kefSdYVxbfHsgqgEAvbABpusWUIw1ZFtkMmLW/TY4HReg b3jPHN+w48yuJBVtE8uyrHxIhBVjlJEyDv9NjZi9DotZm+0BS9JMTtf8ZVL9Ca7Ic2Fg uXj+PyOgDsYKjv6/rWev4w/ZgbJzZMz7Tul813e8J46ChYxPWj0NlZeHk6tSVVDBlprB X0zHQ/ggsUS8gNXb0MavsBJVAwVePvg77C2JpNyDYntP++Ixzn0RsM4/QBGh0gqMyG33 j7jN3LLrWAvDFCQjf5Z0Y/qG5V+mRCxgqrb6RF2X/4KKHK4xiZ15YKTOBh/F8FM3NCnY HaXQ== X-Gm-Message-State: AOAM531j3h9zdE1mR8/ECBUFf/i2cgBE4/k22OJD0FGEK5OsAeg0hJd9 bHYOvtsrTdiq9WQnDfDwIJvjMCAmgkJOYw== X-Received: by 2002:a05:6a00:1148:b0:44d:2798:b08a with SMTP id b8-20020a056a00114800b0044d2798b08amr3874577pfm.2.1634699832426; Tue, 19 Oct 2021 20:17:12 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id c8sm505364pjr.38.2021.10.19.20.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 20:17:12 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v6 02/15] target/riscv: Create RISCVMXL enumeration Date: Tue, 19 Oct 2021 20:16:56 -0700 Message-Id: <20211020031709.359469-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020031709.359469-1-richard.henderson@linaro.org> References: <20211020031709.359469-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: alistair.francis@wdc.com, qemu-riscv@nongnu.org, zhiwei_liu@c-sky.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/riscv: Rationalize XLEN and operand length
|
expand
|
diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index 999187a9ee..e248c6bf6d 100644 --- a/target/riscv/cpu_bits.h +++ b/target/riscv/cpu_bits.h @@ -364,9 +364,11 @@ #define MISA32_MXL 0xC0000000 #define MISA64_MXL 0xC000000000000000ULL -#define MXL_RV32 1 -#define MXL_RV64 2 -#define MXL_RV128 3 +typedef enum { + MXL_RV32 = 1, + MXL_RV64 = 2, + MXL_RV128 = 3, +} RISCVMXL; /* sstatus CSR bits */ #define SSTATUS_UIE 0x00000001