[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 51/71] hw/riscv: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 51/71] hw/riscv: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:07:25 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/riscv/opentitan.c | 2 +-
hw/riscv/riscv-iommu-pci.c | 2 +-
hw/riscv/riscv-iommu.c | 2 +-
hw/riscv/riscv_hart.c | 2 +-
hw/riscv/sifive_u.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c
index e2830e9dc2..8ce85ea9f7 100644
--- a/hw/riscv/opentitan.c
+++ b/hw/riscv/opentitan.c
@@ -306,7 +306,7 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_soc,
Error **errp)
memmap[IBEX_DEV_IBEX_CFG].base, memmap[IBEX_DEV_IBEX_CFG].size);
}
-static Property lowrisc_ibex_soc_props[] = {
+static const Property lowrisc_ibex_soc_props[] = {
DEFINE_PROP_UINT32("resetvec", LowRISCIbexSoCState, resetvec, 0x20000400),
DEFINE_PROP_END_OF_LIST()
};
diff --git a/hw/riscv/riscv-iommu-pci.c b/hw/riscv/riscv-iommu-pci.c
index a42242532d..a695314bbe 100644
--- a/hw/riscv/riscv-iommu-pci.c
+++ b/hw/riscv/riscv-iommu-pci.c
@@ -157,7 +157,7 @@ static void riscv_iommu_pci_init(Object *obj)
iommu->icvec_avail_vectors = RISCV_IOMMU_PCI_ICVEC_VECTORS;
}
-static Property riscv_iommu_pci_properties[] = {
+static const Property riscv_iommu_pci_properties[] = {
DEFINE_PROP_UINT16("vendor-id", RISCVIOMMUStatePci, vendor_id,
PCI_VENDOR_ID_REDHAT),
DEFINE_PROP_UINT16("device-id", RISCVIOMMUStatePci, device_id,
diff --git a/hw/riscv/riscv-iommu.c b/hw/riscv/riscv-iommu.c
index bbc95425b3..07fed36986 100644
--- a/hw/riscv/riscv-iommu.c
+++ b/hw/riscv/riscv-iommu.c
@@ -2235,7 +2235,7 @@ static void riscv_iommu_unrealize(DeviceState *dev)
g_hash_table_unref(s->ctx_cache);
}
-static Property riscv_iommu_properties[] = {
+static const Property riscv_iommu_properties[] = {
DEFINE_PROP_UINT32("version", RISCVIOMMUState, version,
RISCV_IOMMU_SPEC_DOT_VER),
DEFINE_PROP_UINT32("bus", RISCVIOMMUState, bus, 0x0),
diff --git a/hw/riscv/riscv_hart.c b/hw/riscv/riscv_hart.c
index 613ea2aaa0..0df454772f 100644
--- a/hw/riscv/riscv_hart.c
+++ b/hw/riscv/riscv_hart.c
@@ -27,7 +27,7 @@
#include "hw/qdev-properties.h"
#include "hw/riscv/riscv_hart.h"
-static Property riscv_harts_props[] = {
+static const Property riscv_harts_props[] = {
DEFINE_PROP_UINT32("num-harts", RISCVHartArrayState, num_harts, 1),
DEFINE_PROP_UINT32("hartid-base", RISCVHartArrayState, hartid_base, 0),
DEFINE_PROP_STRING("cpu-type", RISCVHartArrayState, cpu_type),
diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c
index c5e74126b1..124ffd4842 100644
--- a/hw/riscv/sifive_u.c
+++ b/hw/riscv/sifive_u.c
@@ -936,7 +936,7 @@ static void sifive_u_soc_realize(DeviceState *dev, Error
**errp)
qdev_get_gpio_in(DEVICE(s->plic), SIFIVE_U_QSPI2_IRQ));
}
-static Property sifive_u_soc_props[] = {
+static const Property sifive_u_soc_props[] = {
DEFINE_PROP_UINT32("serial", SiFiveUSoCState, serial, OTP_SERIAL),
DEFINE_PROP_STRING("cpu-type", SiFiveUSoCState, cpu_type),
DEFINE_PROP_END_OF_LIST()
--
2.43.0
- [PATCH 55/71] hw/scsi: Constify all Property, (continued)
- [PATCH 55/71] hw/scsi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 59/71] hw/ssi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 60/71] hw/timer: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 50/71] hw/remote: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 01/71] target/arm: Constify all Property, Richard Henderson, 2024/12/13
- Re: [PATCH 00/71] whole-tree: Constify Property structures, Richard Henderson, 2024/12/13
- [PATCH 48/71] hw/pci: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 51/71] hw/riscv: Constify all Property,
Richard Henderson <=
- [PATCH 52/71] hw/rtc: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 53/71] hw/rx: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 54/71] hw/s390x: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 56/71] hw/sd: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 57/71] hw/sparc: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 58/71] hw/sparc64: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 61/71] hw/tpm: Constify all Property, Richard Henderson, 2024/12/13