From patchwork Wed Dec 18 13:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851686 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp922419wrq; Wed, 18 Dec 2024 05:44:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVJ8u5nJfGAkI4SQhnjf5hQ7942ITlyna33mj+Iycdm2qeXsBOg5Upe/786xUBhv7NGlPfKfw==@linaro.org X-Google-Smtp-Source: AGHT+IHVii98TUexylDmgc6fccMRng1fAHKZWVrv0W2t/gPhvemAEXYcehjjFskX9RZgRe2ykqVi X-Received: by 2002:a05:6214:c45:b0:6d8:d5f6:8c52 with SMTP id 6a1803df08f44-6dd0923c788mr50736286d6.38.1734529481603; Wed, 18 Dec 2024 05:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734529481; cv=none; d=google.com; s=arc-20240605; b=kiHc4L8okQmIc/A8emzbc2C2jKSOViYS7owu+HqQCacXdFwvEpbqOpasXwUPYZJrE+ EXWJM1pFsQGjJuW/wYS4lmUR6Q2zecpZ9kJnHwrkpXM+SJY7Iic/8BYo3qbwwDCGATP/ pBR5a1uVaoxWzXuZfdc/hJqEdqSQCzAWUjrotuco536/W3oN77l8lV8ep2KLZWlFnJkB 2j9bdOV8nvY6EP/wgNKorame99yF+Poc9twW6bIRmx3gD39eJBRXoSTQQX/W67DtWHf2 IKlNfjS7SI33zmfAV5zja4h1caNPp+LJaVfbLie4ZDjZ2YjWpoMSQzvAjc9RIul4uSAi TijA== 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:cc:to :from:dkim-signature; bh=OxSMPB70buoVfSmQQZxKUhg3EBcEeRKpWGkuRu9RGT4=; fh=3mEp7FusppN5Drq2PN08R8D/9xXM9YdbtG5TkJxJBiE=; b=gN7TI5xxEebEMhLL9g40VRS04ldSOTefHf+7dY7Uq0Hr5OItJZ3vxxOS9vhJEML4/V XZ2KLYpC5XUyidB5wzHgMrUZ9WkzDKdvRHDs4JFC6E8KEIwtMKGSw1UXMxaCGzn0E+xV G2n+wXYfhudBHFowqlPLCITy7cEewAJsHAh4v2vsp9gmcgZzkFkde+GnC9ega3s14hzR 9lADPzAiuIr4XaxAJLte+TY80SUGZzBkifyjAmOLgd7eX2JFxj7F6hnveuAfAKXfdYTg FfxvbF4fTJP1RtEuQnZTCtuVbsrYRtVEso0fuYGwws23GJ970sXVd5yQBPG/s3k/z7gl hUPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R0e5zsjH; 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 d75a77b69052e-467b2ef26cesi122811041cf.545.2024.12.18.05.44.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 05:44:41 -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=R0e5zsjH; 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 1tNuL2-00027W-NR; Wed, 18 Dec 2024 08:43:45 -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 1tNuKh-0001TK-QI for qemu-devel@nongnu.org; Wed, 18 Dec 2024 08:43:25 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNuKf-0005hv-9Q for qemu-devel@nongnu.org; Wed, 18 Dec 2024 08:43:23 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3eb7e725aa0so2988096b6e.0 for ; Wed, 18 Dec 2024 05:43:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734529400; x=1735134200; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OxSMPB70buoVfSmQQZxKUhg3EBcEeRKpWGkuRu9RGT4=; b=R0e5zsjHAM0RWujYxxS1aptx4L7Eg7vlAk26homr5EU43I7uzhTjbTdgmN13smZW8N KRMZJVpwf0BNnTPPQ1rtNgDR5T5glTs0lhmWXkHf5Rtt6xM2y7KL5jbCY4/wEDkqh77T WRzF+YAmMySY9amRLfWGUo5SfAMY3qHZBwU0uBX7FZNxwqpSEhQEJZWt7fmGmnqpHnBt aC1Ne+Ew1pZNmpql0BoJ9SUJdB7NKjE2F7EdbjQCzusfnzD8eg3JI03YGH3Fk/drZP79 oCOj4NaUxsVDtIF63K0RLwQ7ijFgxO78Yh19z1g6x4znF0TRdCH6nKgJsN7kKuNmBUA7 Odrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734529400; x=1735134200; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OxSMPB70buoVfSmQQZxKUhg3EBcEeRKpWGkuRu9RGT4=; b=ZVgvVMb5CUr5OXYYzQXBgvhyXHX42cGI24zVKRLgKeDrmnEL119W4BI7CUs00l8Icq XxIR7b7vKPU5KAaPtDy/6c05HVte96XuyNgt92bScOP5ZDRTuGjferaEGH8CnwRk6uNp nSr7YQtDY0pMZORDnhbbMH7tKmWL+DCvd+h+0jdlILdLeEN731un8il9XzmeKWK781Rf f7eE5vf2AvDXbEGVKi5TiQnF7KaqPZ0xd8smdgaAigkWHx2vrF6yf78XVYRMgjCT4NT2 X50afdf7tNUDW5HxGvcNSJ/Rdz4aHamIjtUcvXhMkjpO2kLOnyeeO/zG32BbXroUNK3D 4G5Q== X-Gm-Message-State: AOJu0YwOAUp1G2WHNilOiwHQ5AJL4KQg1XrdITUPBaBjj9LlxzFMJ//e B+XGocRmaYOIk4ojiTAMaZ/mTpYBmd2NA8fIgJ8v9Zr5+0SiodC2ZrKh5CKpCM+VneNk0v4y6uu Id4buCiNt X-Gm-Gg: ASbGncvDK0wwE0ixnFu4EaymRkrppdD7lLp7s+MU1xF4ahlr1SLnTfmlsyxx+yAFp/4 EiOaq8ShHAtYFVreo7M19eKd7qgBB8sh8C9JzfwcaxnQODzuvF7zJn4oMPrIaI9PWCJUXEiDZ3j TrH+zRi+kYJ0Q5kBa2kC8LCL61qfAcfWkDSl3S8dLj6KVAKile+i1nHwXL6PeQeGxDgaGVIzVrk gA3mlRKYhHo9j847NcosTMwGxivWkUAUNiBo5k6yi+LUbOGZa19xkKMYlpirMVv X-Received: by 2002:a05:6808:2dcb:b0:3e7:df63:15bc with SMTP id 5614622812f47-3eccbf54608mr1786724b6e.12.1734529399954; Wed, 18 Dec 2024 05:43:19 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3ebb478a502sm2870951b6e.9.2024.12.18.05.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 05:43:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH v2 19/24] target/riscv: Do not abuse DEFINE_PROP_END_OF_LIST Date: Wed, 18 Dec 2024 07:42:46 -0600 Message-ID: <20241218134251.4724-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241218134251.4724-1-richard.henderson@linaro.org> References: <20241218134251.4724-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22e.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 Reviewed-by: Philippe Mathieu-Daudé --- target/riscv/cpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4329015076..7aa041f57a 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,