]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/misc: Constify all Property
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Dec 2024 16:15:59 +0000 (16:15 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 15 Dec 2024 18:55:39 +0000 (12:55 -0600)
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
52 files changed:
hw/misc/a9scu.c
hw/misc/allwinner-h3-dramc.c
hw/misc/allwinner-r40-dramc.c
hw/misc/allwinner-sid.c
hw/misc/applesmc.c
hw/misc/arm11scu.c
hw/misc/arm_l2x0.c
hw/misc/arm_sysctl.c
hw/misc/armsse-cpuid.c
hw/misc/aspeed_hace.c
hw/misc/aspeed_i3c.c
hw/misc/aspeed_lpc.c
hw/misc/aspeed_sbc.c
hw/misc/aspeed_scu.c
hw/misc/aspeed_sdmc.c
hw/misc/bcm2835_cprman.c
hw/misc/bcm2835_property.c
hw/misc/debugexit.c
hw/misc/eccmemctl.c
hw/misc/empty_slot.c
hw/misc/iotkit-secctl.c
hw/misc/iotkit-sysctl.c
hw/misc/iotkit-sysinfo.c
hw/misc/ivshmem.c
hw/misc/led.c
hw/misc/mac_via.c
hw/misc/macio/cuda.c
hw/misc/macio/macio.c
hw/misc/macio/pmu.c
hw/misc/mips_cmgcr.c
hw/misc/mips_cpc.c
hw/misc/mips_itu.c
hw/misc/mos6522.c
hw/misc/mps2-fpgaio.c
hw/misc/mps2-scc.c
hw/misc/msf2-sysreg.c
hw/misc/npcm7xx_gcr.c
hw/misc/nrf51_rng.c
hw/misc/pci-testdev.c
hw/misc/pvpanic-isa.c
hw/misc/pvpanic-pci.c
hw/misc/sifive_e_aon.c
hw/misc/sifive_u_otp.c
hw/misc/stm32l4x5_rcc.c
hw/misc/tz-mpc.c
hw/misc/tz-msc.c
hw/misc/tz-ppc.c
hw/misc/unimp.c
hw/misc/xlnx-versal-cframe-reg.c
hw/misc/xlnx-versal-cfu.c
hw/misc/xlnx-versal-xramc.c
hw/misc/zynq_slcr.c

index a40d5072de87af8959d52a6dd1223c29df2ac1c8..e2d73edde8866711d86cda8385b17b00a2a7f1a8 100644 (file)
@@ -123,7 +123,7 @@ static const VMStateDescription vmstate_a9_scu = {
     }
 };
 
-static Property a9_scu_properties[] = {
+static const Property a9_scu_properties[] = {
     DEFINE_PROP_UINT32("num-cpu", A9SCUState, num_cpu, 1),
     DEFINE_PROP_END_OF_LIST(),
 };
index eeab0dc5d2af7d99a264d8ccb14b8c925d2e5a65..247bf62c43c8087d28f509ee1d938ac21fff761a 100644 (file)
@@ -314,7 +314,7 @@ static void allwinner_h3_dramc_init(Object *obj)
     sysbus_init_mmio(sbd, &s->dramphy_iomem);
 }
 
