[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 49/67] hw/riscv: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 49/67] hw/riscv: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:05:15 -0600 |
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
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
- [PULL 51/67] hw/rx: Constify all Property, (continued)
- [PULL 51/67] hw/rx: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 54/67] hw/sd: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 53/67] hw/scsi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 48/67] hw/remote: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 50/67] hw/rtc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 52/67] hw/s390x: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 58/67] hw/timer: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 57/67] hw/ssi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 60/67] hw/ufs: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 59/67] hw/tpm: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 49/67] hw/riscv: Constify all Property,
Richard Henderson <=
- [PULL 64/67] hw/watchdog: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 63/67] hw/virtio: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 55/67] hw/sparc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 67/67] docs: Constify all Property in examples, Richard Henderson, 2024/12/15
- [PULL 61/67] hw/usb: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 62/67] hw/vfio: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 66/67] tests/unit: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 56/67] hw/sparc64: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 65/67] hw/xen: Constify all Property, Richard Henderson, 2024/12/15
- Re: [PULL 00/67] Constify almost all Property, Stefan Hajnoczi, 2024/12/16