From patchwork Mon Dec 16 03:51:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851201 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2657064wry; Sun, 15 Dec 2024 19:52:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUEV+rWEbWmXMFZJnWTCnoOaUQvYVuiApTDX4fWX2M80LiJYvroSYliPMH9v7Idhs0c0vLhQg==@linaro.org X-Google-Smtp-Source: AGHT+IEJzOFH5mJip45y/10lrRhfDS6iOt8LZ4kkYvhtvlQ5l9Al4qkLvRpwByF9LQRFr002ZnAT X-Received: by 2002:a05:6214:dad:b0:6d8:b594:c590 with SMTP id 6a1803df08f44-6dc8478ca78mr222714056d6.6.1734321137748; Sun, 15 Dec 2024 19:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734321137; cv=none; d=google.com; s=arc-20240605; b=bkvPwJAJH1B5Gi/JAWfMubNVVDpLEEfNp1aaO+77buSWH/ZCpoXOP5NkWhPq7tSZdd hvO2aFet2GAcn7caY+bEUC3wVLrviqrEh7kEe05e0AU8y+PoIg8Rk3r67Hj7RW7HfIRA fyVYs/9AYwf1YVECqm8kTrZus6zfKhyIa0qP6iexFVOoBaOO9MY/gdBZGSkVSrWMLlRp KgX1n+RLJJFyFxmAjAOS5K2ReOub3E3/hty2rmIBYiDKEatRlru9NPdiP+4+eHjo3Y7G bGRkuTJAdQ906bHROII6H7ULaHgLJkH7OxJH27uY9aZtFo3xgE7Lk/sMgQ8enS6Gkxer iqFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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=nSGD2w+KCzI3jUXBSuSbJy5TW+wbwk1/L1q8EYKN6hM=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=An9B+6ywlrEkSdV04YQ5n56Nljcm9NcAdjNAUmCD+Rt5JV9Oz7ytCZ7cDC6k/kpKwj GclGbadg0o7ljJtJDhOXkYXVMNK8EFb3KsgctrEvtlewhKkPgMr50SnBAvu0js4cFqjV pyiEifRo968jQmOBdj3SooSFLjbiJrdskMegfyFzwuQUVS6AtQyJjZPciKJRcjX0yL2i ScjIRWev6SiIR66d4Dph15J0ChG3/WspylY14LG9Y8CUGT4OzlkO4oNFbhvZFV/YKmJg lEy3XAFIv672aywmc+Xp2Lb9+7dEVanHe/yEno/9npwC5fgE2aQkaQGyBSxSesAFPGNR hJ8A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sCeghu22; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dccd1bb09csi61063856d6.77.2024.12.15.19.52.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 19:52:17 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=sCeghu22; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN299-0007Nu-BP; Sun, 15 Dec 2024 22:51:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tN296-0007N3-Ll for qemu-devel@nongnu.org; Sun, 15 Dec 2024 22:51:48 -0500 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tN295-00061H-3O for qemu-devel@nongnu.org; Sun, 15 Dec 2024 22:51:48 -0500 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-71ded02b779so1894275a34.2 for ; Sun, 15 Dec 2024 19:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734321106; x=1734925906; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=nSGD2w+KCzI3jUXBSuSbJy5TW+wbwk1/L1q8EYKN6hM=; b=sCeghu22UqAm54P9sD/d1kBOy1KZ/mxmaosSfnuqE1l3ey8GQB5VyW6LCKEX8Syy0s 71qB0T2l8DLdyEtVNm2NkH2Uv/zPbJhfuFRWHE3+j8at8by+UjyGxh1zYl9x9XkFcMQr 6HDbRwA0QD3DRzInPsWHEgjSQeb7tJSdPPp55Bq2d5o2ognAu9YLa7SMOyfEze7u24J/ R+DSuJ8OfxLCGopcLfy8mX6Ke+lyDLvx6P6wXijv9+U+yuY3yVhO6DWD50n02vyCMwbZ apeg7sL6FhfA+06JfGLgj4g2iWg5lcsS275PxhaSJnp6woCspMZ+hfqQc0MC+o9qbBBA mA5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734321106; x=1734925906; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nSGD2w+KCzI3jUXBSuSbJy5TW+wbwk1/L1q8EYKN6hM=; b=UXkIRtq1264IYVMb/afKnypixAdiQOJA/nBga83/1QV3DxGv9EhzogpRu5HSvGH2pZ IjIF8u6THu5c6xZDqJBzkImOAS/sc/2rfAvGRzUAIfUSXc6SrcEzaZlQoZoOA9C8JWBy kuVfyRO7c0lyU8GfwSLarWYf9DgXRwUzo28wvCuVekCj+BeINyUC3bum1eKjbZWFi/8d +CUvg93ZV9+qaDiyzBEA1mFMRtih2+k132V95LyuzezGNfnpfUN7SyvV8OPC+SpHr7qZ smDovqlnypEOuQeDndX1ASdO+wgKdwB1lzmvqg5ryUJHnNCqXmio35747Zy/rr/0eGsP v6LA== X-Gm-Message-State: AOJu0YyEw5eCHx/5AmfXy+TlRtTWzUbYIvO6t1uKmnrUfT5WEmKH9A1a n8Fqe6AAYmUG4pn3IqhJZ6/4+BLgRCz3FR9nfTa3yIWXgsMQdbhmNu8OelbwN2ex0C8CFlahji5 bB/kjYjX0 X-Gm-Gg: ASbGncs+r5WDrpsbK+5oLiKJZ49TPJODaRxUrNmuefE/VU5G4F8qXbflRBQ1cyl9eZb cW1lTzZwWvNuMhu+GLZUndiNpk+mgWWoCVfnWyJnANZrCt7uwBTExJYfyhITHxjweSAwzPKyXSt yXSSIEBmxLw+gfROD8HlfexDAo/9B37PcOSrB1+XTRTbyW6gaxyH9nZOI68q5+CnUkHy06Xmsaa 1pZxOnWdaHNDrM+8eAUrCAEqkFbidh4YqW1hYsfYAEKjcgfIo49xINZ+pYwwyOX7tnyZn/Ej9aM zSIwriz+UzPzXs5/yviAjOG8yLe+VYYg2zFScbwlank= X-Received: by 2002:a05:6830:6997:b0:71e:223c:1786 with SMTP id 46e09a7af769-71e3ba3afcfmr7000314a34.29.1734321105835; Sun, 15 Dec 2024 19:51:45 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5f33a93a6d1sm1287493eaf.33.2024.12.15.19.51.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 19:51:45 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 19/24] target/riscv: Do not abuse DEFINE_PROP_END_OF_LIST Date: Sun, 15 Dec 2024 21:51:04 -0600 Message-ID: <20241216035109.3486070-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241216035109.3486070-1-richard.henderson@linaro.org> References: <20241216035109.3486070-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::333; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x333.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These are not arrays of Property and had no business using DEFINE_PROP_END_OF_LIST. Use plain { } instead. Signed-off-by: Richard Henderson --- target/riscv/cpu.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4329015076..a5aa3a8670 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -213,7 +213,7 @@ const RISCVIsaExtData isa_edata_arr[] = { ISA_EXT_DATA_ENTRY(xtheadsync, PRIV_VERSION_1_11_0, ext_xtheadsync), ISA_EXT_DATA_ENTRY(xventanacondops, PRIV_VERSION_1_12_0, ext_XVentanaCondOps), - DEFINE_PROP_END_OF_LIST(), + { }, }; bool isa_ext_is_enabled(RISCVCPU *cpu, uint32_t ext_offset) @@ -1575,7 +1575,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = { MULTI_EXT_CFG_BOOL("zvksc", ext_zvksc, false), MULTI_EXT_CFG_BOOL("zvksg", ext_zvksg, false), - DEFINE_PROP_END_OF_LIST(), + { }, }; const RISCVCPUMultiExtConfig riscv_cpu_vendor_exts[] = { @@ -1592,12 +1592,12 @@ const RISCVCPUMultiExtConfig riscv_cpu_vendor_exts[] = { MULTI_EXT_CFG_BOOL("xtheadsync", ext_xtheadsync, false), MULTI_EXT_CFG_BOOL("xventanacondops", ext_XVentanaCondOps, false), - DEFINE_PROP_END_OF_LIST(), + { }, }; /* These are experimental so mark with 'x-' */ const RISCVCPUMultiExtConfig riscv_cpu_experimental_exts[] = { - DEFINE_PROP_END_OF_LIST(), + { }, }; /* @@ -1610,7 +1610,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_experimental_exts[] = { const RISCVCPUMultiExtConfig riscv_cpu_named_features[] = { MULTI_EXT_CFG_BOOL("zic64b", ext_zic64b, true), - DEFINE_PROP_END_OF_LIST(), + { }, }; /* Deprecated entries marked for future removal */ @@ -1627,7 +1627,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_deprecated_exts[] = { MULTI_EXT_CFG_BOOL("Zve64f", ext_zve64f, false), MULTI_EXT_CFG_BOOL("Zve64d", ext_zve64d, false), - DEFINE_PROP_END_OF_LIST(), + { }, }; static void cpu_set_prop_err(RISCVCPU *cpu, const char *propname, @@ -2699,7 +2699,6 @@ static const Property riscv_cpu_properties[] = { * it with -x and default to 'false'. */ DEFINE_PROP_BOOL("x-misa-w", RISCVCPU, cfg.misa_w, false), - DEFINE_PROP_END_OF_LIST(), }; #if defined(TARGET_RISCV64)