-static Property allwinner_h3_dramc_properties[] = {
+static const Property allwinner_h3_dramc_properties[] = {
     DEFINE_PROP_UINT64("ram-addr", AwH3DramCtlState, ram_addr, 0x0),
     DEFINE_PROP_UINT32("ram-size", AwH3DramCtlState, ram_size, 256 * MiB),
     DEFINE_PROP_END_OF_LIST()
index 3ae48900372a3a67f01bb31a7588241d5e353dbd..a51284ff91f6068208c750bdb89b0ba2b073ccb1 100644 (file)
@@ -464,7 +464,7 @@ static void allwinner_r40_dramc_init(Object *obj)
     sysbus_init_mmio(sbd, &s->dramphy_iomem);
 }
 
-static Property allwinner_r40_dramc_properties[] = {
+static const Property allwinner_r40_dramc_properties[] = {
     DEFINE_PROP_UINT64("ram-addr", AwR40DramCtlState, ram_addr, 0x0),
     DEFINE_PROP_UINT32("ram-size", AwR40DramCtlState, ram_size, 256), /* MiB */
     DEFINE_PROP_END_OF_LIST()
index 19ff17d24afa2059fe87bd2b97af5913f72cb671..3a09dca111987e29ff3401ac3f742b2c46835b72 100644 (file)
@@ -127,7 +127,7 @@ static void allwinner_sid_init(Object *obj)
     sysbus_init_mmio(sbd, &s->iomem);
 }
 
-static Property allwinner_sid_properties[] = {
+static const Property allwinner_sid_properties[] = {
     DEFINE_PROP_UUID_NODEFAULT("identifier", AwSidState, identifier),
     DEFINE_PROP_END_OF_LIST()
 };
index 5b766277d6227c685dbe2f509282bd759061b93e..9d0e273e3367561df7f5d7e53e03cf60f2ff2c8d 100644 (file)
@@ -350,7 +350,7 @@ static void applesmc_unrealize(DeviceState *dev)
     }
 }
 
-static Property applesmc_isa_properties[] = {
+static const Property applesmc_isa_properties[] = {
     DEFINE_PROP_UINT32(APPLESMC_PROP_IO_BASE, AppleSMCState, iobase,
                        APPLESMC_DEFAULT_IOBASE),
     DEFINE_PROP_STRING("osk", AppleSMCState, osk),
index 17c36a05457feeab20bff16491599a58bb08e13f..37feed9da736ecf9767a307d799343220e67da2e 100644 (file)
@@ -75,7 +75,7 @@ static void arm11_scu_init(Object *obj)
     sysbus_init_mmio(sbd, &s->iomem);
 }
 
-static Property arm11_scu_properties[] = {
+static const Property arm11_scu_properties[] = {
     DEFINE_PROP_UINT32("num-cpu", ARM11SCUState, num_cpu, 1),
     DEFINE_PROP_END_OF_LIST()
 };
index 1902ebd3bca3d166ad1f2b8148ceb9aa5ae7890b..9c209f13b0349b53a0c5c85ac66b91d65940fc8b 100644 (file)
@@ -173,7 +173,7 @@ static void l2x0_priv_init(Object *obj)
     sysbus_init_mmio(dev, &s->iomem);
 }
 
-static Property l2x0_properties[] = {
+static const Property l2x0_properties[] = {
     DEFINE_PROP_UINT32("cache-type", L2x0State, cache_type, 0x1c100100),
     DEFINE_PROP_END_OF_LIST(),
 };
index 9c4dce350a93e2a2ec848ff61b1fdd80f66be4ff..69e379fa107f6680a474f168bbb99438585ee734 100644 (file)
@@ -623,7 +623,7 @@ static void arm_sysctl_finalize(Object *obj)
     g_free(s->db_clock_reset);
 }
 
-static Property arm_sysctl_properties[] = {
+static const Property arm_sysctl_properties[] = {
     DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
     DEFINE_PROP_UINT32("proc_id", arm_sysctl_state, proc_id, 0),
     /* Daughterboard power supply voltages (as reported via SYS_CFG) */
index e785a090519934ae7d6e58bf5b89f170fffaa242..b05bcdcabc4f9f95e8034fda5c912b450af64148 100644 (file)
@@ -92,7 +92,7 @@ static const MemoryRegionOps armsse_cpuid_ops = {
     .valid.max_access_size = 4,
 };
 
-static Property armsse_cpuid_props[] = {
+static const Property armsse_cpuid_props[] = {
     DEFINE_PROP_UINT32("CPUID", ARMSSECPUID, cpuid, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index bc1d66ad8064eb8a71532d9f8e7ec44f7040e628..5cefbadf9a0c70a09cd868300977be3ab24e68d5 100644 (file)
@@ -436,7 +436,7 @@ static void aspeed_hace_realize(DeviceState *dev, Error **errp)
     sysbus_init_mmio(sbd, &s->iomem);
 }
 
-static Property aspeed_hace_properties[] = {
+static const Property aspeed_hace_properties[] = {
     DEFINE_PROP_LINK("dram", AspeedHACEState, dram_mr,
                      TYPE_MEMORY_REGION, MemoryRegion *),
     DEFINE_PROP_END_OF_LIST(),
index 371ee7dba84d2e785d04311185f89de62d3d808b..7f5a389864402530a7e7f660dea3b27d2ac7759b 100644 (file)
@@ -323,7 +323,7 @@ static void aspeed_i3c_realize(DeviceState *dev, Error **errp)
 
 }
 
-static Property aspeed_i3c_device_properties[] = {
+static const Property aspeed_i3c_device_properties[] = {
     DEFINE_PROP_UINT8("device-id", AspeedI3CDevice, id, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index f2d4ca6f430cb056a8d8ea8ea4891e515beb15f9..bb9066b0f07a6654cc1aee2ad1f4d62e0bcdaa8d 100644 (file)
@@ -454,7 +454,7 @@ static const VMStateDescription vmstate_aspeed_lpc = {
     }
 };
 
-static Property aspeed_lpc_properties[] = {
+static const Property aspeed_lpc_properties[] = {
     DEFINE_PROP_UINT32("hicr7", AspeedLPCState, hicr7, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index f5eb2a0e37993ac88e4b5bc0f61134e2b5555ba4..b97cf51fa19e5eaec1f259e09aa8c5f338b76720 100644 (file)
@@ -136,7 +136,7 @@ static const VMStateDescription vmstate_aspeed_sbc = {
     }
 };
 
-static Property aspeed_sbc_properties[] = {
+static const Property aspeed_sbc_properties[] = {
     DEFINE_PROP_BOOL("emmc-abr", AspeedSBCState, emmc_abr, 0),
     DEFINE_PROP_UINT32("signing-settings", AspeedSBCState, signing_settings, 0),
     DEFINE_PROP_END_OF_LIST(),
index 2c919349cfc0def22b1250c0d3f9dccfaa053935..ac33b8d6cbd18f2aa5a9ea9e4658821929403e3c 100644 (file)
@@ -602,7 +602,7 @@ static const VMStateDescription vmstate_aspeed_scu = {
     }
 };
 
-static Property aspeed_scu_properties[] = {
+static const Property aspeed_scu_properties[] = {
     DEFINE_PROP_UINT32("silicon-rev", AspeedSCUState, silicon_rev, 0),
     DEFINE_PROP_UINT32("hw-strap1", AspeedSCUState, hw_strap1, 0),
     DEFINE_PROP_UINT32("hw-strap2", AspeedSCUState, hw_strap2, 0),
index 4bc9faf691d6747ce391aad7151e714df7880cf8..4980080f741a583601036c2c9eaf665db4dcf2e9 100644 (file)
@@ -294,7 +294,7 @@ static const VMStateDescription vmstate_aspeed_sdmc = {
     }
 };
 
-static Property aspeed_sdmc_properties[] = {
+static const Property aspeed_sdmc_properties[] = {
     DEFINE_PROP_UINT64("max-ram-size", AspeedSDMCState, max_ram_size, 0),
     DEFINE_PROP_BOOL("unlocked", AspeedSDMCState, unlocked, false),
     DEFINE_PROP_END_OF_LIST(),
index 63e1045abf97ef24855bbfe9aa6c095d2e4393e8..1a20cd0bc8af257218123f47cf92158bbf66d8de 100644 (file)
@@ -778,7 +778,7 @@ static const VMStateDescription cprman_vmstate = {
     }
 };
 
-static Property cprman_properties[] = {
+static const Property cprman_properties[] = {
     DEFINE_PROP_UINT32("xosc-freq-hz", BCM2835CprmanState, xosc_freq, 19200000),
     DEFINE_PROP_END_OF_LIST()
 };
index 8ca3128f29bc23d41d61066f1284da8cbb731711..09a6f2c6e3e95cb32513b81c437e048d740f7e01 100644 (file)
@@ -551,7 +551,7 @@ static void bcm2835_property_realize(DeviceState *dev, Error **errp)
     bcm2835_property_reset(dev);
 }
 
-static Property bcm2835_property_props[] = {
+static const Property bcm2835_property_props[] = {
     DEFINE_PROP_UINT32("board-rev", BCM2835PropertyState, board_rev, 0),
     DEFINE_PROP_STRING("command-line", BCM2835PropertyState, command_line),
     DEFINE_PROP_END_OF_LIST()
index c5c562fd93577fde31eaa8453f84436aa8811c54..639a8cc3e3e5ff27050584faa68bcf67bdfb4808 100644 (file)
@@ -56,7 +56,7 @@ static void debug_exit_realizefn(DeviceState *d, Error **errp)
                                 isa->iobase, &isa->io);
 }
 
-static Property debug_exit_properties[] = {
+static const Property debug_exit_properties[] = {
     DEFINE_PROP_UINT32("iobase", ISADebugExitState, iobase, 0x501),
     DEFINE_PROP_UINT32("iosize", ISADebugExitState, iosize, 0x02),
     DEFINE_PROP_END_OF_LIST(),
index 0f68fbe1b649c4c12bba2dba125ea9fa4f6d4984..4fc88bd4e57ba9cbce31af6b29e1eebb6bbb3159 100644 (file)
@@ -325,7 +325,7 @@ static void ecc_realize(DeviceState *dev, Error **errp)
     }
 }
 
-static Property ecc_properties[] = {
+static const Property ecc_properties[] = {
     DEFINE_PROP_UINT32("version", ECCState, version, -1),
     DEFINE_PROP_END_OF_LIST(),
 };
index 37b0ddfb02a90740d03cc75e86218d8f3549d8b6..79572c5be032deeb9acc3ef17dd18a2411ffaf8c 100644 (file)
@@ -79,7 +79,7 @@ static void empty_slot_realize(DeviceState *dev, Error **errp)
     sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem);
 }
 
-static Property empty_slot_properties[] = {
+static const Property empty_slot_properties[] = {
     DEFINE_PROP_UINT64("size", EmptySlot, size, 0),
     DEFINE_PROP_STRING("name", EmptySlot, name),
     DEFINE_PROP_END_OF_LIST(),
index 6e22f2aad62ca3ff39408c7c34173271d6a64048..abb6a963caed3d4b5eae619de8b0197c00b4b91d 100644 (file)
@@ -814,7 +814,7 @@ static const VMStateDescription iotkit_secctl_vmstate = {
     },
 };
 
-static Property iotkit_secctl_props[] = {
+static const Property iotkit_secctl_props[] = {
     DEFINE_PROP_UINT32("sse-version", IoTKitSecCtl, sse_version, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index c1b357e6b7f3821d44029b06f90ae706468a1024..23b49d7dff3493689f34299e4f5f7b6bee0705cd 100644 (file)
@@ -835,7 +835,7 @@ static const VMStateDescription iotkit_sysctl_vmstate = {
     }
 };
 
-static Property iotkit_sysctl_props[] = {
+static const Property iotkit_sysctl_props[] = {
     DEFINE_PROP_UINT32("sse-version", IoTKitSysCtl, sse_version, 0),
     DEFINE_PROP_UINT32("CPUWAIT_RST", IoTKitSysCtl, cpuwait_rst, 0),
     DEFINE_PROP_UINT32("INITSVTOR0_RST", IoTKitSysCtl, initsvtor0_rst,
index aaa9305b2ea6a39b7ea4425816b6746b7a39d3f5..7d4eea6bfbf9bd03e2efef12d9d2a36fcc5f9131 100644 (file)
@@ -131,7 +131,7 @@ static const MemoryRegionOps iotkit_sysinfo_ops = {
     .valid.max_access_size = 4,
 };
 
-static Property iotkit_sysinfo_props[] = {
+static const Property iotkit_sysinfo_props[] = {
     DEFINE_PROP_UINT32("SYS_VERSION", IoTKitSysInfo, sys_version, 0),
     DEFINE_PROP_UINT32("SYS_CONFIG", IoTKitSysInfo, sys_config, 0),
     DEFINE_PROP_UINT32("sse-version", IoTKitSysInfo, sse_version, 0),
index 5ce3fc0949a2dda282f723cfeeda8581f3b3df99..6d735ec29fe588974b9ce0b1847193107af8cd17 100644 (file)
@@ -1022,7 +1022,7 @@ static const VMStateDescription ivshmem_plain_vmsd = {
     },
 };
 
-static Property ivshmem_plain_properties[] = {
+static const Property ivshmem_plain_properties[] = {
     DEFINE_PROP_ON_OFF_AUTO("master", IVShmemState, master, ON_OFF_AUTO_OFF),
     DEFINE_PROP_LINK("memdev", IVShmemState, hostmem, TYPE_MEMORY_BACKEND,
                      HostMemoryBackend *),
@@ -1077,7 +1077,7 @@ static const VMStateDescription ivshmem_doorbell_vmsd = {
     },
 };
 
-static Property ivshmem_doorbell_properties[] = {
+static const Property ivshmem_doorbell_properties[] = {
     DEFINE_PROP_CHR("chardev", IVShmemState, server_chr),
     DEFINE_PROP_UINT32("vectors", IVShmemState, vectors, 1),
     DEFINE_PROP_BIT("ioeventfd", IVShmemState, features, IVSHMEM_IOEVENTFD,
index 4bb6ce8d2962c6fdb987bd866603cfbb7ccf46ea..76efdbc3f16f3e823c7f749d0c931bf86109f697 100644 (file)
@@ -101,7 +101,7 @@ static void led_realize(DeviceState *dev, Error **errp)
     qdev_init_gpio_in(DEVICE(s), led_set_state_gpio_handler, 1);
 }
 
-static Property led_properties[] = {
+static const Property led_properties[] = {
     DEFINE_PROP_STRING("color", LEDState, color),
     DEFINE_PROP_STRING("description", LEDState, description),
     DEFINE_PROP_BOOL("gpio-active-high", LEDState, gpio_active_high, true),
index af2b2b1af3d00fcc5bbc864e60eab22895b64b37..a376a2b8a02bdd20524f6035c667341cb522c5d7 100644 (file)
@@ -1322,7 +1322,7 @@ static const VMStateDescription vmstate_q800_via1 = {
     }
 };
 
-static Property mos6522_q800_via1_properties[] = {
+static const Property mos6522_q800_via1_properties[] = {
     DEFINE_PROP_DRIVE("drive", MOS6522Q800VIA1State, blk),
     DEFINE_PROP_END_OF_LIST(),
 };
index 1db7ebf3e20034e5d6a5ab5270eb0470976865bf..cfc8afd1dc234b7d99c945faca98e0b02bb94b1f 100644 (file)
@@ -554,7 +554,7 @@ static void cuda_init(Object *obj)
               DEVICE(obj), "adb.0");
 }
 
-static Property cuda_properties[] = {
+static const Property cuda_properties[] = {
     DEFINE_PROP_UINT64("timebase-frequency", CUDAState, tb_frequency, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index 3f449f91c00c0857610e1acd4ae2e0e809834616..7e3d5aa977e707d7db31bd5afe14ae56a41f97cc 100644 (file)
@@ -405,7 +405,7 @@ static const VMStateDescription vmstate_macio_newworld = {
     }
 };
 
-static Property macio_newworld_properties[] = {
+static const Property macio_newworld_properties[] = {
     DEFINE_PROP_BOOL("has-pmu", NewWorldMacIOState, has_pmu, false),
     DEFINE_PROP_BOOL("has-adb", NewWorldMacIOState, has_adb, false),
     DEFINE_PROP_END_OF_LIST()
@@ -422,7 +422,7 @@ static void macio_newworld_class_init(ObjectClass *oc, void *data)
     device_class_set_props(dc, macio_newworld_properties);
 }
 
-static Property macio_properties[] = {
+static const Property macio_properties[] = {
     DEFINE_PROP_UINT64("frequency", MacIOState, frequency, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index 4b451e0af344702cc8200b80ad9c424bfbff3d12..64bf44f67f6e0f8034b6d891a0ecd0e642da2f79 100644 (file)
@@ -760,7 +760,7 @@ static void pmu_init(Object *obj)
     sysbus_init_mmio(d, &s->mem);
 }
 
-static Property pmu_properties[] = {
+static const Property pmu_properties[] = {
     DEFINE_PROP_BOOL("has-adb", PMUState, has_adb, true),
     DEFINE_PROP_END_OF_LIST()
 };
index 04256aacdc750c2815b0347a12452473553b4d2b..80ca224f76cf046f9a9ddc26e1b5e955b9d572ed 100644 (file)
@@ -211,7 +211,7 @@ static const VMStateDescription vmstate_mips_gcr = {
     },
 };
 
-static Property mips_gcr_properties[] = {
+static const Property mips_gcr_properties[] = {
     DEFINE_PROP_UINT32("num-vp", MIPSGCRState, num_vps, 1),
     DEFINE_PROP_INT32("gcr-rev", MIPSGCRState, gcr_rev, 0x800),
     DEFINE_PROP_UINT64("gcr-base", MIPSGCRState, gcr_base, GCR_BASE_ADDR),
index 2f7fb8167f6569a6eb9823f505c60bdcde35caf7..86ff0f7ad895477dced6aef06bd3e32c7ec0a1ee 100644 (file)
@@ -163,7 +163,7 @@ static const VMStateDescription vmstate_mips_cpc = {
     },
 };
 
-static Property mips_cpc_properties[] = {
+static const Property mips_cpc_properties[] = {
     DEFINE_PROP_UINT32("num-vp", MIPSCPCState, num_vp, 0x1),
     DEFINE_PROP_UINT64("vp-start-running", MIPSCPCState, vp_start_running, 0x1),
     DEFINE_PROP_END_OF_LIST(),
index c5214c8b30bf876522f7f08a472f5999d6958a89..d84a7dbf1523570f8587f0e3f3eb9b6b05ac7b7d 100644 (file)
@@ -533,7 +533,7 @@ static void mips_itu_reset(DeviceState *dev)
     itc_reset_cells(s);
 }
 
-static Property mips_itu_properties[] = {
+static const Property mips_itu_properties[] = {
     DEFINE_PROP_UINT32("num-fifo", MIPSITUState, num_fifo,
                       ITC_FIFO_NUM_MAX),
     DEFINE_PROP_UINT32("num-semaphores", MIPSITUState, num_semaphores,
index 515f62e687db1165773531e16a6749f3678f0719..0225a5869bfb67254135e607e9a8bc65a6329e4e 100644 (file)
@@ -696,7 +696,7 @@ static void mos6522_finalize(Object *obj)
     timer_free(s->timers[1].timer);
 }
 
-static Property mos6522_properties[] = {
+static const Property mos6522_properties[] = {
     DEFINE_PROP_UINT64("frequency", MOS6522State, frequency, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index 20359254badb61c7e494b3ee0f8a9e5314f99850..2e8d1c721c10cefc0aafd2919f15c64d985481b2 100644 (file)
@@ -319,7 +319,7 @@ static const VMStateDescription mps2_fpgaio_vmstate = {
     },
 };
 
-static Property mps2_fpgaio_properties[] = {
+static const Property mps2_fpgaio_properties[] = {
     /* Frequency of the prescale counter */
     DEFINE_PROP_UINT32("prescale-clk", MPS2FPGAIO, prescale_clk, 20000000),
     /* Number of LEDs controlled by LED0 register */
index d45ff77bd60b3bea9b88d0607feacdcab6db0453..f378b755714a042674ad1bd41496f0badccde62f 100644 (file)
@@ -456,7 +456,7 @@ static const VMStateDescription mps2_scc_vmstate = {
     }
 };
 
-static Property mps2_scc_properties[] = {
+static const Property mps2_scc_properties[] = {
     /* Values for various read-only ID registers (which are specific
      * to the board model or FPGA image)
      */
index b8dde198c6b154829a0d988cb548796d84230cdf..0d7a713c766e88d110a57f52784d56bc3af45280 100644 (file)
@@ -118,7 +118,7 @@ static const VMStateDescription vmstate_msf2_sysreg = {
     }
 };
 
-static Property msf2_sysreg_properties[] = {
+static const Property msf2_sysreg_properties[] = {
     /* default divisors in Libero GUI */
     DEFINE_PROP_UINT8("apb0divisor", MSF2SysregState, apb0div, 2),
     DEFINE_PROP_UINT8("apb1divisor", MSF2SysregState, apb1div, 2),
index c4c4e246d7ee4dba7f65427b2d35bc4e25f9f5d4..17aeaf22cbddacf49511c3e19ae7db37220b4333 100644 (file)
@@ -229,7 +229,7 @@ static const VMStateDescription vmstate_npcm7xx_gcr = {
     },
 };
 
-static Property npcm7xx_gcr_properties[] = {
+static const Property npcm7xx_gcr_properties[] = {
     DEFINE_PROP_UINT32("disabled-modules", NPCM7xxGCRState, reset_mdlr, 0),
     DEFINE_PROP_UINT32("power-on-straps", NPCM7xxGCRState, reset_pwron, 0),
     DEFINE_PROP_END_OF_LIST(),
index 2d67f3f766ee52e13408cdfc28d967e2d7d0deac..2b550a6bcab23bebe5017cc8a6c8a77bec685e8a 100644 (file)
@@ -219,7 +219,7 @@ static void nrf51_rng_reset(DeviceState *dev)
 }
 
 
-static Property nrf51_rng_properties[] = {
+static const Property nrf51_rng_properties[] = {
     DEFINE_PROP_UINT16("period_unfiltered_us", NRF51RNGState,
             period_unfiltered_us, 167),
     DEFINE_PROP_UINT16("period_filtered_us", NRF51RNGState,
index 0b5f236a208ef12b8f6e3e486da752d8aff67ab6..7927397a23ac0aaa433877faafbd71551b7467e6 100644 (file)
@@ -319,7 +319,7 @@ static void qdev_pci_testdev_reset(DeviceState *dev)
     pci_testdev_reset(d);
 }
 
-static Property pci_testdev_properties[] = {
+static const Property pci_testdev_properties[] = {
     DEFINE_PROP_SIZE("membar", PCITestDevState, membar_size, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index 9a923b786907fcc27a38f6c8137a80d6421c2591..824a2e4528c001bc29e28a91ab8ebe78c5b9630b 100644 (file)
@@ -98,7 +98,7 @@ static void build_pvpanic_isa_aml(AcpiDevAmlIf *adev, Aml *scope)
     aml_append(scope, dev);
 }
 
-static Property pvpanic_isa_properties[] = {
+static const Property pvpanic_isa_properties[] = {
     DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicISAState, ioport, 0x505),
     DEFINE_PROP_UINT8("events", PVPanicISAState, pvpanic.events,
                       PVPANIC_EVENTS),
index 106d03ccd69f13e74afffd1b79f747084f3773b6..1c3eafc1377e090e89b29f71ec503e64dcffb71b 100644 (file)
@@ -53,7 +53,7 @@ static void pvpanic_pci_realizefn(PCIDevice *dev, Error **errp)
     pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &ps->mr);
 }
 
-static Property pvpanic_pci_properties[] = {
+static const Property pvpanic_pci_properties[] = {
     DEFINE_PROP_UINT8("events", PVPanicPCIState, pvpanic.events,
                       PVPANIC_EVENTS),
     DEFINE_PROP_END_OF_LIST(),
index f819fc10e68cfacc0abd6af98eebe4cf8a1c8185..c48429b131522ebe0406b705610d30d679843ccf 100644 (file)
@@ -289,7 +289,7 @@ static void sifive_e_aon_init(Object *obj)
     sysbus_init_irq(sbd, &r->wdog_irq);
 }
 
-static Property sifive_e_aon_properties[] = {
+static const Property sifive_e_aon_properties[] = {
     DEFINE_PROP_UINT64("wdogclk-frequency", SiFiveEAONState, wdogclk_freq,
                        SIFIVE_E_LFCLK_DEFAULT_FREQ),
     DEFINE_PROP_END_OF_LIST(),
index 8965f5c22aa6e267ab5f7d7bf537ecd91aba5fcf..32cd8e8dfbd7440970357c18314b60ea4d979272 100644 (file)
@@ -194,7 +194,7 @@ static const MemoryRegionOps sifive_u_otp_ops = {
     }
 };
 
-static Property sifive_u_otp_properties[] = {
+static const Property sifive_u_otp_properties[] = {
     DEFINE_PROP_UINT32("serial", SiFiveUOTPState, serial, 0),
     DEFINE_PROP_DRIVE("drive", SiFiveUOTPState, blk),
     DEFINE_PROP_END_OF_LIST(),
index 59d428fa66294be96db33c60c2820bc780a4fd52..b61241d1954da704c0f225910b4031314a80a283 100644 (file)
@@ -1426,7 +1426,7 @@ static void stm32l4x5_rcc_realize(DeviceState *dev, Error **errp)
     clock_update(s->gnd, 0);
 }
 
-static Property stm32l4x5_rcc_properties[] = {
+static const Property stm32l4x5_rcc_properties[] = {
     DEFINE_PROP_UINT64("hse_frequency", Stm32l4x5RccState,
         hse_frequency, HSE_DEFAULT_FRQ),
     DEFINE_PROP_UINT64("sai1_extclk_frequency", Stm32l4x5RccState,
index 66a46a7b9f56874a1160573e5e3e850b761d1343..b06eb9f119f4cee767382cf05ae87f6f3b53a64a 100644 (file)
@@ -587,7 +587,7 @@ static const VMStateDescription tz_mpc_vmstate = {
     }
 };
 
-static Property tz_mpc_properties[] = {
+static const Property tz_mpc_properties[] = {
     DEFINE_PROP_LINK("downstream", TZMPC, downstream,
                      TYPE_MEMORY_REGION, MemoryRegion *),
     DEFINE_PROP_END_OF_LIST(),
index 82ccaa014ae94b6b2c15e8fa6cf07c996f919b01..96413a502da71298b02c548b9f0ea7c420fbc6b5 100644 (file)
@@ -278,7 +278,7 @@ static const VMStateDescription tz_msc_vmstate = {
     }
 };
 
-static Property tz_msc_properties[] = {
+static const Property tz_msc_properties[] = {
     DEFINE_PROP_LINK("downstream", TZMSC, downstream,
                      TYPE_MEMORY_REGION, MemoryRegion *),
     DEFINE_PROP_LINK("idau", TZMSC, idau,
index 922dcf7f63f72a5c68a9f164d6a7eac79a17e758..1943d8d165ac9f7968f77095ef68ba0bf6f396bf 100644 (file)
@@ -305,7 +305,7 @@ static const VMStateDescription tz_ppc_vmstate = {
     DEFINE_PROP_LINK("port[" #N "]", TZPPC, port[N].downstream, \
                      TYPE_MEMORY_REGION, MemoryRegion *)
 
-static Property tz_ppc_properties[] = {
+static const Property tz_ppc_properties[] = {
     DEFINE_PROP_UINT32("NONSEC_MASK", TZPPC, nonsec_mask, 0),
     DEFINE_PORT(0),
     DEFINE_PORT(1),
index 6cfc5727f0b60a2cdc6e8e140a741437a93c15e4..62e1153627ff6e62f211bf45c59141af77e3749e 100644 (file)
@@ -70,7 +70,7 @@ static void unimp_realize(DeviceState *dev, Error **errp)
     sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->iomem);
 }
 
-static Property unimp_properties[] = {
+static const Property unimp_properties[] = {
     DEFINE_PROP_UINT64("size", UnimplementedDeviceState, size, 0),
     DEFINE_PROP_STRING("name", UnimplementedDeviceState, name),
     DEFINE_PROP_END_OF_LIST(),
index 3fc838bd54b88c28cc6e674addecb7bb2e1be608..8281a9bafff0ee8eb44fcc667edda1b47a28abc0 100644 (file)
@@ -720,7 +720,7 @@ static const VMStateDescription vmstate_cframe_reg = {
     }
 };
 
-static Property cframe_regs_props[] = {
+static const Property cframe_regs_props[] = {
     DEFINE_PROP_LINK("cfu-fdro", XlnxVersalCFrameReg, cfg.cfu_fdro,
                      TYPE_XLNX_CFI_IF, XlnxCfiIf *),
     DEFINE_PROP_UINT32("blktype0-frames", XlnxVersalCFrameReg,
@@ -771,7 +771,7 @@ static const VMStateDescription vmstate_cframe_bcast_reg = {
     }
 };
 
-static Property cframe_bcast_regs_props[] = {
+static const Property cframe_bcast_regs_props[] = {
     DEFINE_PROP_LINK("cframe0", XlnxVersalCFrameBcastReg, cfg.cframe[0],
                      TYPE_XLNX_CFI_IF, XlnxCfiIf *),
     DEFINE_PROP_LINK("cframe1", XlnxVersalCFrameBcastReg, cfg.cframe[1],
index 94f85814c8ac3e0ff3068d96baaf2d8f87d04c98..7cfdabdb8e126b258391d63cb4db8cef43a84e04 100644 (file)
@@ -426,7 +426,7 @@ static void cfu_fdro_cfi_transfer_packet(XlnxCfiIf *cfi_if, XlnxCfiPacket *pkt)
     }
 }
 
-static Property cfu_props[] = {
+static const Property cfu_props[] = {
         DEFINE_PROP_LINK("cframe0", XlnxVersalCFUAPB, cfg.cframe[0],
                          TYPE_XLNX_CFI_IF, XlnxCfiIf *),
         DEFINE_PROP_LINK("cframe1", XlnxVersalCFUAPB, cfg.cframe[1],
@@ -460,7 +460,7 @@ static Property cfu_props[] = {
         DEFINE_PROP_END_OF_LIST(),
 };
 
-static Property cfu_sfr_props[] = {
+static const Property cfu_sfr_props[] = {
         DEFINE_PROP_LINK("cfu", XlnxVersalCFUSFR, cfg.cfu,
                          TYPE_XLNX_VERSAL_CFU_APB, XlnxVersalCFUAPB *),
         DEFINE_PROP_END_OF_LIST(),
index ad839ce7e9fcfeaa3cf8d2098bd31e530c9fcd49..a06b9fbc05aed762cd2479145cecd4901f6a3d73 100644 (file)
@@ -218,7 +218,7 @@ static const VMStateDescription vmstate_xram_ctrl = {
     }
 };
 
-static Property xram_ctrl_properties[] = {
+static const Property xram_ctrl_properties[] = {
     DEFINE_PROP_UINT64("size", XlnxXramCtrl, cfg.size, 1 * MiB),
     DEFINE_PROP_END_OF_LIST(),
 };
index ad814c3a79b1aa4044e63443d724581b1b0e9117..ffa14ecb84ff6a9f26fedab97b7b4222af449428 100644 (file)
@@ -623,7 +623,7 @@ static const VMStateDescription vmstate_zynq_slcr = {
     }
 };
 
-static Property zynq_slcr_props[] = {
+static const Property zynq_slcr_props[] = {
     DEFINE_PROP_UINT8("boot-mode", ZynqSLCRState, boot_mode, 1),
     DEFINE_PROP_END_OF_LIST(),
 };