Message ID | 20211019000108.3678724-3-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:cd8c:0:0:0:0:0 with SMTP id d12csp67448imp; Mon, 18 Oct 2021 17:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUHZv4amyoAs63nQt8DaaakwFLKmhSyP5ssfLLgjGgN13RWCIYLg8BDGKgUfVsGFWAc67T X-Received: by 2002:a05:6102:a35:: with SMTP id 21mr31210325vsb.32.1634601784669; Mon, 18 Oct 2021 17:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601784; cv=none; d=google.com; s=arc-20160816; b=GAn27shxtE/AFRod/VuB5TuEEd/tW7TONdgvWV3bRRoaA52a0SRATjtUaFT5grmZHV 6EAnROHsh+MomNkSoN/1bJf+FjXCyvnvTCTLYIaUHoQV2t0CluU4hDxJqFDBDeXxFZmx /ZF5c7WTuRRlVo2G3+Iao9AwL2lt47HBTqtyiaxEHcEqzHKpLgAGVPgBcT2hXOBC6yE9 HmGv82QIFfI5BKHo4Y4LJHuySUy/jvlRS31J4JDh34jPh1JClQjWySUmYeOi4yd4GSwT 0aVmsZmC/NcYBSZjTLpLpfSKnZ9Zd9QfCDzOR05k7INcMs8HPGS8t/YoSfbnQ8wK0EUv XzOg== 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=N48OxRYsRsxjyD9f3NI3cCaoSZaHhh5qKCwnTTLa9lQ/CjnlpLIXyZroLGuLk8BSZQ VFqqa8RsIbpMzdxqddaSwToWwbgEHsQnvnaqZQJou1vi46D6XekqNWM0PgGoenXFcWa7 gXkxx0Q/LyCRXUaVS1JqqsX87e0L4R+Q9qUkIxE4/Ta8zmaKDJAvk8Rf7mfy0WEjFlYs 1yn2LLGGWv8bybokqv8otbLHOiKsx9/ZTfqXYeO7X+H+65QaB1MVakEUVsoPww1Ojf+u x/JakhWqROPUQfeI+JsM3w6mx//phBP41MLbChMmQNzGiU42GattSmt2+b13ed1pdU/3 Psvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="rwAI9/EI"; 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 m25si11296462ual.102.2021.10.18.17.03.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Oct 2021 17:03:04 -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="rwAI9/EI"; 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]:45992 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 1mccau-0004f2-1r for patch@linaro.org; Mon, 18 Oct 2021 20:03:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43082) 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 1mccZB-0004ct-J5 for qemu-devel@nongnu.org; Mon, 18 Oct 2021 20:01:17 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:38830) 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 1mccZ6-0001d3-FG for qemu-devel@nongnu.org; Mon, 18 Oct 2021 20:01:16 -0400 Received: by mail-pl1-x632.google.com with SMTP id i5so6175565pla.5 for <qemu-devel@nongnu.org>; Mon, 18 Oct 2021 17:01:12 -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=rwAI9/EIpVqwgULEbFSMPpiM1lrpuntD/n+xTqIW6499dGzikZ2uzEdWrwbtdSk/uR NQW6psEvyT46J/G0pHyxxNf9lomJqZpwh/xlemFC7awfWV9WI9w+/BTgCedWVkB+tmY/ uRmhRIdAHEdSenzCqi2LJ/9ZyGHtcBIUsOzQgTJpIfR7taKBsUydzIqa6K0sao1uLkVb JIEYePKgxmz5BuQ0O72pC5UOnEHI7Jgg1Vd9FV6YcYRzzAjgdxs7fQeaKLdrpzIfaahF 2NMbS5UR8KkxKyXSPoZYhc28sY9f+q907JiZF+mXnRJBWCN5q5HSx69RgstOaiKmwbfJ x4nA== 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=6vMdpJQ/LXBEPQAQWedbSdP6e+abb5iZEP/OY+/hwTsGOnkE2rZykRS0POZMcNQEKI l/hNhR9qhe8YxsDTf+qvTXukU/uiO+Bzt23OE0DqpKHXzdJfSlQps3F43wEC+rIXLsPN gD+dcjlca+A2st4DJDH62lfnixWF2n1glwvWqQPnXVz+WuTOsH73H1Pshrr9Iitoxt8q TBsRPXcqh2fkQNkNoreGKfyIyWAATE6yw2d1b/qRhquE0XwXtHb42q6IrG4TwtkueKPe OvlrYAZn8PMaRuDd3rRX96DC057LKCvIXZiZWoIXvpagOhgu0LGeOGPf0rwTJo3ocgh6 XKAg== X-Gm-Message-State: AOAM531HD61NqbozwnNn6fBWgiYq5EFphHFxmf34EghlX2z5Y8RUHEvP dvmDgUL5IB2FZ6yfCnlXzwOnWbLRV/Vq0Q== X-Received: by 2002:a17:90b:1e01:: with SMTP id pg1mr2363214pjb.81.1634601670806; Mon, 18 Oct 2021 17:01:10 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id q14sm3068220pfk.3.2021.10.18.17.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 17:01:10 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v4 02/16] target/riscv: Create RISCVMXL enumeration Date: Mon, 18 Oct 2021 17:00:54 -0700 Message-Id: <20211019000108.3678724-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211019000108.3678724-1-richard.henderson@linaro.org> References: <20211019000108.3678724-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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=ham 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