Constify almost all Property
Subsystems (11)
The following changes since commit ca80a5d026a280762e0772615f1988db542b3ade:
Merge tag 'hw-misc-20241214' of https://github.com/philmd/qemu into staging (2024-12-14 08:42:53 -0500)
are available in the Git repository at:
https://gitlab.com/rth7680/qemu.git tags/pull-prop-20241215
for you to fetch changes up to fd363a14f68a7bcbede024fb5155371c19b8f5d2:
docs: Constify all Property in examples (2024-12-15 12:56:51 -0600)
----------------------------------------------------------------
Constify almost all struct Property
----------------------------------------------------------------
Richard Henderson (67):
target/arm: Constify all Property target/avr: Constify all Property target/hexagon: Constify all Property target/i386: Constify all Property target/microblaze: Constify all Property target/mips: Constify all Property target/riscv: Constify all Property target/s390x: Constify all Property target/sparc: Constify all Property and PropertyInfo
cpu-target: Constify all Property
hw/9pfs: Constify all Property
hw/acpi: Constify all Property
hw/adc: Constify all Property
hw/arm: Constify all Property
hw/audio: Constify all Property
hw/avr: Constify all Property hw/block/xen-block: Unexport PropertyInfo hw/block: Constify all Property
hw/char: Constify all Property
hw/core: Constify all Property
hw/cpu: Constify all Property
hw/cxl: Constify all Property
hw/display: Constify all Property
hw/dma: Constify all Property
hw/gpio: Constify all Property
hw/hyperv: Constify all Property
hw/i2c: Constify all Property
hw/i386: Constify all Property
hw/ide: Constify all Property
hw/input: Constify all Property
hw/intc: Constify all Property
hw/ipack: Constify all Property
hw/ipmi: Constify all Property
hw/isa: Constify all Property
hw/m68k: Constify all Property
hw/mem: Constify all Property
hw/mips: Constify all Property hw/misc/xlnx-versal-trng: Constify trng_props hw/misc: Constify all Property
hw/net: Constify all Property
hw/nubus: Constify all Property
hw/nvme: Constify all Property
hw/nvram: Constify all Property hw/pci-bridge: Constify all Property hw/pci-host: Constify all Property
hw/pci: Constify all Property
hw/ppc: Constify all Property
hw/remote: Constify all Property
hw/riscv: Constify all Property
hw/rtc: Constify all Property
hw/rx: Constify all Property
hw/s390x: Constify all Property
hw/scsi: Constify all Property
hw/sd: Constify all Property
hw/sparc: Constify all Property
hw/sparc64: Constify all Property
hw/ssi: Constify all Property
hw/timer: Constify all Property
hw/tpm: Constify all Property
hw/ufs: Constify all Property
hw/usb: Constify all Property
hw/vfio: Constify all Property
hw/virtio: Constify all Property hw/watchdog: Constify all Property
hw/xen: Constify all Property
tests/unit: Constify all Property
docs: Constify all Property in examples
cpu-target.c | 2 +- hw/9pfs/virtio-9p-device.c | 2 +- hw/acpi/erst.c | 2 +- hw/acpi/generic_event_device.c | 2 +- hw/acpi/piix4.c | 2 +- hw/acpi/vmgenid.c | 2 +- hw/adc/aspeed_adc.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- hw/arm/armsse.c | 8 ++++---- hw/arm/armv7m.c | 4 ++-- hw/arm/aspeed_soc_common.c | 2 +- hw/arm/bcm2836.c | 2 +- hw/arm/fsl-imx25.c | 2 +- hw/arm/fsl-imx6.c | 2 +- hw/arm/fsl-imx6ul.c | 2 +- hw/arm/fsl-imx7.c | 2 +- hw/arm/integratorcp.c | 2 +- hw/arm/msf2-soc.c | 2 +- hw/arm/npcm7xx.c | 2 +- hw/arm/nrf51_soc.c | 2 +- hw/arm/smmu-common.c | 2 +- hw/arm/smmuv3.c | 2 +- hw/arm/stellaris.c | 2 +- hw/arm/strongarm.c | 2 +- hw/arm/xlnx-versal.c | 2 +- hw/arm/xlnx-zynqmp.c | 2 +- hw/audio/ac97.c | 2 +- hw/audio/adlib.c | 2 +- hw/audio/asc.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/es1370.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/hda-codec.c | 2 +- hw/audio/intel-hda.c | 4 ++-- hw/audio/pcspk.c | 2 +- hw/audio/pl041.c | 2 +- hw/audio/sb16.c | 2 +- hw/audio/via-ac97.c | 2 +- hw/audio/virtio-snd-pci.c | 2 +- hw/audio/virtio-snd.c | 2 +- hw/audio/wm8750.c | 2 +- hw/avr/atmega.c | 2 +- hw/block/fdc-isa.c | 2 +- hw/block/fdc-sysbus.c | 4 ++-- hw/block/fdc.c | 2 +- hw/block/m25p80.c | 2 +- hw/block/nand.c | 2 +- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- hw/block/swim.c | 2 +- hw/block/vhost-user-blk.c | 2 +- hw/block/virtio-blk.c | 2 +- hw/block/xen-block.c | 4 ++-- hw/char/avr_usart.c | 2 +- hw/char/bcm2835_aux.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/cmsdk-apb-uart.c | 2 +- hw/char/debugcon.c | 2 +- hw/char/digic-uart.c | 2 +- hw/char/escc.c | 2 +- hw/char/exynos4210_uart.c | 2 +- hw/char/goldfish_tty.c | 2 +- hw/char/grlib_apbuart.c | 2 +- hw/char/ibex_uart.c | 2 +- hw/char/imx_serial.c | 2 +- hw/char/ipoctal232.c | 2 +- hw/char/mcf_uart.c | 2 +- hw/char/nrf51_uart.c | 2 +- hw/char/parallel.c | 2 +- hw/char/pl011.c | 2 +- hw/char/renesas_sci.c | 2 +- hw/char/sclpconsole-lm.c | 2 +- hw/char/sclpconsole.c | 2 +- hw/char/serial-isa.c | 2 +- hw/char/serial-mm.c | 2 +- hw/char/serial-pci-multi.c | 4 ++-- hw/char/serial-pci.c | 2 +- hw/char/serial.c | 2 +- hw/char/sh_serial.c | 2 +- hw/char/shakti_uart.c | 2 +- hw/char/sifive_uart.c | 2 +- hw/char/spapr_vty.c | 2 +- hw/char/stm32f2xx_usart.c | 2 +- hw/char/stm32l4x5_usart.c | 2 +- hw/char/terminal3270.c | 2 +- hw/char/virtio-console.c | 2 +- hw/char/virtio-serial-bus.c | 4 ++-- hw/char/xen_console.c | 2 +- hw/char/xilinx_uartlite.c | 2 +- hw/core/generic-loader.c | 2 +- hw/core/guest-loader.c | 2 +- hw/core/or-irq.c | 2 +- hw/core/platform-bus.c | 2 +- hw/core/split-irq.c | 2 +- hw/cpu/a15mpcore.c | 2 +- hw/cpu/a9mpcore.c | 2 +- hw/cpu/arm11mpcore.c | 2 +- hw/cpu/cluster.c | 2 +- hw/cpu/realview_mpcore.c | 2 +- hw/cxl/switch-mailbox-cci.c | 2 +- hw/display/artist.c | 2 +- hw/display/ati.c | 2 +- hw/display/bcm2835_fb.c | 2 +- hw/display/bochs-display.c | 2 +- hw/display/cg3.c | 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/cirrus_vga_isa.c | 2 +- hw/display/exynos4210_fimd.c | 2 +- hw/display/g364fb.c | 2 +- hw/display/i2c-ddc.c | 2 +- hw/display/macfb.c | 4 ++-- hw/display/pl110.c | 2 +- hw/display/qxl.c | 2 +- hw/display/ramfb-standalone.c | 2 +- hw/display/sm501.c | 4 ++-- hw/display/tcx.c | 2 +- hw/display/vga-isa.c | 2 +- hw/display/vga-mmio.c | 2 +- hw/display/vga-pci.c | 4 ++-- hw/display/vhost-user-gpu.c | 2 +- hw/display/virtio-gpu-gl.c | 2 +- hw/display/virtio-gpu-pci.c | 2 +- hw/display/virtio-gpu-rutabaga.c | 2 +- hw/display/virtio-gpu.c | 2 +- hw/display/virtio-vga.c | 2 +- hw/display/vmware_vga.c | 2 +- hw/display/xlnx_dp.c | 2 +- hw/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- hw/dma/pl080.c | 2 +- hw/dma/pl330.c | 2 +- hw/dma/xilinx_axidma.c | 2 +- hw/dma/xlnx-zdma.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- hw/gpio/imx_gpio.c | 2 +- hw/gpio/npcm7xx_gpio.c | 2 +- hw/gpio/omap_gpio.c | 2 +- hw/gpio/pca9552.c | 2 +- hw/gpio/pca9554.c | 2 +- hw/gpio/pl061.c | 2 +- hw/gpio/sifive_gpio.c | 2 +- hw/gpio/stm32l4x5_gpio.c | 2 +- hw/hyperv/hv-balloon.c | 2 +- hw/hyperv/syndbg.c | 2 +- hw/hyperv/vmbus.c | 4 ++-- hw/i2c/aspeed_i2c.c | 4 ++-- hw/i2c/core.c | 2 +- hw/i2c/i2c_mux_pca954x.c | 2 +- hw/i2c/omap_i2c.c | 2 +- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 2 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/sgx-epc.c | 2 +- hw/i386/vmmouse.c | 2 +- hw/i386/vmport.c | 2 +- hw/i386/x86-iommu.c | 2 +- hw/i386/xen/xen_pvdevice.c | 2 +- hw/ide/cf.c | 2 +- hw/ide/cmd646.c | 2 +- hw/ide/ide-dev.c | 6 +++--- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/mmio.c | 2 +- hw/input/pckbd.c | 4 ++-- hw/input/stellaris_gamepad.c | 2 +- hw/input/virtio-input-hid.c | 6 +++--- hw/input/virtio-input-host.c | 2 +- hw/input/virtio-input.c | 2 +- hw/intc/apic_common.c | 2 +- hw/intc/arm_gic_common.c | 2 +- hw/intc/arm_gicv2m.c | 2 +- hw/intc/arm_gicv3_common.c | 2 +- hw/intc/arm_gicv3_its.c | 2 +- hw/intc/arm_gicv3_its_kvm.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/intc/exynos4210_combiner.c | 2 +- hw/intc/exynos4210_gic.c | 2 +- hw/intc/goldfish_pic.c | 2 +- hw/intc/grlib_irqmp.c | 2 +- hw/intc/i8259_common.c | 2 +- hw/intc/ioapic.c | 2 +- hw/intc/loongarch_extioi.c | 2 +- hw/intc/loongarch_pch_msi.c | 2 +- hw/intc/loongarch_pch_pic.c | 2 +- hw/intc/loongson_ipi_common.c | 2 +- hw/intc/m68k_irqc.c | 2 +- hw/intc/mips_gic.c | 2 +- hw/intc/omap_intc.c | 2 +- hw/intc/ompic.c | 2 +- hw/intc/openpic.c | 2 +- hw/intc/openpic_kvm.c | 2 +- hw/intc/pnv_xive.c | 2 +- hw/intc/pnv_xive2.c | 2 +- hw/intc/ppc-uic.c | 2 +- hw/intc/riscv_aclint.c | 4 ++-- hw/intc/riscv_aplic.c | 2 +- hw/intc/riscv_imsic.c | 2 +- hw/intc/rx_icu.c | 2 +- hw/intc/s390_flic.c | 4 ++-- hw/intc/sifive_plic.c | 2 +- hw/intc/spapr_xive.c | 2 +- hw/intc/xics.c | 4 ++-- hw/intc/xilinx_intc.c | 2 +- hw/intc/xive.c | 8 ++++---- hw/intc/xive2.c | 4 ++-- hw/intc/xlnx-pmu-iomod-intc.c | 2 +- hw/ipack/ipack.c | 2 +- hw/ipmi/ipmi.c | 2 +- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +- hw/ipmi/isa_ipmi_kcs.c | 2 +- hw/isa/lpc_ich9.c | 2 +- hw/isa/pc87312.c | 2 +- hw/isa/piix.c | 2 +- hw/m68k/mcf5206.c | 2 +- hw/m68k/mcf_intc.c | 2 +- hw/m68k/next-cube.c | 2 +- hw/m68k/q800-glue.c | 2 +- hw/mem/cxl_type3.c | 2 +- hw/mem/nvdimm.c | 2 +- hw/mem/pc-dimm.c | 2 +- hw/mem/sparse-mem.c | 2 +- hw/mips/cps.c | 2 +- hw/misc/a9scu.c | 2 +- hw/misc/allwinner-h3-dramc.c | 2 +- hw/misc/allwinner-r40-dramc.c | 2 +- hw/misc/allwinner-sid.c | 2 +- hw/misc/applesmc.c | 2 +- hw/misc/arm11scu.c | 2 +- hw/misc/arm_l2x0.c | 2 +- hw/misc/arm_sysctl.c | 2 +- hw/misc/armsse-cpuid.c | 2 +- hw/misc/aspeed_hace.c | 2 +- hw/misc/aspeed_i3c.c | 2 +- hw/misc/aspeed_lpc.c | 2 +- hw/misc/aspeed_sbc.c | 2 +- hw/misc/aspeed_scu.c | 2 +- hw/misc/aspeed_sdmc.c | 2 +- hw/misc/bcm2835_cprman.c | 2 +- hw/misc/bcm2835_property.c | 2 +- hw/misc/debugexit.c | 2 +- hw/misc/eccmemctl.c | 2 +- hw/misc/empty_slot.c | 2 +- hw/misc/iotkit-secctl.c | 2 +- hw/misc/iotkit-sysctl.c | 2 +- hw/misc/iotkit-sysinfo.c | 2 +- hw/misc/ivshmem.c | 4 ++-- hw/misc/led.c | 2 +- hw/misc/mac_via.c | 2 +- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 2 +- hw/misc/mips_cmgcr.c | 2 +- hw/misc/mips_cpc.c | 2 +- hw/misc/mips_itu.c | 2 +- hw/misc/mos6522.c | 2 +- hw/misc/mps2-fpgaio.c | 2 +- hw/misc/mps2-scc.c | 2 +- hw/misc/msf2-sysreg.c | 2 +- hw/misc/npcm7xx_gcr.c | 2 +- hw/misc/nrf51_rng.c | 2 +- hw/misc/pci-testdev.c | 2 +- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/sifive_e_aon.c | 2 +- hw/misc/sifive_u_otp.c | 2 +- hw/misc/stm32l4x5_rcc.c | 2 +- hw/misc/tz-mpc.c | 2 +- hw/misc/tz-msc.c | 2 +- hw/misc/tz-ppc.c | 2 +- hw/misc/unimp.c | 2 +- hw/misc/xlnx-versal-cframe-reg.c | 4 ++-- hw/misc/xlnx-versal-cfu.c | 4 ++-- hw/misc/xlnx-versal-trng.c | 6 +++--- hw/misc/xlnx-versal-xramc.c | 2 +- hw/misc/zynq_slcr.c | 2 +- hw/net/allwinner-sun8i-emac.c | 2 +- hw/net/allwinner_emac.c | 2 +- hw/net/cadence_gem.c | 2 +- hw/net/can/xlnx-versal-canfd.c | 2 +- hw/net/can/xlnx-zynqmp-can.c | 2 +- hw/net/dp8393x.c | 2 +- hw/net/e1000.c | 2 +- hw/net/e1000e.c | 2 +- hw/net/eepro100.c | 2 +- hw/net/fsl_etsec/etsec.c | 2 +- hw/net/ftgmac100.c | 4 ++-- hw/net/igb.c | 2 +- hw/net/imx_fec.c | 2 +- hw/net/lan9118.c | 2 +- hw/net/lance.c | 2 +- hw/net/lasi_i82596.c | 2 +- hw/net/mcf_fec.c | 2 +- hw/net/mipsnet.c | 2 +- hw/net/msf2-emac.c | 2 +- hw/net/mv88w8618_eth.c | 2 +- hw/net/ne2000-isa.c | 2 +- hw/net/ne2000-pci.c | 2 +- hw/net/npcm7xx_emc.c | 2 +- hw/net/npcm_gmac.c | 2 +- hw/net/opencores_eth.c | 2 +- hw/net/pcnet-pci.c | 2 +- hw/net/rocker/rocker.c | 2 +- hw/net/rtl8139.c | 2 +- hw/net/smc91c111.c | 2 +- hw/net/spapr_llan.c | 2 +- hw/net/stellaris_enet.c | 2 +- hw/net/sungem.c | 2 +- hw/net/sunhme.c | 2 +- hw/net/tulip.c | 2 +- hw/net/virtio-net.c | 2 +- hw/net/vmxnet3.c | 2 +- hw/net/xen_nic.c | 2 +- hw/net/xgmac.c | 2 +- hw/net/xilinx_axienet.c | 2 +- hw/net/xilinx_ethlite.c | 2 +- hw/nubus/nubus-bridge.c | 2 +- hw/nubus/nubus-device.c | 2 +- hw/nvme/ctrl.c | 2 +- hw/nvme/ns.c | 2 +- hw/nvme/subsys.c | 2 +- hw/nvram/ds1225y.c | 2 +- hw/nvram/eeprom_at24c.c | 2 +- hw/nvram/fw_cfg.c | 6 +++--- hw/nvram/mac_nvram.c | 2 +- hw/nvram/nrf51_nvm.c | 2 +- hw/nvram/spapr_nvram.c | 2 +- hw/nvram/xlnx-bbram.c | 2 +- hw/nvram/xlnx-efuse.c | 2 +- hw/nvram/xlnx-versal-efuse-cache.c | 2 +- hw/nvram/xlnx-versal-efuse-ctrl.c | 2 +- hw/nvram/xlnx-zynqmp-efuse.c | 2 +- hw/pci-bridge/cxl_downstream.c | 2 +- hw/pci-bridge/cxl_root_port.c | 2 +- hw/pci-bridge/cxl_upstream.c | 2 +- hw/pci-bridge/gen_pcie_root_port.c | 2 +- hw/pci-bridge/pci_bridge_dev.c | 2 +- hw/pci-bridge/pci_expander_bridge.c | 4 ++-- hw/pci-bridge/pcie_pci_bridge.c | 2 +- hw/pci-bridge/pcie_root_port.c | 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- hw/pci-host/dino.c | 2 +- hw/pci-host/gpex.c | 2 +- hw/pci-host/grackle.c | 2 +- hw/pci-host/gt64120.c | 2 +- hw/pci-host/i440fx.c | 2 +- hw/pci-host/mv64361.c | 2 +- hw/pci-host/pnv_phb.c | 4 ++-- hw/pci-host/pnv_phb3.c | 2 +- hw/pci-host/pnv_phb4.c | 2 +- hw/pci-host/pnv_phb4_pec.c | 2 +- hw/pci-host/ppce500.c | 2 +- hw/pci-host/q35.c | 4 ++-- hw/pci-host/raven.c | 2 +- hw/pci-host/sabre.c | 2 +- hw/pci-host/uninorth.c | 2 +- hw/pci-host/versatile.c | 2 +- hw/pci-host/xilinx-pcie.c | 2 +- hw/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 2 +- hw/pci/pci_host.c | 2 +- hw/pci/pcie_port.c | 4 ++-- hw/ppc/pnv.c | 2 +- hw/ppc/pnv_adu.c | 2 +- hw/ppc/pnv_chiptod.c | 2 +- hw/ppc/pnv_core.c | 4 ++-- hw/ppc/pnv_homer.c | 2 +- hw/ppc/pnv_i2c.c | 2 +- hw/ppc/pnv_lpc.c | 2 +- hw/ppc/pnv_pnor.c | 2 +- hw/ppc/pnv_psi.c | 2 +- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc440_uc.c | 2 +- hw/ppc/ppc4xx_devs.c | 4 ++-- hw/ppc/ppc4xx_sdram.c | 4 ++-- hw/ppc/prep_systemio.c | 2 +- hw/ppc/rs6000_mc.c | 2 +- hw/ppc/spapr_cpu_core.c | 2 +- hw/ppc/spapr_nvdimm.c | 2 +- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_rng.c | 2 +- hw/ppc/spapr_tpm_proxy.c | 2 +- hw/remote/proxy.c | 2 +- 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 +- hw/rtc/allwinner-rtc.c | 2 +- hw/rtc/goldfish_rtc.c | 2 +- hw/rtc/m48t59-isa.c | 2 +- hw/rtc/m48t59.c | 2 +- hw/rtc/mc146818rtc.c | 2 +- hw/rtc/pl031.c | 2 +- hw/rx/rx62n.c | 2 +- hw/s390x/ccw-device.c | 2 +- hw/s390x/css-bridge.c | 2 +- hw/s390x/ipl.c | 2 +- hw/s390x/s390-pci-bus.c | 2 +- hw/s390x/s390-skeys.c | 2 +- hw/s390x/s390-stattrib.c | 2 +- hw/s390x/vhost-scsi-ccw.c | 2 +- hw/s390x/vhost-user-fs-ccw.c | 2 +- hw/s390x/vhost-vsock-ccw.c | 2 +- hw/s390x/virtio-ccw-9p.c | 2 +- hw/s390x/virtio-ccw-balloon.c | 2 +- hw/s390x/virtio-ccw-blk.c | 2 +- hw/s390x/virtio-ccw-crypto.c | 2 +- hw/s390x/virtio-ccw-gpu.c | 2 +- hw/s390x/virtio-ccw-input.c | 2 +- hw/s390x/virtio-ccw-net.c | 2 +- hw/s390x/virtio-ccw-rng.c | 2 +- hw/s390x/virtio-ccw-scsi.c | 2 +- hw/s390x/virtio-ccw-serial.c | 2 +- hw/scsi/megasas.c | 6 +++--- hw/scsi/mptsas.c | 2 +- hw/scsi/scsi-bus.c | 2 +- hw/scsi/scsi-disk.c | 6 +++--- hw/scsi/scsi-generic.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/scsi/virtio-scsi.c | 2 +- hw/scsi/vmw_pvscsi.c | 2 +- hw/sd/allwinner-sdhost.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- hw/sd/sd.c | 6 +++--- hw/sd/sdhci-pci.c | 2 +- hw/sd/sdhci.c | 2 +- hw/sparc/sun4m_iommu.c | 2 +- hw/sparc64/sun4u.c | 4 ++-- hw/ssi/aspeed_smc.c | 4 ++-- hw/ssi/ibex_spi_host.c | 2 +- hw/ssi/npcm7xx_fiu.c | 2 +- hw/ssi/pnv_spi.c | 2 +- hw/ssi/sifive_spi.c | 2 +- hw/ssi/ssi.c | 2 +- hw/ssi/xilinx_spi.c | 2 +- hw/ssi/xilinx_spips.c | 4 ++-- hw/ssi/xlnx-versal-ospi.c | 2 +- hw/timer/a9gtimer.c | 2 +- hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 2 +- hw/timer/arm_timer.c | 2 +- hw/timer/aspeed_timer.c | 2 +- hw/timer/avr_timer16.c | 2 +- hw/timer/grlib_gptimer.c | 2 +- hw/timer/hpet.c | 2 +- hw/timer/i8254_common.c | 2 +- hw/timer/ibex_timer.c | 2 +- hw/timer/mss-timer.c | 2 +- hw/timer/nrf51_timer.c | 2 +- hw/timer/pxa2xx_timer.c | 2 +- hw/timer/renesas_cmt.c | 2 +- hw/timer/renesas_tmr.c | 2 +- hw/timer/sifive_pwm.c | 2 +- hw/timer/slavio_timer.c | 2 +- hw/timer/sse-timer.c | 2 +- hw/timer/stm32f2xx_timer.c | 2 +- hw/timer/xilinx_timer.c | 2 +- hw/tpm/tpm_crb.c | 2 +- hw/tpm/tpm_spapr.c | 2 +- hw/tpm/tpm_tis_i2c.c | 2 +- hw/tpm/tpm_tis_isa.c | 2 +- hw/tpm/tpm_tis_sysbus.c | 2 +- hw/ufs/lu.c | 2 +- hw/ufs/ufs.c | 2 +- hw/usb/bus.c | 2 +- hw/usb/canokey.c | 2 +- hw/usb/ccid-card-emulated.c | 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-audio.c | 2 +- hw/usb/dev-hid.c | 6 +++--- hw/usb/dev-hub.c | 2 +- hw/usb/dev-mtp.c | 2 +- hw/usb/dev-network.c | 2 +- hw/usb/dev-serial.c | 4 ++-- hw/usb/dev-smartcard-reader.c | 4 ++-- hw/usb/dev-storage-classic.c | 2 +- hw/usb/dev-uas.c | 2 +- hw/usb/hcd-dwc2.c | 2 +- hw/usb/hcd-dwc3.c | 2 +- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 2 +- hw/usb/hcd-ohci-pci.c | 2 +- hw/usb/hcd-ohci-sysbus.c | 2 +- hw/usb/hcd-uhci.c | 4 ++-- hw/usb/hcd-xhci-nec.c | 2 +- hw/usb/hcd-xhci-sysbus.c | 2 +- hw/usb/hcd-xhci.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/usb/redirect.c | 2 +- hw/usb/u2f-emulated.c | 2 +- hw/usb/u2f-passthru.c | 2 +- hw/vfio/ap.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 4 ++-- hw/vfio/platform.c | 2 +- hw/virtio/vdpa-dev.c | 2 +- hw/virtio/vhost-scsi-pci.c | 2 +- hw/virtio/vhost-user-blk-pci.c | 2 +- hw/virtio/vhost-user-device.c | 2 +- hw/virtio/vhost-user-fs-pci.c | 2 +- hw/virtio/vhost-user-fs.c | 2 +- hw/virtio/vhost-user-gpio.c | 2 +- hw/virtio/vhost-user-i2c.c | 2 +- hw/virtio/vhost-user-input.c | 2 +- hw/virtio/vhost-user-rng-pci.c | 2 +- hw/virtio/vhost-user-rng.c | 2 +- hw/virtio/vhost-user-scmi.c | 2 +- hw/virtio/vhost-user-scsi-pci.c | 2 +- hw/virtio/vhost-user-snd.c | 2 +- hw/virtio/vhost-user-vsock-pci.c | 2 +- hw/virtio/vhost-user-vsock.c | 2 +- hw/virtio/vhost-vsock-common.c | 2 +- hw/virtio/vhost-vsock-pci.c | 2 +- hw/virtio/vhost-vsock.c | 2 +- hw/virtio/virtio-9p-pci.c | 2 +- hw/virtio/virtio-balloon.c | 2 +- hw/virtio/virtio-blk-pci.c | 2 +- hw/virtio/virtio-crypto-pci.c | 2 +- hw/virtio/virtio-crypto.c | 2 +- hw/virtio/virtio-input-pci.c | 2 +- hw/virtio/virtio-iommu-pci.c | 2 +- hw/virtio/virtio-iommu.c | 2 +- hw/virtio/virtio-mem.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-net-pci.c | 2 +- hw/virtio/virtio-nsm.c | 2 +- hw/virtio/virtio-pci.c | 4 ++-- hw/virtio/virtio-pmem.c | 2 +- hw/virtio/virtio-rng-pci.c | 2 +- hw/virtio/virtio-rng.c | 2 +- hw/virtio/virtio-scsi-pci.c | 2 +- hw/virtio/virtio-serial-pci.c | 2 +- hw/virtio/virtio.c | 2 +- hw/watchdog/sbsa_gwdt.c | 2 +- hw/watchdog/wdt_aspeed.c | 2 +- hw/watchdog/wdt_imx2.c | 2 +- hw/xen/xen-bus.c | 2 +- hw/xen/xen_pt.c | 2 +- target/arm/cpu.c | 26 +++++++++++++------------- target/arm/cpu64.c | 6 +++--- target/arm/tcg/cpu64.c | 2 +- target/avr/cpu.c | 2 +- target/hexagon/cpu.c | 2 +- target/i386/cpu.c | 4 ++-- target/microblaze/cpu.c | 2 +- target/mips/cpu.c | 2 +- target/riscv/cpu.c | 2 +- target/s390x/cpu.c | 2 +- target/sparc/cpu.c | 4 ++-- tests/unit/test-qdev-global-props.c | 2 +- docs/devel/migration/compatibility.rst | 4 ++-- docs/devel/virtio-backends.rst | 2 +- 558 files changed, 633 insertions(+), 633 deletions(-)
[PULL 07/67] target/riscv: Constify all Property
--- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/cpu.c +1 -1
@@ -2661,7 +2661,7 @@ RISCVCPUImpliedExtsRule *riscv_multi_ext_implied_rules[] = {NULL }; -static Property riscv_cpu_properties[] = { +static const Property riscv_cpu_properties[] = {DEFINE_PROP_BOOL ("debug" ,RISCVCPU , cfg.debug, true), {.name ="pmu-mask" , .info = &prop_pmu_mask},
Signature · 1 line
2.43.0
[PULL 08/67] target/s390x: Constify all Property
In reply to Richard Henderson--- target/s390x/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu.c +1 -1
@@ -309,7 +309,7 @@ static const gchar *s390_gdb_arch_name(CPUState *cs)return "s390:64-bit" ; } -static Property s390x_cpu_properties[] = { +static const Property s390x_cpu_properties[] = { #if !defined(CONFIG_USER_ONLY)DEFINE_PROP_UINT32 ("core-id" ,S390CPU , env.core_id,0 ), DEFINE_PROP_INT32("socket-id", S390CPU, env.socket_id, -1),
Signature · 1 line
2.43.0
[PULL 01/67] target/arm: Constify all Property
In reply to Richard Henderson--- target/arm/cpu.c | 26 +++++++++++++------------- target/arm/cpu64.c | 6 +++--- target/arm/tcg/cpu64.c | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-)
target/arm/cpu.c +13 -13
@@ -1558,39 +1558,39 @@ static void arm_cpu_initfn(Object *obj)* 0 means "unset, use the default value". That default might vary depending * on the CPU type, and is set in the realize fn. */ -static Property arm_cpu_gt_cntfrq_property = +static const Property arm_cpu_gt_cntfrq_property =DEFINE_PROP_UINT64 ("cntfrq" ,ARMCPU , gt_cntfrq_hz,0 ); -static Property arm_cpu_reset_cbar_property = +static const Property arm_cpu_reset_cbar_property =DEFINE_PROP_UINT64 ("reset-cbar" ,ARMCPU , reset_cbar,0 ); -static Property arm_cpu_reset_hivecs_property = +static const Property arm_cpu_reset_hivecs_property =DEFINE_PROP_BOOL ("reset-hivecs" ,ARMCPU , reset_hivecs, false);#ifndef CONFIG_USER_ONLY -static Property arm_cpu_has_el2_property = +static const Property arm_cpu_has_el2_property =DEFINE_PROP_BOOL ("has_el2" ,ARMCPU , has_el2, true); -static Property arm_cpu_has_el3_property = +static const Property arm_cpu_has_el3_property =DEFINE_PROP_BOOL ("has_el3" ,ARMCPU , has_el3, true);#endif -static Property arm_cpu_cfgend_property = +static const Property arm_cpu_cfgend_property =DEFINE_PROP_BOOL ("cfgend" ,ARMCPU , cfgend, false); -static Property arm_cpu_has_vfp_property = +static const Property arm_cpu_has_vfp_property =DEFINE_PROP_BOOL ("vfp" ,ARMCPU , has_vfp, true); -static Property arm_cpu_has_vfp_d32_property = +static const Property arm_cpu_has_vfp_d32_property =DEFINE_PROP_BOOL ("vfp-d32" ,ARMCPU , has_vfp_d32, true); -static Property arm_cpu_has_neon_property = +static const Property arm_cpu_has_neon_property =DEFINE_PROP_BOOL ("neon" ,ARMCPU , has_neon, true); -static Property arm_cpu_has_dsp_property = +static const Property arm_cpu_has_dsp_property =DEFINE_PROP_BOOL ("dsp" ,ARMCPU , has_dsp, true); -static Property arm_cpu_has_mpu_property = +static const Property arm_cpu_has_mpu_property =DEFINE_PROP_BOOL ("has-mpu" ,ARMCPU , has_mpu, true);/* This is like DEFINE_PROP_UINT32 but it doesn't set the default value,
@@ -1598,7 +1598,7 @@ static Property arm_cpu_has_mpu_property =* the right value for that particular CPU type, and we don't want * to override that with an incorrect constant value. */ -static Property arm_cpu_pmsav7_dregion_property = +static const Property arm_cpu_pmsav7_dregion_property =DEFINE_PROP_UNSIGNED_NODEFAULT ("pmsav7-dregion" ,ARMCPU , pmsav7_dregion, qdev_prop_uint32, uint32_t);
@@ -2644,7 +2644,7 @@ static ObjectClass *arm_cpu_class_by_name(const char *cpu_model)return oc; } -static Property arm_cpu_properties[] = { +static const Property arm_cpu_properties[] = {DEFINE_PROP_UINT64 ("midr" ,ARMCPU , midr,0 ),DEFINE_PROP_UINT64 ("mp-affinity" ,ARMCPU , mp_affinity,ARM64_AFFINITY_INVALID ),
target/arm/cpu64.c +3 -3
@@ -547,11 +547,11 @@ void arm_cpu_pauth_finalize(ARMCPU *cpu, Error **errp) cpu->isar.id_aa64isar2 = isar2; } -static Property arm_cpu_pauth_property = +static const Property arm_cpu_pauth_property =DEFINE_PROP_BOOL ("pauth" ,ARMCPU , prop_pauth, true); -static Property arm_cpu_pauth_impdef_property = +static const Property arm_cpu_pauth_impdef_property =DEFINE_PROP_BOOL ("pauth-impdef" ,ARMCPU , prop_pauth_impdef, false); -static Property arm_cpu_pauth_qarma3_property = +static const Property arm_cpu_pauth_qarma3_property =DEFINE_PROP_BOOL ("pauth-qarma3" ,ARMCPU , prop_pauth_qarma3, false);void aarch64_add_pauth_properties (Object *obj)
target/arm/tcg/cpu64.c +1 -1
@@ -198,7 +198,7 @@ static void cpu_max_get_l0gptsz(Object *obj, Visitor *v, const char *name,visit_type_uint32 (v, name, &value, errp); } -static Property arm_cpu_lpa2_property = +static const Property arm_cpu_lpa2_property =DEFINE_PROP_BOOL ("lpa2" ,ARMCPU , prop_lpa2, true);static void aarch64_a55_initfn (Object *obj)
Signature · 1 line
2.43.0
[PULL 15/67] hw/audio: Constify all Property
In reply to Richard Henderson--- hw/audio/ac97.c | 2 +- hw/audio/adlib.c | 2 +- hw/audio/asc.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/es1370.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/hda-codec.c | 2 +- hw/audio/intel-hda.c | 4 ++-- hw/audio/pcspk.c | 2 +- hw/audio/pl041.c | 2 +- hw/audio/sb16.c | 2 +- hw/audio/via-ac97.c | 2 +- hw/audio/virtio-snd-pci.c | 2 +- hw/audio/virtio-snd.c | 2 +- hw/audio/wm8750.c | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-)
hw/audio/ac97.c +1 -1
@@ -1324,7 +1324,7 @@ static void ac97_exit(PCIDevice *dev)AUD_remove_card (&s->card); } -static Property ac97_properties[] = { +static const Property ac97_properties[] = {DEFINE_AUDIO_PROPERTIES (AC97LinkState, card),DEFINE_PROP_END_OF_LIST (), };
hw/audio/adlib.c +1 -1
@@ -297,7 +297,7 @@ static void adlib_realizefn (DeviceState *dev, Error **errp)portio_list_add (&s->port_list,isa_address_space_io (&s->parent_obj),0 ); } -static Property adlib_properties[] = { +static const Property adlib_properties[] = {DEFINE_AUDIO_PROPERTIES (AdlibState, card),DEFINE_PROP_UINT32 ("iobase" , AdlibState, port,0x220 ),DEFINE_PROP_UINT32 ("freq" , AdlibState, freq,44100 ),
hw/audio/asc.c +1 -1
@@ -695,7 +695,7 @@ static void asc_init(Object *obj)sysbus_init_mmio (sbd, &s->asc); } -static Property asc_properties[] = { +static const Property asc_properties[] = {DEFINE_AUDIO_PROPERTIES (ASCState, card),DEFINE_PROP_UINT8 ("asctype" , ASCState, type,ASC_TYPE_ASC ),DEFINE_PROP_END_OF_LIST (),
hw/audio/cs4231a.c +1 -1
@@ -689,7 +689,7 @@ static void cs4231a_realizefn (DeviceState *dev, Error **errp)isa_register_ioport (d, &s->ioports, s->port); } -static Property cs4231a_properties[] = { +static const Property cs4231a_properties[] = {DEFINE_AUDIO_PROPERTIES (CSState, card),DEFINE_PROP_UINT32 ("iobase" , CSState, port,0x534 ),DEFINE_PROP_UINT32 ("irq" , CSState, irq,9 ),
hw/audio/es1370.c +1 -1
@@ -868,7 +868,7 @@ static void es1370_exit(PCIDevice *dev)AUD_remove_card (&s->card); } -static Property es1370_properties[] = { +static const Property es1370_properties[] = {DEFINE_AUDIO_PROPERTIES (ES1370State, card),DEFINE_PROP_END_OF_LIST (), };
hw/audio/gus.c +1 -1
@@ -290,7 +290,7 @@ static void gus_realizefn (DeviceState *dev, Error **errp)AUD_set_active_out (s->voice,1 ); } -static Property gus_properties[] = { +static const Property gus_properties[] = {DEFINE_AUDIO_PROPERTIES (GUSState, card),DEFINE_PROP_UINT32 ("freq" , GUSState, freq,44100 ),DEFINE_PROP_UINT32 ("iobase" , GUSState, port,0x240 ),
hw/audio/hda-codec.c +1 -1
@@ -857,7 +857,7 @@ static const VMStateDescription vmstate_hda_audio = { } }; -static Property hda_audio_properties[] = { +static const Property hda_audio_properties[] = {DEFINE_AUDIO_PROPERTIES (HDAAudioState, card),DEFINE_PROP_UINT32 ("debug" , HDAAudioState, debug,0 ),DEFINE_PROP_BOOL ("mixer" , HDAAudioState, mixer, true),
hw/audio/intel-hda.c +2 -2
@@ -37,7 +37,7 @@/* --------------------------------------------------------------------- */ /* hda bus */ -static Property hda_props[] = { +static const Property hda_props[] = {DEFINE_PROP_UINT32 ("cad" , HDACodecDevice, cad,-1 ),DEFINE_PROP_END_OF_LIST () };
@@ -1215,7 +1215,7 @@ static const VMStateDescription vmstate_intel_hda = { } }; -static Property intel_hda_properties[] = { +static const Property intel_hda_properties[] = {DEFINE_PROP_UINT32 ("debug" , IntelHDAState, debug,0 ),DEFINE_PROP_ON_OFF_AUTO ("msi" , IntelHDAState, msi,ON_OFF_AUTO_AUTO ),DEFINE_PROP_BOOL ("old_msi_addr" , IntelHDAState, old_msi_addr, false),
hw/audio/pcspk.c +1 -1
@@ -215,7 +215,7 @@ static const VMStateDescription vmstate_spk = { } }; -static Property pcspk_properties[] = { +static const Property pcspk_properties[] = {DEFINE_AUDIO_PROPERTIES (PCSpkState, card),DEFINE_PROP_UINT32 ("iobase" , PCSpkState, iobase,0x61 ),DEFINE_PROP_BOOL ("migrate" , PCSpkState, migrate, true),
hw/audio/pl041.c +1 -1
@@ -625,7 +625,7 @@ static const VMStateDescription vmstate_pl041 = { } }; -static Property pl041_device_properties[] = { +static const Property pl041_device_properties[] = {DEFINE_AUDIO_PROPERTIES (PL041State, codec.card),/* Non-compact FIFO depth property */ DEFINE_PROP_UINT32("nc_fifo_depth", PL041State, fifo_depth,
hw/audio/sb16.c +1 -1
@@ -1440,7 +1440,7 @@ static void sb16_realizefn (DeviceState *dev, Error **errp) s->can_write =1 ; } -static Property sb16_properties[] = { +static const Property sb16_properties[] = {DEFINE_AUDIO_PROPERTIES (SB16State, card),DEFINE_PROP_UINT32 ("version" , SB16State, ver,0x0405 ),/* 4.5 */ DEFINE_PROP_UINT32 ("iobase" , SB16State, port,0x220 ),
hw/audio/via-ac97.c +1 -1
@@ -459,7 +459,7 @@ static void via_ac97_exit(PCIDevice *dev)AUD_remove_card (&s->card); } -static Property via_ac97_properties[] = { +static const Property via_ac97_properties[] = {DEFINE_AUDIO_PROPERTIES (ViaAC97State, card),DEFINE_PROP_END_OF_LIST (), };
hw/audio/virtio-snd-pci.c +1 -1
@@ -27,7 +27,7 @@ struct VirtIOSoundPCI {VirtIOSound vdev; }; -static Property virtio_snd_pci_properties[] = { +static const Property virtio_snd_pci_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true),DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,2 ),
hw/audio/virtio-snd.c +1 -1
@@ -77,7 +77,7 @@ static const VMStateDescription vmstate_virtio_snd = { }, }; -static Property virtio_snd_properties[] = { +static const Property virtio_snd_properties[] = {DEFINE_AUDIO_PROPERTIES (VirtIOSound, card),DEFINE_PROP_UINT32 ("jacks" , VirtIOSound, snd_conf.jacks,VIRTIO_SOUND_JACK_DEFAULT ),
hw/audio/wm8750.c +1 -1
@@ -706,7 +706,7 @@ void wm8750_set_bclk_in(void *opaque, int new_hz)wm8750_clk_update (s,1 ); } -static Property wm8750_properties[] = { +static const Property wm8750_properties[] = {DEFINE_AUDIO_PROPERTIES (WM8750State, card),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 06/67] target/mips: Constify all Property
In reply to Richard Henderson--- target/mips/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/mips/cpu.c +1 -1
@@ -539,7 +539,7 @@ static const struct SysemuCPUOps mips_sysemu_ops = { };#endif -static Property mips_cpu_properties[] = { +static const Property mips_cpu_properties[] = {DEFINE_PROP_BOOL ("big-endian" ,MIPSCPU , is_big_endian,TARGET_BIG_ENDIAN ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 04/67] target/i386: Constify all Property
In reply to Richard Henderson--- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/i386/cpu.c +2 -2
@@ -5384,7 +5384,7 @@ static X86CPUVersion x86_cpu_model_resolve_version(const X86CPUModel *model)return v; } -static Property max_x86_cpu_properties[] = { +static const Property max_x86_cpu_properties[] = {DEFINE_PROP_BOOL ("migratable" ,X86CPU , migratable, true),DEFINE_PROP_BOOL ("host-cache-info" ,X86CPU , cache_info_passthrough, false),DEFINE_PROP_END_OF_LIST ()
@@ -8407,7 +8407,7 @@ void x86_update_hflags(CPUX86State *env) env->hflags = hflags; } -static Property x86_cpu_properties[] = { +static const Property x86_cpu_properties[] = { #ifdef CONFIG_USER_ONLY/* apic_id = 0 by default for *-user, see commit 9886e834 */ DEFINE_PROP_UINT32("apic-id", X86CPU, apic_id, 0),
Signature · 1 line
2.43.0
[PULL 05/67] target/microblaze: Constify all Property
In reply to Richard Henderson--- target/microblaze/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/microblaze/cpu.c +1 -1
@@ -339,7 +339,7 @@ static void mb_cpu_initfn(Object *obj)object_property_add_alias (obj,"little-endian" , obj,"endianness" ); } -static Property mb_properties[] = { +static const Property mb_properties[] = {/* * Following properties are used by Xilinx DTS conversion tool * do not rename them.
Signature · 1 line
2.43.0
[PULL 19/67] hw/char: Constify all Property
In reply to Richard Henderson--- hw/char/avr_usart.c | 2 +- hw/char/bcm2835_aux.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/cmsdk-apb-uart.c | 2 +- hw/char/debugcon.c | 2 +- hw/char/digic-uart.c | 2 +- hw/char/escc.c | 2 +- hw/char/exynos4210_uart.c | 2 +- hw/char/goldfish_tty.c | 2 +- hw/char/grlib_apbuart.c | 2 +- hw/char/ibex_uart.c | 2 +- hw/char/imx_serial.c | 2 +- hw/char/ipoctal232.c | 2 +- hw/char/mcf_uart.c | 2 +- hw/char/nrf51_uart.c | 2 +- hw/char/parallel.c | 2 +- hw/char/pl011.c | 2 +- hw/char/renesas_sci.c | 2 +- hw/char/sclpconsole-lm.c | 2 +- hw/char/sclpconsole.c | 2 +- hw/char/serial-isa.c | 2 +- hw/char/serial-mm.c | 2 +- hw/char/serial-pci-multi.c | 4 ++-- hw/char/serial-pci.c | 2 +- hw/char/serial.c | 2 +- hw/char/sh_serial.c | 2 +- hw/char/shakti_uart.c | 2 +- hw/char/sifive_uart.c | 2 +- hw/char/spapr_vty.c | 2 +- hw/char/stm32f2xx_usart.c | 2 +- hw/char/stm32l4x5_usart.c | 2 +- hw/char/terminal3270.c | 2 +- hw/char/virtio-console.c | 2 +- hw/char/virtio-serial-bus.c | 4 ++-- hw/char/xen_console.c | 2 +- hw/char/xilinx_uartlite.c | 2 +- 36 files changed, 38 insertions(+), 38 deletions(-)
hw/char/avr_usart.c +1 -1
@@ -259,7 +259,7 @@ static const MemoryRegionOps avr_usart_ops = { .impl = {.min_access_size = 1, .max_access_size = 1} }; -static Property avr_usart_properties[] = { +static const Property avr_usart_properties[] = {DEFINE_PROP_CHR ("chardev" , AVRUsartState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/bcm2835_aux.c +1 -1
@@ -290,7 +290,7 @@ static void bcm2835_aux_realize(DeviceState *dev, Error **errp) bcm2835_aux_receive, NULL, NULL, s, NULL, true); } -static Property bcm2835_aux_props[] = { +static const Property bcm2835_aux_props[] = {DEFINE_PROP_CHR ("chardev" , BCM2835AuxState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/cadence_uart.c +1 -1
@@ -617,7 +617,7 @@ static const VMStateDescription vmstate_cadence_uart = { }, }; -static Property cadence_uart_properties[] = { +static const Property cadence_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , CadenceUARTState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/cmsdk-apb-uart.c +1 -1
@@ -377,7 +377,7 @@ static const VMStateDescription cmsdk_apb_uart_vmstate = { } }; -static Property cmsdk_apb_uart_properties[] = { +static const Property cmsdk_apb_uart_properties[] = {DEFINE_PROP_CHR ("chardev" ,CMSDKAPBUART , chr),DEFINE_PROP_UINT32 ("pclk-frq" ,CMSDKAPBUART , pclk_frq,0 ),DEFINE_PROP_END_OF_LIST (),
hw/char/debugcon.c +1 -1
@@ -114,7 +114,7 @@ static void debugcon_isa_realizefn(DeviceState *dev, Error **errp) isa->iobase, &s->io); } -static Property debugcon_isa_properties[] = { +static const Property debugcon_isa_properties[] = {DEFINE_PROP_UINT32 ("iobase" , ISADebugconState, iobase,0xe9 ),DEFINE_PROP_CHR ("chardev" , ISADebugconState, state.chr),DEFINE_PROP_UINT32 ("readback" , ISADebugconState, state.readback,0xe9 ),
hw/char/digic-uart.c +1 -1
@@ -172,7 +172,7 @@ static const VMStateDescription vmstate_digic_uart = { } }; -static Property digic_uart_properties[] = { +static const Property digic_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , DigicUartState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/escc.c +1 -1
@@ -1089,7 +1089,7 @@ static void escc_realize(DeviceState *dev, Error **errp) } } -static Property escc_properties[] = { +static const Property escc_properties[] = {DEFINE_PROP_UINT32 ("frequency" , ESCCState, frequency,0 ),DEFINE_PROP_UINT32 ("it_shift" , ESCCState, it_shift,0 ),DEFINE_PROP_BOOL ("bit_swap" , ESCCState, bit_swap, false),
hw/char/exynos4210_uart.c +1 -1
@@ -704,7 +704,7 @@ static void exynos4210_uart_realize(DeviceState *dev, Error **errp) NULL, s, NULL, true); } -static Property exynos4210_uart_properties[] = { +static const Property exynos4210_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , Exynos4210UartState, chr),DEFINE_PROP_UINT32 ("channel" , Exynos4210UartState, channel,0 ),DEFINE_PROP_UINT32 ("rx-size" , Exynos4210UartState, rx.size,16 ),
hw/char/goldfish_tty.c +1 -1
@@ -241,7 +241,7 @@ static const VMStateDescription vmstate_goldfish_tty = { } }; -static Property goldfish_tty_properties[] = { +static const Property goldfish_tty_properties[] = {DEFINE_PROP_CHR ("chardev" , GoldfishTTYState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/grlib_apbuart.c +1 -1
@@ -277,7 +277,7 @@ static void grlib_apbuart_reset(DeviceState *d) uart->current =0 ; } -static Property grlib_apbuart_properties[] = { +static const Property grlib_apbuart_properties[] = {DEFINE_PROP_CHR ("chrdev" ,UART , chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/ibex_uart.c +1 -1
@@ -508,7 +508,7 @@ static const VMStateDescription vmstate_ibex_uart = { } }; -static Property ibex_uart_properties[] = { +static const Property ibex_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , IbexUartState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/imx_serial.c +1 -1
@@ -438,7 +438,7 @@ static void imx_serial_init(Object *obj)sysbus_init_irq (sbd, &s->irq); } -static Property imx_serial_properties[] = { +static const Property imx_serial_properties[] = {DEFINE_PROP_CHR ("chardev" , IMXSerialState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/ipoctal232.c +1 -1
@@ -558,7 +558,7 @@ static void ipoctal_realize(DeviceState *dev, Error **errp) } } -static Property ipoctal_properties[] = { +static const Property ipoctal_properties[] = {DEFINE_PROP_CHR ("chardev0" , IPOctalState, ch[0 ].dev),DEFINE_PROP_CHR ("chardev1" , IPOctalState, ch[1 ].dev),DEFINE_PROP_CHR ("chardev2" , IPOctalState, ch[2 ].dev),
hw/char/mcf_uart.c +1 -1
@@ -312,7 +312,7 @@ static void mcf_uart_realize(DeviceState *dev, Error **errp) mcf_uart_event, NULL, s, NULL, true); } -static Property mcf_uart_properties[] = { +static const Property mcf_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , mcf_uart_state, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/nrf51_uart.c +1 -1
@@ -304,7 +304,7 @@ static const VMStateDescription nrf51_uart_vmstate = { } }; -static Property nrf51_uart_properties[] = { +static const Property nrf51_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , NRF51UARTState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/parallel.c +1 -1
@@ -603,7 +603,7 @@ bool parallel_mm_init(MemoryRegion *address_space,return true; } -static Property parallel_isa_properties[] = { +static const Property parallel_isa_properties[] = {DEFINE_PROP_UINT32 ("index" , ISAParallelState, index,-1 ),DEFINE_PROP_UINT32 ("iobase" , ISAParallelState, iobase,-1 ),DEFINE_PROP_UINT32 ("irq" , ISAParallelState, isairq,7 ),
hw/char/pl011.c +1 -1
@@ -603,7 +603,7 @@ static const VMStateDescription vmstate_pl011 = { } }; -static Property pl011_properties[] = { +static const Property pl011_properties[] = {DEFINE_PROP_CHR ("chardev" , PL011State, chr),DEFINE_PROP_BOOL ("migrate-clk" , PL011State, migrate_clk, true),DEFINE_PROP_END_OF_LIST (),
hw/char/renesas_sci.c +1 -1
@@ -319,7 +319,7 @@ static const VMStateDescription vmstate_rsci = { } }; -static Property rsci_properties[] = { +static const Property rsci_properties[] = {DEFINE_PROP_UINT64 ("input-freq" , RSCIState, input_freq,0 ),DEFINE_PROP_CHR ("chardev" , RSCIState, chr),DEFINE_PROP_END_OF_LIST (),
hw/char/sclpconsole-lm.c +1 -1
@@ -333,7 +333,7 @@ static void console_reset(DeviceState *dev) scon->write_errors =0 ; } -static Property console_properties[] = { +static const Property console_properties[] = {DEFINE_PROP_CHR ("chardev" , SCLPConsoleLM, chr),DEFINE_PROP_UINT32 ("write_errors" , SCLPConsoleLM, write_errors,0 ),DEFINE_PROP_BOOL ("echo" , SCLPConsoleLM, echo, true),
hw/char/sclpconsole.c +1 -1
@@ -251,7 +251,7 @@ static void console_reset(DeviceState *dev) scon->notify = false; } -static Property console_properties[] = { +static const Property console_properties[] = {DEFINE_PROP_CHR ("chardev" , SCLPConsole, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/serial-isa.c +1 -1
@@ -113,7 +113,7 @@ static const VMStateDescription vmstate_isa_serial = { } }; -static Property serial_isa_properties[] = { +static const Property serial_isa_properties[] = {DEFINE_PROP_UINT32 ("index" , ISASerialState, index,-1 ),DEFINE_PROP_UINT32 ("iobase" , ISASerialState, iobase,-1 ),DEFINE_PROP_UINT32 ("irq" , ISASerialState, isairq,-1 ),
hw/char/serial-mm.c +1 -1
@@ -125,7 +125,7 @@ static void serial_mm_instance_init(Object *o)qdev_alias_all_properties (DEVICE (&smm->serial), o); } -static Property serial_mm_properties[] = { +static const Property serial_mm_properties[] = {/* * Set the spacing between adjacent memory-mapped UART registers. * Each register will be at (1 << regshift) bytes after the previous one.
hw/char/serial-pci-multi.c +2 -2
@@ -132,14 +132,14 @@ static const VMStateDescription vmstate_pci_multi_serial = { } }; -static Property multi_2x_serial_pci_properties[] = { +static const Property multi_2x_serial_pci_properties[] = {DEFINE_PROP_CHR ("chardev1" , PCIMultiSerialState, state[0 ].chr),DEFINE_PROP_CHR ("chardev2" , PCIMultiSerialState, state[1 ].chr),DEFINE_PROP_UINT8 ("prog_if" , PCIMultiSerialState, prog_if,0x02 ),DEFINE_PROP_END_OF_LIST (), }; -static Property multi_4x_serial_pci_properties[] = { +static const Property multi_4x_serial_pci_properties[] = {DEFINE_PROP_CHR ("chardev1" , PCIMultiSerialState, state[0 ].chr),DEFINE_PROP_CHR ("chardev2" , PCIMultiSerialState, state[1 ].chr),DEFINE_PROP_CHR ("chardev3" , PCIMultiSerialState, state[2 ].chr),
hw/char/serial-pci.c +1 -1
@@ -81,7 +81,7 @@ static const VMStateDescription vmstate_pci_serial = { } }; -static Property serial_pci_properties[] = { +static const Property serial_pci_properties[] = {DEFINE_PROP_UINT8 ("prog_if" , PCISerialState, prog_if,0x02 ),DEFINE_PROP_END_OF_LIST (), };
hw/char/serial.c +1 -1
@@ -964,7 +964,7 @@ const MemoryRegionOps serial_io_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property serial_properties[] = { +static const Property serial_properties[] = {DEFINE_PROP_CHR ("chardev" , SerialState, chr),DEFINE_PROP_UINT32 ("baudbase" , SerialState, baudbase,115200 ),DEFINE_PROP_BOOL ("wakeup" , SerialState, wakeup, false),
hw/char/sh_serial.c +1 -1
@@ -447,7 +447,7 @@ static void sh_serial_init(Object *obj) { } -static Property sh_serial_properties[] = { +static const Property sh_serial_properties[] = {DEFINE_PROP_CHR ("chardev" , SHSerialState, chr),DEFINE_PROP_UINT8 ("features" , SHSerialState, feat,0 ),DEFINE_PROP_END_OF_LIST ()
hw/char/shakti_uart.c +1 -1
@@ -157,7 +157,7 @@ static void shakti_uart_instance_init(Object *obj)sysbus_init_mmio (SYS_BUS_DEVICE (obj), &sus->mmio); } -static Property shakti_uart_properties[] = { +static const Property shakti_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , ShaktiUartState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/sifive_uart.c +1 -1
@@ -251,7 +251,7 @@ static int sifive_uart_be_change(void *opaque)return 0 ; } -static Property sifive_uart_properties[] = { +static const Property sifive_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , SiFiveUARTState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/spapr_vty.c +1 -1
@@ -163,7 +163,7 @@ void spapr_vty_create(SpaprVioBus *bus, Chardev *chardev)qdev_realize_and_unref (dev, &bus->bus, &error_fatal); } -static Property spapr_vty_properties[] = { +static const Property spapr_vty_properties[] = {DEFINE_SPAPR_PROPERTIES (SpaprVioVty, sdev),DEFINE_PROP_CHR ("chardev" , SpaprVioVty, chardev),DEFINE_PROP_END_OF_LIST (),
hw/char/stm32f2xx_usart.c +1 -1
@@ -199,7 +199,7 @@ static const MemoryRegionOps stm32f2xx_usart_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property stm32f2xx_usart_properties[] = { +static const Property stm32f2xx_usart_properties[] = {DEFINE_PROP_CHR ("chardev" , STM32F2XXUsartState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/stm32l4x5_usart.c +1 -1
@@ -534,7 +534,7 @@ static const MemoryRegionOps stm32l4x5_usart_base_ops = { }, }; -static Property stm32l4x5_usart_base_properties[] = { +static const Property stm32l4x5_usart_base_properties[] = {DEFINE_PROP_CHR ("chardev" , Stm32l4x5UsartBaseState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/terminal3270.c +1 -1
@@ -283,7 +283,7 @@ static int write_payload_3270(EmulatedCcw3270Device *dev, uint8_t cmd)return (retval <=0 ) ?0 :get_cds (t)->count; } -static Property terminal_properties[] = { +static const Property terminal_properties[] = {DEFINE_PROP_CHR ("chardev" , Terminal3270, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/virtio-console.c +1 -1
@@ -274,7 +274,7 @@ static const TypeInfo virtconsole_info = { .class_init = virtconsole_class_init, }; -static Property virtserialport_properties[] = { +static const Property virtserialport_properties[] = {DEFINE_PROP_CHR ("chardev" , VirtConsole, chr),DEFINE_PROP_END_OF_LIST (), };
hw/char/virtio-serial-bus.c +2 -2
@@ -835,7 +835,7 @@ static int virtio_serial_load_device(VirtIODevice *vdev, QEMUFile *f,static void virtser_bus_dev_print (Monitor *mon,DeviceState *qdev,int indent); -static Property virtser_props[] = { +static const Property virtser_props[] = {DEFINE_PROP_UINT32 ("nr" , VirtIOSerialPort, id,VIRTIO_CONSOLE_BAD_ID ),DEFINE_PROP_STRING ("name" , VirtIOSerialPort, name),DEFINE_PROP_END_OF_LIST ()
@@ -1153,7 +1153,7 @@ static const VMStateDescription vmstate_virtio_console = { }, }; -static Property virtio_serial_properties[] = { +static const Property virtio_serial_properties[] = {DEFINE_PROP_UINT32 ("max_ports" , VirtIOSerial, serial.max_virtserial_ports,31 ), DEFINE_PROP_BIT64("emergency-write", VirtIOSerial, host_features,
hw/char/xen_console.c +1 -1
@@ -487,7 +487,7 @@ static char *xen_console_get_frontend_path(XenDevice *xendev, Error **errp) } -static Property xen_console_properties[] = { +static const Property xen_console_properties[] = {DEFINE_PROP_CHR ("chardev" , XenConsole, chr),DEFINE_PROP_INT32 ("idx" , XenConsole, dev,-1 ),DEFINE_PROP_END_OF_LIST (),
hw/char/xilinx_uartlite.c +1 -1
@@ -176,7 +176,7 @@ static const MemoryRegionOps uart_ops = { } }; -static Property xilinx_uartlite_properties[] = { +static const Property xilinx_uartlite_properties[] = {DEFINE_PROP_CHR ("chardev" , XilinxUARTLite, chr),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 18/67] hw/block: Constify all Property
In reply to Richard Henderson--- hw/block/fdc-isa.c | 2 +- hw/block/fdc-sysbus.c | 4 ++-- hw/block/fdc.c | 2 +- hw/block/m25p80.c | 2 +- hw/block/nand.c | 2 +- hw/block/pflash_cfi01.c | 2 +- hw/block/pflash_cfi02.c | 2 +- hw/block/swim.c | 2 +- hw/block/vhost-user-blk.c | 2 +- hw/block/virtio-blk.c | 2 +- hw/block/xen-block.c | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-)
hw/block/fdc-isa.c +1 -1
@@ -283,7 +283,7 @@ static const VMStateDescription vmstate_isa_fdc = { } }; -static Property isa_fdc_properties[] = { +static const Property isa_fdc_properties[] = {DEFINE_PROP_UINT32 ("iobase" , FDCtrlISABus, iobase,0x3f0 ),DEFINE_PROP_UINT32 ("irq" , FDCtrlISABus, irq,6 ),DEFINE_PROP_UINT32 ("dma" , FDCtrlISABus, dma,2 ),
hw/block/fdc-sysbus.c +2 -2
@@ -196,7 +196,7 @@ static const TypeInfo sysbus_fdc_common_typeinfo = { .class_size = sizeof(FDCtrlSysBusClass), }; -static Property sysbus_fdc_properties[] = { +static const Property sysbus_fdc_properties[] = {DEFINE_PROP_SIGNED ("fdtypeA" , FDCtrlSysBus, state.qdev_for_drives[0 ].type,FLOPPY_DRIVE_TYPE_AUTO , qdev_prop_fdc_drive_type, FloppyDriveType),
@@ -223,7 +223,7 @@ static const TypeInfo sysbus_fdc_typeinfo = { .class_init = sysbus_fdc_class_init, }; -static Property sun4m_fdc_properties[] = { +static const Property sun4m_fdc_properties[] = {DEFINE_PROP_SIGNED ("fdtype" , FDCtrlSysBus, state.qdev_for_drives[0 ].type,FLOPPY_DRIVE_TYPE_AUTO , qdev_prop_fdc_drive_type, FloppyDriveType),
hw/block/fdc.c +1 -1
@@ -454,7 +454,7 @@ struct FloppyDrive {FloppyDriveType type; }; -static Property floppy_drive_properties[] = { +static const Property floppy_drive_properties[] = {DEFINE_PROP_UINT32 ("unit" , FloppyDrive, unit,-1 ),DEFINE_BLOCK_PROPERTIES (FloppyDrive, conf), DEFINE_PROP_SIGNED("drive-type", FloppyDrive, type,
hw/block/m25p80.c +1 -1
@@ -1720,7 +1720,7 @@ static int m25p80_pre_save(void *opaque)return 0 ; } -static Property m25p80_properties[] = { +static const Property m25p80_properties[] = {/* This is default value for Micron flash */ DEFINE_PROP_BOOL ("write-enable" , Flash, write_enable, false),DEFINE_PROP_UINT32 ("nonvolatile-cfg" , Flash, nonvolatile_cfg,0x8FFF ),
hw/block/nand.c +1 -1
@@ -445,7 +445,7 @@ static void nand_realize(DeviceState *dev, Error **errp) s->ioaddr = s->io; } -static Property nand_properties[] = { +static const Property nand_properties[] = {DEFINE_PROP_UINT8 ("manufacturer_id" , NANDFlashState, manf_id,0 ),DEFINE_PROP_UINT8 ("chip_id" , NANDFlashState, chip_id,0 ),DEFINE_PROP_DRIVE ("drive" , NANDFlashState, blk),
hw/block/pflash_cfi01.c +1 -1
@@ -895,7 +895,7 @@ static void pflash_cfi01_system_reset(DeviceState *dev) pfl->blk_offset =-1 ; } -static Property pflash_cfi01_properties[] = { +static const Property pflash_cfi01_properties[] = {DEFINE_PROP_DRIVE ("drive" , PFlashCFI01, blk),/* num-blocks is the number of blocks actually visible to the guest, * ie the total size of the device divided by the sector length.
hw/block/pflash_cfi02.c +1 -1
@@ -937,7 +937,7 @@ static void pflash_cfi02_reset(DeviceState *dev)pflash_reset_state_machine (pfl); } -static Property pflash_cfi02_properties[] = { +static const Property pflash_cfi02_properties[] = {DEFINE_PROP_DRIVE ("drive" , PFlashCFI02, blk),DEFINE_PROP_UINT32 ("num-blocks" , PFlashCFI02, uniform_nb_blocs,0 ),DEFINE_PROP_UINT32 ("sector-length" , PFlashCFI02, uniform_sector_len,0 ),
hw/block/swim.c +1 -1
@@ -166,7 +166,7 @@ static const BlockDevOps swim_block_ops = { .change_media_cb = swim_change_cb, }; -static Property swim_drive_properties[] = { +static const Property swim_drive_properties[] = {DEFINE_PROP_INT32 ("unit" , SWIMDrive, unit,-1 ),DEFINE_BLOCK_PROPERTIES (SWIMDrive, conf),DEFINE_PROP_END_OF_LIST (),
hw/block/vhost-user-blk.c +1 -1
@@ -570,7 +570,7 @@ static const VMStateDescription vmstate_vhost_user_blk = { }, }; -static Property vhost_user_blk_properties[] = { +static const Property vhost_user_blk_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBlk, chardev),DEFINE_PROP_UINT16 ("num-queues" , VHostUserBlk, num_queues,VHOST_USER_BLK_AUTO_NUM_QUEUES ),
hw/block/virtio-blk.c +1 -1
@@ -1985,7 +1985,7 @@ static const VMStateDescription vmstate_virtio_blk = { }, }; -static Property virtio_blk_properties[] = { +static const Property virtio_blk_properties[] = {DEFINE_BLOCK_PROPERTIES (VirtIOBlock, conf.conf),DEFINE_BLOCK_ERROR_PROPERTIES (VirtIOBlock, conf.conf),DEFINE_BLOCK_CHS_PROPERTIES (VirtIOBlock, conf.conf),
hw/block/xen-block.c +1 -1
@@ -666,7 +666,7 @@ static const PropertyInfo xen_block_prop_vdev = { .set = xen_block_set_vdev, }; -static Property xen_block_props[] = { +static const Property xen_block_props[] = {DEFINE_PROP ("vdev" , XenBlockDevice, props.vdev, xen_block_prop_vdev, XenBlockVdev),DEFINE_BLOCK_PROPERTIES (XenBlockDevice, props.conf),
Signature · 1 line
2.43.0
[PULL 32/67] hw/ipack: Constify all Property
In reply to Richard Henderson--- hw/ipack/ipack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ipack/ipack.c +1 -1
@@ -73,7 +73,7 @@ static void ipack_device_unrealize(DeviceState *dev)qemu_free_irqs (idev->irq,2 ); } -static Property ipack_device_props[] = { +static const Property ipack_device_props[] = {DEFINE_PROP_INT32 ("slot" , IPackDevice, slot,-1 ),DEFINE_PROP_END_OF_LIST () };
Signature · 1 line
2.43.0
[PULL 23/67] hw/display: Constify all Property
In reply to Richard Henderson--- hw/display/artist.c | 2 +- hw/display/ati.c | 2 +- hw/display/bcm2835_fb.c | 2 +- hw/display/bochs-display.c | 2 +- hw/display/cg3.c | 2 +- hw/display/cirrus_vga.c | 2 +- hw/display/cirrus_vga_isa.c | 2 +- hw/display/exynos4210_fimd.c | 2 +- hw/display/g364fb.c | 2 +- hw/display/i2c-ddc.c | 2 +- hw/display/macfb.c | 4 ++-- hw/display/pl110.c | 2 +- hw/display/qxl.c | 2 +- hw/display/ramfb-standalone.c | 2 +- hw/display/sm501.c | 4 ++-- hw/display/tcx.c | 2 +- hw/display/vga-isa.c | 2 +- hw/display/vga-mmio.c | 2 +- hw/display/vga-pci.c | 4 ++-- hw/display/vhost-user-gpu.c | 2 +- hw/display/virtio-gpu-gl.c | 2 +- hw/display/virtio-gpu-pci.c | 2 +- hw/display/virtio-gpu-rutabaga.c | 2 +- hw/display/virtio-gpu.c | 2 +- hw/display/virtio-vga.c | 2 +- hw/display/vmware_vga.c | 2 +- hw/display/xlnx_dp.c | 2 +- 27 files changed, 30 insertions(+), 30 deletions(-)
hw/display/artist.c +1 -1
@@ -1474,7 +1474,7 @@ static const VMStateDescription vmstate_artist = { } }; -static Property artist_properties[] = { +static const Property artist_properties[] = {DEFINE_PROP_UINT16 ("width" , ARTISTState, width,1280 ),DEFINE_PROP_UINT16 ("height" , ARTISTState, height,1024 ),DEFINE_PROP_UINT16 ("depth" , ARTISTState, depth,8 ),
hw/display/ati.c +1 -1
@@ -1039,7 +1039,7 @@ static void ati_vga_exit(PCIDevice *dev)graphic_console_close (s->vga.con); } -static Property ati_vga_properties[] = { +static const Property ati_vga_properties[] = {DEFINE_PROP_UINT32 ("vgamem_mb" , ATIVGAState, vga.vram_size_mb,16 ),DEFINE_PROP_STRING ("model" , ATIVGAState, model), DEFINE_PROP_UINT16("x-device-id", ATIVGAState, dev_id,
hw/display/bcm2835_fb.c +1 -1
@@ -429,7 +429,7 @@ static void bcm2835_fb_realize(DeviceState *dev, Error **errp)qemu_console_resize (s->con, s->config.xres, s->config.yres); } -static Property bcm2835_fb_props[] = { +static const Property bcm2835_fb_props[] = {DEFINE_PROP_UINT32 ("vcram-base" , BCM2835FBState, vcram_base,0 ),/*required*/ DEFINE_PROP_UINT32 ("vcram-size" , BCM2835FBState, vcram_size,DEFAULT_VCRAM_SIZE ),
hw/display/bochs-display.c +1 -1
@@ -345,7 +345,7 @@ static void bochs_display_exit(PCIDevice *dev)graphic_console_close (s->con); } -static Property bochs_display_properties[] = { +static const Property bochs_display_properties[] = {DEFINE_PROP_SIZE ("vgamem" , BochsDisplayState, vgamem,16 * MiB),DEFINE_PROP_BOOL ("edid" , BochsDisplayState, enable_edid, true),DEFINE_EDID_PROPERTIES (BochsDisplayState, edid_info),
hw/display/cg3.c +1 -1
@@ -361,7 +361,7 @@ static void cg3_reset(DeviceState *d)qemu_irq_lower (s->irq); } -static Property cg3_properties[] = { +static const Property cg3_properties[] = {DEFINE_PROP_UINT32 ("vram-size" , CG3State, vram_size,-1 ),DEFINE_PROP_UINT16 ("width" , CG3State, width,-1 ),DEFINE_PROP_UINT16 ("height" , CG3State, height,-1 ),
hw/display/cirrus_vga.c +1 -1
@@ -2982,7 +2982,7 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp) } } -static Property pci_vga_cirrus_properties[] = { +static const Property pci_vga_cirrus_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState, cirrus_vga.vga.vram_size_mb,4 ), DEFINE_PROP_BOOL("blitter", struct PCICirrusVGAState,
hw/display/cirrus_vga_isa.c +1 -1
@@ -69,7 +69,7 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)/* FIXME not qdev yet */ } -static Property isa_cirrus_vga_properties[] = { +static const Property isa_cirrus_vga_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct ISACirrusVGAState, cirrus_vga.vga.vram_size_mb,4 ), DEFINE_PROP_BOOL("blitter", struct ISACirrusVGAState,
hw/display/exynos4210_fimd.c +1 -1
@@ -1925,7 +1925,7 @@ static const GraphicHwOps exynos4210_fimd_ops = { .gfx_update = exynos4210_fimd_update, }; -static Property exynos4210_fimd_properties[] = { +static const Property exynos4210_fimd_properties[] = {DEFINE_PROP_LINK ("framebuffer-memory" , Exynos4210fimdState, fbmem, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/display/g364fb.c +1 -1
@@ -512,7 +512,7 @@ static void g364fb_sysbus_reset(DeviceState *d)g364fb_reset (&s->g364); } -static Property g364fb_sysbus_properties[] = { +static const Property g364fb_sysbus_properties[] = {DEFINE_PROP_UINT32 ("vram_size" , G364SysBusState, g364.vram_size,8 * MiB),DEFINE_PROP_END_OF_LIST (), };
hw/display/i2c-ddc.c +1 -1
@@ -95,7 +95,7 @@ static const VMStateDescription vmstate_i2c_ddc = { } }; -static Property i2c_ddc_properties[] = { +static const Property i2c_ddc_properties[] = {DEFINE_EDID_PROPERTIES (I2CDDCState, edid_info),DEFINE_PROP_END_OF_LIST (), };
hw/display/macfb.c +2 -2
@@ -758,7 +758,7 @@ static void macfb_nubus_reset(DeviceState *d)macfb_reset (&s->macfb); } -static Property macfb_sysbus_properties[] = { +static const Property macfb_sysbus_properties[] = {DEFINE_PROP_UINT32 ("width" , MacfbSysBusState, macfb.width,640 ),DEFINE_PROP_UINT32 ("height" , MacfbSysBusState, macfb.height,480 ),DEFINE_PROP_UINT8 ("depth" , MacfbSysBusState, macfb.depth,8 ),
@@ -777,7 +777,7 @@ static const VMStateDescription vmstate_macfb_sysbus = { } }; -static Property macfb_nubus_properties[] = { +static const Property macfb_nubus_properties[] = {DEFINE_PROP_UINT32 ("width" , MacfbNubusState, macfb.width,640 ),DEFINE_PROP_UINT32 ("height" , MacfbNubusState, macfb.height,480 ),DEFINE_PROP_UINT8 ("depth" , MacfbNubusState, macfb.depth,8 ),
hw/display/pl110.c +1 -1
@@ -535,7 +535,7 @@ static const GraphicHwOps pl110_gfx_ops = { .gfx_update = pl110_update_display, }; -static Property pl110_properties[] = { +static const Property pl110_properties[] = {DEFINE_PROP_LINK ("framebuffer-memory" , PL110State, fbmem, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/display/qxl.c +1 -1
@@ -2458,7 +2458,7 @@ static const VMStateDescription qxl_vmstate = { } }; -static Property qxl_properties[] = { +static const Property qxl_properties[] = {DEFINE_PROP_UINT32 ("ram_size" , PCIQXLDevice, vga.vram_size,64 * MiB),DEFINE_PROP_UINT64 ("vram_size" , PCIQXLDevice, vram32_size,64 * MiB), DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision,
hw/display/ramfb-standalone.c +1 -1
@@ -60,7 +60,7 @@ static const VMStateDescription ramfb_dev_vmstate = { } }; -static Property ramfb_properties[] = { +static const Property ramfb_properties[] = {DEFINE_PROP_BOOL ("x-migrate" , RAMFBStandaloneState, migrate, true),DEFINE_PROP_END_OF_LIST (), };
hw/display/sm501.c +2 -2
@@ -2054,7 +2054,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp)/* TODO : chain irq to IRL */ } -static Property sm501_sysbus_properties[] = { +static const Property sm501_sysbus_properties[] = {DEFINE_PROP_UINT32 ("vram-size" , SM501SysBusState, vram_size,0 ),/* this a debug option, prefer PROP_UINT over PROP_BIT for simplicity */ DEFINE_PROP_UINT8 ("x-pixman" , SM501SysBusState, state.use_pixman,DEFAULT_X_PIXMAN ),
@@ -2143,7 +2143,7 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp) &s->state.mmio_region); } -static Property sm501_pci_properties[] = { +static const Property sm501_pci_properties[] = {DEFINE_PROP_UINT32 ("vram-size" , SM501PCIState, vram_size,64 * MiB),DEFINE_PROP_UINT8 ("x-pixman" , SM501PCIState, state.use_pixman,DEFAULT_X_PIXMAN ),DEFINE_PROP_END_OF_LIST (),
hw/display/tcx.c +1 -1
@@ -879,7 +879,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp)qemu_console_resize (s->con, s->width, s->height); } -static Property tcx_properties[] = { +static const Property tcx_properties[] = {DEFINE_PROP_UINT32 ("vram_size" , TCXState, vram_size,-1 ),DEFINE_PROP_UINT16 ("width" , TCXState, width,-1 ),DEFINE_PROP_UINT16 ("height" , TCXState, height,-1 ),
hw/display/vga-isa.c +1 -1
@@ -88,7 +88,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)rom_add_vga (VGABIOS_FILENAME ); } -static Property vga_isa_properties[] = { +static const Property vga_isa_properties[] = {DEFINE_PROP_UINT32 ("vgamem_mb" , ISAVGAState, state.vram_size_mb,8 ),DEFINE_PROP_END_OF_LIST (), };
hw/display/vga-mmio.c +1 -1
@@ -111,7 +111,7 @@ static void vga_mmio_realizefn(DeviceState *dev, Error **errp) s->vga.con =graphic_console_init (dev,0 , s->vga.hw_ops, &s->vga); } -static Property vga_mmio_properties[] = { +static const Property vga_mmio_properties[] = {DEFINE_PROP_UINT8 ("it_shift" , VGAMmioState, it_shift,0 ),DEFINE_PROP_UINT32 ("vgamem_mb" , VGAMmioState, vga.vram_size_mb,8 ),DEFINE_PROP_END_OF_LIST (),
hw/display/vga-pci.c +2 -2
@@ -330,7 +330,7 @@ static void pci_secondary_vga_reset(DeviceState *dev)vga_common_reset (&d->vga); } -static Property vga_pci_properties[] = { +static const Property vga_pci_properties[] = {DEFINE_PROP_UINT32 ("vgamem_mb" , PCIVGAState, vga.vram_size_mb,16 ),DEFINE_PROP_BIT ("mmio" , PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_MMIO , true), DEFINE_PROP_BIT("qemu-extended-regs",
@@ -342,7 +342,7 @@ static Property vga_pci_properties[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property secondary_pci_properties[] = { +static const Property secondary_pci_properties[] = {DEFINE_PROP_UINT32 ("vgamem_mb" , PCIVGAState, vga.vram_size_mb,16 ),DEFINE_PROP_BIT ("qemu-extended-regs" , PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_QEXT , true),
hw/display/vhost-user-gpu.c +1 -1
@@ -645,7 +645,7 @@ static struct vhost_dev *vhost_user_gpu_get_vhost(VirtIODevice *vdev)return g->vhost ? &g->vhost->dev :NULL ; } -static Property vhost_user_gpu_properties[] = { +static const Property vhost_user_gpu_properties[] = {VIRTIO_GPU_BASE_PROPERTIES (VhostUserGPU, parent_obj.conf),DEFINE_PROP_END_OF_LIST (), };
hw/display/virtio-gpu-gl.c +1 -1
@@ -154,7 +154,7 @@ static void virtio_gpu_gl_device_realize(DeviceState *qdev, Error **errp)virtio_gpu_device_realize (qdev, errp); } -static Property virtio_gpu_gl_properties[] = { +static const Property virtio_gpu_gl_properties[] = {DEFINE_PROP_BIT ("stats" , VirtIOGPU, parent_obj.conf.flags,VIRTIO_GPU_FLAG_STATS_ENABLED , false), DEFINE_PROP_BIT("venus", VirtIOGPU, parent_obj.conf.flags,
hw/display/virtio-gpu-pci.c +1 -1
@@ -21,7 +21,7 @@#include "hw/virtio/virtio-gpu-pci.h" #include "qom/object.h" -static Property virtio_gpu_pci_base_properties[] = { +static const Property virtio_gpu_pci_base_properties[] = {DEFINE_VIRTIO_GPU_PCI_PROPERTIES (VirtIOPCIProxy),DEFINE_PROP_END_OF_LIST (), };
hw/display/virtio-gpu-rutabaga.c +1 -1
@@ -1096,7 +1096,7 @@ static void virtio_gpu_rutabaga_realize(DeviceState *qdev, Error **errp)virtio_gpu_device_realize (qdev, errp); } -static Property virtio_gpu_rutabaga_properties[] = { +static const Property virtio_gpu_rutabaga_properties[] = {DEFINE_PROP_BIT64 ("gfxstream-vulkan" , VirtIOGPURutabaga, capset_mask,RUTABAGA_CAPSET_GFXSTREAM_VULKAN , false), DEFINE_PROP_BIT64("cross-domain", VirtIOGPURutabaga, capset_mask,
hw/display/virtio-gpu.c +1 -1
@@ -1674,7 +1674,7 @@ static const VMStateDescription vmstate_virtio_gpu = { .post_load = virtio_gpu_post_load, }; -static Property virtio_gpu_properties[] = { +static const Property virtio_gpu_properties[] = {VIRTIO_GPU_BASE_PROPERTIES (VirtIOGPU, parent_obj.conf),DEFINE_PROP_SIZE ("max_hostmem" , VirtIOGPU, conf_max_hostmem,256 * MiB),
hw/display/virtio-vga.c +1 -1
@@ -209,7 +209,7 @@ static void virtio_vga_set_big_endian_fb(Object *obj, bool value, Error **errp) d->vga.big_endian_fb = value; } -static Property virtio_vga_base_properties[] = { +static const Property virtio_vga_base_properties[] = {DEFINE_VIRTIO_GPU_PCI_PROPERTIES (VirtIOPCIProxy),DEFINE_PROP_END_OF_LIST (), };
hw/display/vmware_vga.c +1 -1
@@ -1332,7 +1332,7 @@ static void pci_vmsvga_realize(PCIDevice *dev, Error **errp) &s->chip.fifo_ram); } -static Property vga_vmware_properties[] = { +static const Property vga_vmware_properties[] = { DEFINE_PROP_UINT32("vgamem_mb", struct pci_vmsvga_state_s, chip.vga.vram_size_mb,16 ), DEFINE_PROP_BOOL("global-vmstate", struct pci_vmsvga_state_s,
hw/display/xlnx_dp.c +1 -1
@@ -1387,7 +1387,7 @@ static void xlnx_dp_reset(DeviceState *dev)xlnx_dp_update_irq (s); } -static Property xlnx_dp_device_properties[] = { +static const Property xlnx_dp_device_properties[] = {DEFINE_AUDIO_PROPERTIES (XlnxDPState, aud_card),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 16/67] hw/avr: Constify all Property
In reply to Richard Henderson--- hw/avr/atmega.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/avr/atmega.c +1 -1
@@ -355,7 +355,7 @@ static void atmega_realize(DeviceState *dev, Error **errp)create_unimplemented_device ("avr-eeprom" ,OFFSET_DATA +0x03f ,3 ); } -static Property atmega_props[] = { +static const Property atmega_props[] = {DEFINE_PROP_UINT64 ("xtal-frequency-hz" , AtmegaMcuState, xtal_freq_hz,0 ),DEFINE_PROP_END_OF_LIST ()
Signature · 1 line
2.43.0
[PULL 39/67] hw/misc: Constify all Property
In reply to Richard Henderson--- hw/misc/a9scu.c | 2 +- hw/misc/allwinner-h3-dramc.c | 2 +- hw/misc/allwinner-r40-dramc.c | 2 +- hw/misc/allwinner-sid.c | 2 +- hw/misc/applesmc.c | 2 +- hw/misc/arm11scu.c | 2 +- hw/misc/arm_l2x0.c | 2 +- hw/misc/arm_sysctl.c | 2 +- hw/misc/armsse-cpuid.c | 2 +- hw/misc/aspeed_hace.c | 2 +- hw/misc/aspeed_i3c.c | 2 +- hw/misc/aspeed_lpc.c | 2 +- hw/misc/aspeed_sbc.c | 2 +- hw/misc/aspeed_scu.c | 2 +- hw/misc/aspeed_sdmc.c | 2 +- hw/misc/bcm2835_cprman.c | 2 +- hw/misc/bcm2835_property.c | 2 +- hw/misc/debugexit.c | 2 +- hw/misc/eccmemctl.c | 2 +- hw/misc/empty_slot.c | 2 +- hw/misc/iotkit-secctl.c | 2 +- hw/misc/iotkit-sysctl.c | 2 +- hw/misc/iotkit-sysinfo.c | 2 +- hw/misc/ivshmem.c | 4 ++-- hw/misc/led.c | 2 +- hw/misc/mac_via.c | 2 +- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 2 +- hw/misc/mips_cmgcr.c | 2 +- hw/misc/mips_cpc.c | 2 +- hw/misc/mips_itu.c | 2 +- hw/misc/mos6522.c | 2 +- hw/misc/mps2-fpgaio.c | 2 +- hw/misc/mps2-scc.c | 2 +- hw/misc/msf2-sysreg.c | 2 +- hw/misc/npcm7xx_gcr.c | 2 +- hw/misc/nrf51_rng.c | 2 +- hw/misc/pci-testdev.c | 2 +- hw/misc/pvpanic-isa.c | 2 +- hw/misc/pvpanic-pci.c | 2 +- hw/misc/sifive_e_aon.c | 2 +- hw/misc/sifive_u_otp.c | 2 +- hw/misc/stm32l4x5_rcc.c | 2 +- hw/misc/tz-mpc.c | 2 +- hw/misc/tz-msc.c | 2 +- hw/misc/tz-ppc.c | 2 +- hw/misc/unimp.c | 2 +- hw/misc/xlnx-versal-cframe-reg.c | 4 ++-- hw/misc/xlnx-versal-cfu.c | 4 ++-- hw/misc/xlnx-versal-xramc.c | 2 +- hw/misc/zynq_slcr.c | 2 +- 52 files changed, 56 insertions(+), 56 deletions(-)
hw/misc/a9scu.c +1 -1
@@ -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 (), };
hw/misc/allwinner-h3-dramc.c +1 -1
@@ -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 ()
hw/misc/allwinner-r40-dramc.c +1 -1
@@ -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 ()
hw/misc/allwinner-sid.c +1 -1
@@ -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 () };
hw/misc/applesmc.c +1 -1
@@ -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),
hw/misc/arm11scu.c +1 -1
@@ -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 () };
hw/misc/arm_l2x0.c +1 -1
@@ -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 (), };
hw/misc/arm_sysctl.c +1 -1
@@ -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) */
hw/misc/armsse-cpuid.c +1 -1
@@ -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 () };
hw/misc/aspeed_hace.c +1 -1
@@ -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 (),
hw/misc/aspeed_i3c.c +1 -1
@@ -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 (), };
hw/misc/aspeed_lpc.c +1 -1
@@ -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 (), };
hw/misc/aspeed_sbc.c +1 -1
@@ -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 (),
hw/misc/aspeed_scu.c +1 -1
@@ -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 ),
hw/misc/aspeed_sdmc.c +1 -1
@@ -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 (),
hw/misc/bcm2835_cprman.c +1 -1
@@ -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 () };
hw/misc/bcm2835_property.c +1 -1
@@ -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 ()
hw/misc/debugexit.c +1 -1
@@ -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 (),
hw/misc/eccmemctl.c +1 -1
@@ -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 (), };
hw/misc/empty_slot.c +1 -1
@@ -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 (),
hw/misc/iotkit-secctl.c +1 -1
@@ -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 () };
hw/misc/iotkit-sysctl.c +1 -1
@@ -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,
hw/misc/iotkit-sysinfo.c +1 -1
@@ -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 ),
hw/misc/ivshmem.c +2 -2
@@ -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,
hw/misc/led.c +1 -1
@@ -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),
hw/misc/mac_via.c +1 -1
@@ -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 (), };
hw/misc/macio/cuda.c +1 -1
@@ -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 () };
hw/misc/macio/macio.c +2 -2
@@ -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 () };
hw/misc/macio/pmu.c +1 -1
@@ -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 () };
hw/misc/mips_cmgcr.c +1 -1
@@ -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 ),
hw/misc/mips_cpc.c +1 -1
@@ -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 (),
hw/misc/mips_itu.c +1 -1
@@ -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,
hw/misc/mos6522.c +1 -1
@@ -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 () };
hw/misc/mps2-fpgaio.c +1 -1
@@ -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 */
hw/misc/mps2-scc.c +1 -1
@@ -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) */
hw/misc/msf2-sysreg.c +1 -1
@@ -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 ),
hw/misc/npcm7xx_gcr.c +1 -1
@@ -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 (),
hw/misc/nrf51_rng.c +1 -1
@@ -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,
hw/misc/pci-testdev.c +1 -1
@@ -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 (), };
hw/misc/pvpanic-isa.c +1 -1
@@ -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 ),
hw/misc/pvpanic-pci.c +1 -1
@@ -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 (),
hw/misc/sifive_e_aon.c +1 -1
@@ -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 (),
hw/misc/sifive_u_otp.c +1 -1
@@ -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 (),
hw/misc/stm32l4x5_rcc.c +1 -1
@@ -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,
hw/misc/tz-mpc.c +1 -1
@@ -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 (),
hw/misc/tz-msc.c +1 -1
@@ -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,
hw/misc/tz-ppc.c +1 -1
@@ -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 ),
hw/misc/unimp.c +1 -1
@@ -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 (),
hw/misc/xlnx-versal-cframe-reg.c +2 -2
@@ -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],
hw/misc/xlnx-versal-cfu.c +2 -2
@@ -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 (),
hw/misc/xlnx-versal-xramc.c +1 -1
@@ -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 (), };
hw/misc/zynq_slcr.c +1 -1
@@ -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 (), };
Signature · 1 line
2.43.0
[PULL 21/67] hw/cpu: Constify all Property
In reply to Richard Henderson--- hw/cpu/a15mpcore.c | 2 +- hw/cpu/a9mpcore.c | 2 +- hw/cpu/arm11mpcore.c | 2 +- hw/cpu/cluster.c | 2 +- hw/cpu/realview_mpcore.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/cpu/a15mpcore.c +1 -1
@@ -144,7 +144,7 @@ static void a15mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a15mp_priv_properties[] = { +static const Property a15mp_priv_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , A15MPPrivState, num_cpu,1 ),/* The Cortex-A15MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 128+32, which
hw/cpu/a9mpcore.c +1 -1
@@ -158,7 +158,7 @@ static void a9mp_priv_realize(DeviceState *dev, Error **errp) } } -static Property a9mp_priv_properties[] = { +static const Property a9mp_priv_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , A9MPPrivState, num_cpu,1 ),/* The Cortex-A9MP may have anything from 0 to 224 external interrupt * IRQ lines (with another 32 internal). We default to 64+32, which
hw/cpu/arm11mpcore.c +1 -1
@@ -131,7 +131,7 @@ static void mpcore_priv_initfn(Object *obj)object_initialize_child (obj,"wdtimer" , &s->wdtimer,TYPE_ARM_MPTIMER ); } -static Property mpcore_priv_properties[] = { +static const Property mpcore_priv_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , ARM11MPCorePriveState, num_cpu,1 ),/* The ARM11 MPCORE TRM says the on-chip controller may have * anything from 0 to 224 external interrupt IRQ lines (with another
hw/cpu/cluster.c +1 -1
@@ -25,7 +25,7 @@#include "hw/qdev-properties.h" #include "qapi/error.h" -static Property cpu_cluster_properties[] = { +static const Property cpu_cluster_properties[] = {DEFINE_PROP_UINT32 ("cluster-id" , CPUClusterState, cluster_id,0 ),DEFINE_PROP_END_OF_LIST () };
hw/cpu/realview_mpcore.c +1 -1
@@ -108,7 +108,7 @@ static void mpcore_rirq_init(Object *obj) } } -static Property mpcore_rirq_properties[] = { +static const Property mpcore_rirq_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , mpcore_rirq_state, num_cpu,1 ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 37/67] hw/mips: Constify all Property
In reply to Richard Henderson--- hw/mips/cps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/mips/cps.c +1 -1
@@ -166,7 +166,7 @@ static void mips_cps_realize(DeviceState *dev, Error **errp) sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gcr), 0)); } -static Property mips_cps_properties[] = { +static const Property mips_cps_properties[] = {DEFINE_PROP_UINT32 ("num-vp" , MIPSCPSState, num_vp,1 ),DEFINE_PROP_UINT32 ("num-irq" , MIPSCPSState, num_irq,256 ),DEFINE_PROP_STRING ("cpu-type" , MIPSCPSState, cpu_type),
Signature · 1 line
2.43.0
[PULL 31/67] hw/intc: Constify all Property
In reply to Richard Henderson--- hw/intc/apic_common.c | 2 +- hw/intc/arm_gic_common.c | 2 +- hw/intc/arm_gicv2m.c | 2 +- hw/intc/arm_gicv3_common.c | 2 +- hw/intc/arm_gicv3_its.c | 2 +- hw/intc/arm_gicv3_its_kvm.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/intc/exynos4210_combiner.c | 2 +- hw/intc/exynos4210_gic.c | 2 +- hw/intc/goldfish_pic.c | 2 +- hw/intc/grlib_irqmp.c | 2 +- hw/intc/i8259_common.c | 2 +- hw/intc/ioapic.c | 2 +- hw/intc/loongarch_extioi.c | 2 +- hw/intc/loongarch_pch_msi.c | 2 +- hw/intc/loongarch_pch_pic.c | 2 +- hw/intc/loongson_ipi_common.c | 2 +- hw/intc/m68k_irqc.c | 2 +- hw/intc/mips_gic.c | 2 +- hw/intc/omap_intc.c | 2 +- hw/intc/ompic.c | 2 +- hw/intc/openpic.c | 2 +- hw/intc/openpic_kvm.c | 2 +- hw/intc/pnv_xive.c | 2 +- hw/intc/pnv_xive2.c | 2 +- hw/intc/ppc-uic.c | 2 +- hw/intc/riscv_aclint.c | 4 ++-- hw/intc/riscv_aplic.c | 2 +- hw/intc/riscv_imsic.c | 2 +- hw/intc/rx_icu.c | 2 +- hw/intc/s390_flic.c | 4 ++-- hw/intc/sifive_plic.c | 2 +- hw/intc/spapr_xive.c | 2 +- hw/intc/xics.c | 4 ++-- hw/intc/xilinx_intc.c | 2 +- hw/intc/xive.c | 8 ++++---- hw/intc/xive2.c | 4 ++-- hw/intc/xlnx-pmu-iomod-intc.c | 2 +- 38 files changed, 45 insertions(+), 45 deletions(-)
hw/intc/apic_common.c +1 -1
@@ -408,7 +408,7 @@ static const VMStateDescription vmstate_apic_common = { } }; -static Property apic_properties_common[] = { +static const Property apic_properties_common[] = {DEFINE_PROP_UINT8 ("version" , APICCommonState, version,0x14 ),DEFINE_PROP_BIT ("vapic" , APICCommonState, vapic_control,VAPIC_ENABLE_BIT , true),
hw/intc/arm_gic_common.c +1 -1
@@ -348,7 +348,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gic_common_properties[] = { +static const Property arm_gic_common_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , GICState, num_cpu,1 ),DEFINE_PROP_UINT32 ("num-irq" , GICState, num_irq,32 ),/* Revision can be 1 or 2 for GIC architecture specification
hw/intc/arm_gicv2m.c +1 -1
@@ -170,7 +170,7 @@ static void gicv2m_init(Object *obj)sysbus_init_mmio (sbd, &s->iomem); } -static Property gicv2m_properties[] = { +static const Property gicv2m_properties[] = {DEFINE_PROP_UINT32 ("base-spi" , ARMGICv2mState, base_spi,0 ),DEFINE_PROP_UINT32 ("num-spi" , ARMGICv2mState, num_spi,64 ),DEFINE_PROP_END_OF_LIST (),
hw/intc/arm_gicv3_common.c +1 -1
@@ -605,7 +605,7 @@ static void arm_gic_common_linux_init(ARMLinuxBootIf *obj, } } -static Property arm_gicv3_common_properties[] = { +static const Property arm_gicv3_common_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , GICv3State, num_cpu,1 ),DEFINE_PROP_UINT32 ("num-irq" , GICv3State, num_irq,32 ),DEFINE_PROP_UINT32 ("revision" , GICv3State, revision,3 ),
hw/intc/arm_gicv3_its.c +1 -1
@@ -2002,7 +2002,7 @@ static void gicv3_its_post_load(GICv3ITSState *s) } } -static Property gicv3_its_props[] = { +static const Property gicv3_its_props[] = {DEFINE_PROP_LINK ("parent-gicv3" , GICv3ITSState, gicv3,"arm-gicv3" , GICv3State *),DEFINE_PROP_END_OF_LIST (),
hw/intc/arm_gicv3_its_kvm.c +1 -1
@@ -234,7 +234,7 @@ static void kvm_arm_its_reset_hold(Object *obj, ResetType type) } } -static Property kvm_arm_its_props[] = { +static const Property kvm_arm_its_props[] = {DEFINE_PROP_LINK ("parent-gicv3" , GICv3ITSState, gicv3,"kvm-arm-gicv3" , GICv3State *),DEFINE_PROP_END_OF_LIST (),
hw/intc/armv7m_nvic.c +1 -1
@@ -2569,7 +2569,7 @@ static const VMStateDescription vmstate_nvic = { } }; -static Property props_nvic[] = { +static const Property props_nvic[] = {/* Number of external IRQ lines (so excluding the 16 internal exceptions) */ DEFINE_PROP_UINT32 ("num-irq" , NVICState, num_irq,64 ),/*
hw/intc/exynos4210_combiner.c +1 -1
@@ -325,7 +325,7 @@ static void exynos4210_combiner_init(Object *obj)sysbus_init_mmio (sbd, &s->iomem); } -static Property exynos4210_combiner_properties[] = { +static const Property exynos4210_combiner_properties[] = {DEFINE_PROP_UINT32 ("external" , Exynos4210CombinerState, external,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/exynos4210_gic.c +1 -1
@@ -111,7 +111,7 @@ static void exynos4210_gic_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (sbd, &s->dist_container); } -static Property exynos4210_gic_properties[] = { +static const Property exynos4210_gic_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , Exynos4210GicState, num_cpu,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/goldfish_pic.c +1 -1
@@ -181,7 +181,7 @@ static void goldfish_pic_instance_init(Object *obj)qdev_init_gpio_in (DEVICE (obj), goldfish_irq_request,GOLDFISH_PIC_IRQ_NB ); } -static Property goldfish_pic_properties[] = { +static const Property goldfish_pic_properties[] = {DEFINE_PROP_UINT8 ("index" , GoldfishPICState, idx,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/grlib_irqmp.c +1 -1
@@ -376,7 +376,7 @@ static void grlib_irqmp_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (SYS_BUS_DEVICE (dev), &irqmp->iomem); } -static Property grlib_irqmp_properties[] = { +static const Property grlib_irqmp_properties[] = {DEFINE_PROP_UINT32 ("ncpus" ,IRQMP , ncpus,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/i8259_common.c +1 -1
@@ -193,7 +193,7 @@ static const VMStateDescription vmstate_pic_common = { } }; -static Property pic_properties_common[] = { +static const Property pic_properties_common[] = {DEFINE_PROP_UINT32 ("iobase" , PICCommonState, iobase,-1 ),DEFINE_PROP_UINT32 ("elcr_addr" , PICCommonState, elcr_addr,-1 ),DEFINE_PROP_UINT8 ("elcr_mask" , PICCommonState, elcr_mask,-1 ),
hw/intc/ioapic.c +1 -1
@@ -476,7 +476,7 @@ static void ioapic_unrealize(DeviceState *dev)timer_free (s->delayed_ioapic_service_timer); } -static Property ioapic_properties[] = { +static const Property ioapic_properties[] = {DEFINE_PROP_UINT8 ("version" , IOAPICCommonState, version,IOAPIC_VER_DEF ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/loongarch_extioi.c +1 -1
@@ -423,7 +423,7 @@ static const VMStateDescription vmstate_loongarch_extioi = { } }; -static Property extioi_properties[] = { +static const Property extioi_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , LoongArchExtIOI, num_cpu,1 ),DEFINE_PROP_BIT ("has-virtualization-extension" , LoongArchExtIOI, features,EXTIOI_HAS_VIRT_EXTENSION ,0 ),
hw/intc/loongarch_pch_msi.c +1 -1
@@ -83,7 +83,7 @@ static void loongarch_pch_msi_init(Object *obj) } -static Property loongarch_msi_properties[] = { +static const Property loongarch_msi_properties[] = {DEFINE_PROP_UINT32 ("msi_irq_base" , LoongArchPCHMSI, irq_base,0 ),DEFINE_PROP_UINT32 ("msi_irq_num" , LoongArchPCHMSI, irq_num,0 ),DEFINE_PROP_END_OF_LIST (),
hw/intc/loongarch_pch_pic.c +1 -1
@@ -411,7 +411,7 @@ static void loongarch_pch_pic_init(Object *obj) } -static Property loongarch_pch_pic_properties[] = { +static const Property loongarch_pch_pic_properties[] = {DEFINE_PROP_UINT32 ("pch_pic_irq_num" , LoongArchPCHPIC, irq_num,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/loongson_ipi_common.c +1 -1
@@ -315,7 +315,7 @@ static const VMStateDescription vmstate_loongson_ipi_common = { } }; -static Property ipi_common_properties[] = { +static const Property ipi_common_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , LoongsonIPICommonState, num_cpu,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/m68k_irqc.c +1 -1
@@ -85,7 +85,7 @@ static const VMStateDescription vmstate_m68k_irqc = { } }; -static Property m68k_irqc_properties[] = { +static const Property m68k_irqc_properties[] = {DEFINE_PROP_LINK ("m68k-cpu" , M68KIRQCState, cpu, TYPE_M68K_CPU, ArchCPU *),DEFINE_PROP_END_OF_LIST (),
hw/intc/mips_gic.c +1 -1
@@ -438,7 +438,7 @@ static void mips_gic_realize(DeviceState *dev, Error **errp) } } -static Property mips_gic_properties[] = { +static const Property mips_gic_properties[] = {DEFINE_PROP_UINT32 ("num-vp" , MIPSGICState, num_vps,1 ),DEFINE_PROP_UINT32 ("num-irq" , MIPSGICState, num_irq,256 ),DEFINE_PROP_END_OF_LIST (),
hw/intc/omap_intc.c +1 -1
@@ -375,7 +375,7 @@ void omap_intc_set_fclk(OMAPIntcState *intc, omap_clk clk) intc->fclk = clk; } -static Property omap_intc_properties[] = { +static const Property omap_intc_properties[] = {DEFINE_PROP_UINT32 ("size" , OMAPIntcState, size,0x100 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/ompic.c +1 -1
@@ -128,7 +128,7 @@ static void or1k_ompic_realize(DeviceState *dev, Error **errp) } } -static Property or1k_ompic_properties[] = { +static const Property or1k_ompic_properties[] = {DEFINE_PROP_UINT32 ("num-cpus" , OR1KOMPICState, num_cpus,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/openpic.c +1 -1
@@ -1606,7 +1606,7 @@ static void openpic_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, openpic_set_irq, opp->max_irq); } -static Property openpic_properties[] = { +static const Property openpic_properties[] = {DEFINE_PROP_UINT32 ("model" , OpenPICState, model,OPENPIC_MODEL_FSL_MPIC_20 ),DEFINE_PROP_UINT32 ("nb_cpus" , OpenPICState, nb_cpus,1 ),DEFINE_PROP_END_OF_LIST (),
hw/intc/openpic_kvm.c +1 -1
@@ -262,7 +262,7 @@ int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs) kvm_arch_vcpu_id(cs)); } -static Property kvm_openpic_properties[] = { +static const Property kvm_openpic_properties[] = {DEFINE_PROP_UINT32 ("model" , KVMOpenPICState, model,OPENPIC_MODEL_FSL_MPIC_20 ),DEFINE_PROP_END_OF_LIST (),
hw/intc/pnv_xive.c +1 -1
@@ -2059,7 +2059,7 @@ static int pnv_xive_dt_xscom(PnvXScomInterface *dev, void *fdt,return 0 ; } -static Property pnv_xive_properties[] = { +static const Property pnv_xive_properties[] = {DEFINE_PROP_UINT64 ("ic-bar" , PnvXive, ic_base,0 ),DEFINE_PROP_UINT64 ("vc-bar" , PnvXive, vc_base,0 ),DEFINE_PROP_UINT64 ("pc-bar" , PnvXive, pc_base,0 ),
hw/intc/pnv_xive2.c +1 -1
@@ -2354,7 +2354,7 @@ static void pnv_xive2_realize(DeviceState *dev, Error **errp)qemu_register_reset (pnv_xive2_reset, dev); } -static Property pnv_xive2_properties[] = { +static const Property pnv_xive2_properties[] = {DEFINE_PROP_UINT64 ("ic-bar" , PnvXive2, ic_base,0 ),DEFINE_PROP_UINT64 ("esb-bar" , PnvXive2, esb_base,0 ),DEFINE_PROP_UINT64 ("end-bar" , PnvXive2, end_base,0 ),
hw/intc/ppc-uic.c +1 -1
@@ -259,7 +259,7 @@ static void ppc_uic_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, ppcuic_set_irq,UIC_MAX_IRQ ); } -static Property ppc_uic_properties[] = { +static const Property ppc_uic_properties[] = {DEFINE_PROP_UINT32 ("dcr-base" ,PPCUIC , dcr_base,0xc0 ),DEFINE_PROP_BOOL ("use-vectors" ,PPCUIC , use_vectors, true),DEFINE_PROP_END_OF_LIST ()
hw/intc/riscv_aclint.c +2 -2
@@ -262,7 +262,7 @@ static const MemoryRegionOps riscv_aclint_mtimer_ops = { } }; -static Property riscv_aclint_mtimer_properties[] = { +static const Property riscv_aclint_mtimer_properties[] = {DEFINE_PROP_UINT32 ("hartid-base" , RISCVAclintMTimerState, hartid_base,0 ),DEFINE_PROP_UINT32 ("num-harts" , RISCVAclintMTimerState, num_harts,1 ),
@@ -462,7 +462,7 @@ static const MemoryRegionOps riscv_aclint_swi_ops = { } }; -static Property riscv_aclint_swi_properties[] = { +static const Property riscv_aclint_swi_properties[] = {DEFINE_PROP_UINT32 ("hartid-base" , RISCVAclintSwiState, hartid_base,0 ),DEFINE_PROP_UINT32 ("num-harts" , RISCVAclintSwiState, num_harts,1 ),DEFINE_PROP_UINT32 ("sswi" , RISCVAclintSwiState, sswi, false),
hw/intc/riscv_aplic.c +1 -1
@@ -904,7 +904,7 @@ static void riscv_aplic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_aplic_properties[] = { +static const Property riscv_aplic_properties[] = {DEFINE_PROP_UINT32 ("aperture-size" , RISCVAPLICState, aperture_size,0 ),DEFINE_PROP_UINT32 ("hartid-base" , RISCVAPLICState, hartid_base,0 ),DEFINE_PROP_UINT32 ("num-harts" , RISCVAPLICState, num_harts,0 ),
hw/intc/riscv_imsic.c +1 -1
@@ -388,7 +388,7 @@ static void riscv_imsic_realize(DeviceState *dev, Error **errp) msi_nonbroken = true; } -static Property riscv_imsic_properties[] = { +static const Property riscv_imsic_properties[] = {DEFINE_PROP_BOOL ("mmode" , RISCVIMSICState, mmode,0 ),DEFINE_PROP_UINT32 ("hartid" , RISCVIMSICState, hartid,0 ),DEFINE_PROP_UINT32 ("num-pages" , RISCVIMSICState, num_pages,0 ),
hw/intc/rx_icu.c +1 -1
@@ -361,7 +361,7 @@ static const VMStateDescription vmstate_rxicu = { } }; -static Property rxicu_properties[] = { +static const Property rxicu_properties[] = {DEFINE_PROP_ARRAY ("ipr-map" , RXICUState, nr_irqs, map, qdev_prop_uint8, uint8_t), DEFINE_PROP_ARRAY("trigger-level", RXICUState, nr_sense, init_sense,
hw/intc/s390_flic.c +2 -2
@@ -445,7 +445,7 @@ static void qemu_s390_flic_instance_init(Object *obj) } } -static Property qemu_s390_flic_properties[] = { +static const Property qemu_s390_flic_properties[] = {DEFINE_PROP_BOOL ("migrate-all-state" , QEMUS390FLICState, migrate_all_state, true),DEFINE_PROP_END_OF_LIST (),
@@ -471,7 +471,7 @@ static void qemu_s390_flic_class_init(ObjectClass *oc, void *data) fsc->inject_crw_mchk = qemu_s390_inject_crw_mchk; } -static Property s390_flic_common_properties[] = { +static const Property s390_flic_common_properties[] = {DEFINE_PROP_UINT32 ("adapter_routes_max_batch" , S390FLICState, adapter_routes_max_batch,ADAPTER_ROUTES_MAX_GSI ), DEFINE_PROP_BOOL("migration-enabled", S390FLICState,
hw/intc/sifive_plic.c +1 -1
@@ -430,7 +430,7 @@ static const VMStateDescription vmstate_sifive_plic = { } }; -static Property sifive_plic_properties[] = { +static const Property sifive_plic_properties[] = {DEFINE_PROP_STRING ("hart-config" , SiFivePLICState, hart_config),DEFINE_PROP_UINT32 ("hartid-base" , SiFivePLICState, hartid_base,0 ),/* number of interrupt sources including interrupt source 0 */
hw/intc/spapr_xive.c +1 -1
@@ -627,7 +627,7 @@ static void spapr_xive_free_irq(SpaprInterruptController *intc, int lisn) xive->eat[lisn].w &=cpu_to_be64 (~EAS_VALID ); } -static Property spapr_xive_properties[] = { +static const Property spapr_xive_properties[] = {DEFINE_PROP_UINT32 ("nr-irqs" , SpaprXive, nr_irqs,0 ),DEFINE_PROP_UINT32 ("nr-ends" , SpaprXive, nr_ends,0 ),DEFINE_PROP_UINT64 ("vc-base" , SpaprXive, vc_base,SPAPR_XIVE_VC_BASE ),
hw/intc/xics.c +2 -2
@@ -344,7 +344,7 @@ static void icp_unrealize(DeviceState *dev)vmstate_unregister (NULL , &vmstate_icp_server, icp); } -static Property icp_properties[] = { +static const Property icp_properties[] = {DEFINE_PROP_LINK (ICP_PROP_XICS , ICPState, xics,TYPE_XICS_FABRIC , XICSFabric *), DEFINE_PROP_LINK(ICP_PROP_CPU, ICPState, cs, TYPE_CPU, CPUState *),
@@ -676,7 +676,7 @@ static const VMStateDescription vmstate_ics = { }, }; -static Property ics_properties[] = { +static const Property ics_properties[] = {DEFINE_PROP_UINT32 ("nr-irqs" , ICSState, nr_irqs,0 ),DEFINE_PROP_LINK (ICS_PROP_XICS , ICSState, xics,TYPE_XICS_FABRIC , XICSFabric *),
hw/intc/xilinx_intc.c +1 -1
@@ -176,7 +176,7 @@ static void xilinx_intc_init(Object *obj)sysbus_init_mmio (SYS_BUS_DEVICE (obj), &p->mmio); } -static Property xilinx_intc_properties[] = { +static const Property xilinx_intc_properties[] = {DEFINE_PROP_UINT32 ("kind-of-intr" , XpsIntc, c_kind_of_intr,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/intc/xive.c +4 -4
@@ -927,7 +927,7 @@ static const VMStateDescription vmstate_xive_tctx = { }, }; -static Property xive_tctx_properties[] = { +static const Property xive_tctx_properties[] = { DEFINE_PROP_LINK("cpu", XiveTCTX, cs, TYPE_CPU, CPUState *),DEFINE_PROP_LINK ("presenter" , XiveTCTX, xptr,TYPE_XIVE_PRESENTER , XivePresenter *),
@@ -1403,7 +1403,7 @@ static const VMStateDescription vmstate_xive_source = {* The default XIVE interrupt source setting for the ESB MMIOs is two * 64k pages without Store EOI, to be in sync with KVM. */ -static Property xive_source_properties[] = { +static const Property xive_source_properties[] = {DEFINE_PROP_UINT64 ("flags" , XiveSource, esb_flags,0 ),DEFINE_PROP_UINT32 ("nr-irqs" , XiveSource, nr_irqs,0 ),DEFINE_PROP_UINT32 ("shift" , XiveSource, esb_shift,XIVE_ESB_64K_2PAGE ),
@@ -2002,7 +2002,7 @@ void xive_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked)xive_router_end_notify_handler (xrtr, &eas); } -static Property xive_router_properties[] = { +static const Property xive_router_properties[] = {DEFINE_PROP_LINK ("xive-fabric" , XiveRouter, xfb, TYPE_XIVE_FABRIC, XiveFabric *),DEFINE_PROP_END_OF_LIST (),
@@ -2170,7 +2170,7 @@ static void xive_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive_end_source_properties[] = { +static const Property xive_end_source_properties[] = {DEFINE_PROP_UINT32 ("nr-ends" , XiveENDSource, nr_ends,0 ),DEFINE_PROP_UINT32 ("shift" , XiveENDSource, esb_shift,XIVE_ESB_64K ), DEFINE_PROP_LINK("xive", XiveENDSource, xrtr, TYPE_XIVE_ROUTER,
hw/intc/xive2.c +2 -2
@@ -1028,7 +1028,7 @@ void xive2_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked) xive_get_field64(EAS2_END_DATA, eas.w)); } -static Property xive2_router_properties[] = { +static const Property xive2_router_properties[] = {DEFINE_PROP_LINK ("xive-fabric" , Xive2Router, xfb, TYPE_XIVE_FABRIC, XiveFabric *),DEFINE_PROP_END_OF_LIST (),
@@ -1242,7 +1242,7 @@ static void xive2_end_source_realize(DeviceState *dev, Error **errp) (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); } -static Property xive2_end_source_properties[] = { +static const Property xive2_end_source_properties[] = {DEFINE_PROP_UINT32 ("nr-ends" , Xive2EndSource, nr_ends,0 ),DEFINE_PROP_UINT32 ("shift" , Xive2EndSource, esb_shift,XIVE_ESB_64K ), DEFINE_PROP_LINK("xive", Xive2EndSource, xrtr, TYPE_XIVE2_ROUTER,
hw/intc/xlnx-pmu-iomod-intc.c +1 -1
@@ -474,7 +474,7 @@ static const MemoryRegionOps xlnx_pmu_io_intc_ops = { }, }; -static Property xlnx_pmu_io_intc_properties[] = { +static const Property xlnx_pmu_io_intc_properties[] = {DEFINE_PROP_UINT32 ("intc-intr-size" , XlnxPMUIOIntc, cfg.intr_size,0 ),DEFINE_PROP_UINT32 ("intc-level-edge" , XlnxPMUIOIntc, cfg.level_edge,0 ),DEFINE_PROP_UINT32 ("intc-positive" , XlnxPMUIOIntc, cfg.positive,0 ),
Signature · 1 line
2.43.0
[PULL 11/67] hw/9pfs: Constify all Property
In reply to Richard Henderson--- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p-device.c +1 -1
@@ -243,7 +243,7 @@ static const VMStateDescription vmstate_virtio_9p = { }, }; -static Property virtio_9p_properties[] = { +static const Property virtio_9p_properties[] = {DEFINE_PROP_STRING ("mount_tag" , V9fsVirtioState, state.fsconf.tag),DEFINE_PROP_STRING ("fsdev" , V9fsVirtioState, state.fsconf.fsdev_id),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 10/67] cpu-target: Constify all Property
In reply to Richard Henderson--- cpu-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cpu-target.c +1 -1
@@ -183,7 +183,7 @@ void cpu_exec_unrealizefn(CPUState *cpu)* This can't go in hw/core/cpu.c because that file is compiled only * once for both user-mode and system builds. */ -static Property cpu_common_props[] = { +static const Property cpu_common_props[] = { #ifdef CONFIG_USER_ONLY/* * Create a property for the user-only object, so users can
Signature · 1 line
2.43.0
[PULL 38/67] hw/misc/xlnx-versal-trng: Constify trng_props
In reply to Richard HendersonUse DEFINE_PROP_UNSIGNED instead of DEFINE_PROP_UINT64 so that we can set the PropertyInfo during initialization, instead of updating within trng_class_init.
--- hw/misc/xlnx-versal-trng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
hw/misc/xlnx-versal-trng.c +3 -3
@@ -660,8 +660,9 @@ static const PropertyInfo trng_prop_fault_events = {static PropertyInfo trng_prop_uint64;/* to extend qdev_prop_uint64 */ -static Property trng_props[] = { -DEFINE_PROP_UINT64 ("forced-prng" , XlnxVersalTRng, forced_prng_seed,0 ), +static const Property trng_props[] = { +DEFINE_PROP_UNSIGNED ("forced-prng" , XlnxVersalTRng, forced_prng_seed, +0 , trng_prop_uint64, uint64_t),DEFINE_PROP_UINT32 ("hw-version" , XlnxVersalTRng, hw_version,0x0200 ),DEFINE_PROP ("fips-fault-events" , XlnxVersalTRng, forced_faults, trng_prop_fault_events, uint32_t),
@@ -694,7 +695,6 @@ static void trng_class_init(ObjectClass *klass, void *data)/* Clone uint64 property with set allowed after realized */ trng_prop_uint64 = qdev_prop_uint64; trng_prop_uint64.realized_set_allowed = true; - trng_props[0 ].info = &trng_prop_uint64;device_class_set_props (dc, trng_props); }
Signature · 1 line
2.43.0
[PULL 12/67] hw/acpi: Constify all Property
In reply to Richard Henderson--- hw/acpi/erst.c | 2 +- hw/acpi/generic_event_device.c | 2 +- hw/acpi/piix4.c | 2 +- hw/acpi/vmgenid.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
hw/acpi/erst.c +1 -1
@@ -1011,7 +1011,7 @@ static void erst_reset(DeviceState *dev)trace_acpi_erst_reset_out (le32_to_cpu (s->header->record_count)); } -static Property erst_properties[] = { +static const Property erst_properties[] = {DEFINE_PROP_LINK (ACPI_ERST_MEMDEV_PROP , ERSTDeviceState, hostmem, TYPE_MEMORY_BACKEND, HostMemoryBackend *), DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState,
hw/acpi/generic_event_device.c +1 -1
@@ -316,7 +316,7 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev)qemu_irq_pulse (s->irq); } -static Property acpi_ged_properties[] = { +static const Property acpi_ged_properties[] = {DEFINE_PROP_UINT32 ("ged-event" , AcpiGedState, ged_event_bitmap,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/acpi/piix4.c +1 -1
@@ -602,7 +602,7 @@ static void piix4_send_gpe(AcpiDeviceIf *adev, AcpiEventStatusBits ev)acpi_send_gpe_event (&s->ar, s->irq, ev); } -static Property piix4_pm_properties[] = { +static const Property piix4_pm_properties[] = {DEFINE_PROP_UINT32 ("smb_io_base" , PIIX4PMState, smb_io_base,0 ),DEFINE_PROP_UINT8 (ACPI_PM_PROP_S3_DISABLED , PIIX4PMState, disable_s3,0 ),DEFINE_PROP_UINT8 (ACPI_PM_PROP_S4_DISABLED , PIIX4PMState, disable_s4,0 ),
hw/acpi/vmgenid.c +1 -1
@@ -214,7 +214,7 @@ static void vmgenid_realize(DeviceState *dev, Error **errp)vmgenid_update_guest (vms); } -static Property vmgenid_device_properties[] = { +static const Property vmgenid_device_properties[] = {DEFINE_PROP_UUID (VMGENID_GUID , VmGenIdState, guid),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 30/67] hw/input: Constify all Property
In reply to Richard Henderson--- hw/input/pckbd.c | 4 ++-- hw/input/stellaris_gamepad.c | 2 +- hw/input/virtio-input-hid.c | 6 +++--- hw/input/virtio-input-host.c | 2 +- hw/input/virtio-input.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
hw/input/pckbd.c +2 -2
@@ -735,7 +735,7 @@ static void i8042_mmio_init(Object *obj) "ps2-mouse-input-irq", 1); } -static Property i8042_mmio_properties[] = { +static const Property i8042_mmio_properties[] = {DEFINE_PROP_UINT64 ("mask" , MMIOKBDState, kbd.mask,UINT64_MAX ),DEFINE_PROP_UINT32 ("size" , MMIOKBDState, size,-1 ),DEFINE_PROP_END_OF_LIST (),
@@ -933,7 +933,7 @@ static void i8042_build_aml(AcpiDevAmlIf *adev, Aml *scope)aml_append (scope, mou); } -static Property i8042_properties[] = { +static const Property i8042_properties[] = {DEFINE_PROP_BOOL ("extended-state" , ISAKBDState, kbd.extended_state, true),DEFINE_PROP_BOOL ("kbd-throttle" , ISAKBDState, kbd_throttle, false),DEFINE_PROP_UINT8 ("kbd-irq" , ISAKBDState, kbd_irq,1 ),
hw/input/stellaris_gamepad.c +1 -1
@@ -77,7 +77,7 @@ static void stellaris_gamepad_reset_enter(Object *obj, ResetType type)memset (s->pressed,0 , s->num_buttons *sizeof (uint8_t )); } -static Property stellaris_gamepad_properties[] = { +static const Property stellaris_gamepad_properties[] = {DEFINE_PROP_ARRAY ("keycodes" , StellarisGamepad, num_buttons, keycodes, qdev_prop_uint32, uint32_t),DEFINE_PROP_END_OF_LIST (),
hw/input/virtio-input-hid.c +3 -3
@@ -237,7 +237,7 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput, } } -static Property virtio_input_hid_properties[] = { +static const Property virtio_input_hid_properties[] = {DEFINE_PROP_STRING ("display" , VirtIOInputHID, display),DEFINE_PROP_UINT32 ("head" , VirtIOInputHID, head,0 ),DEFINE_PROP_END_OF_LIST (),
@@ -380,7 +380,7 @@ static struct virtio_input_config virtio_mouse_config_v2[] = { { /* end of list */ }, }; -static Property virtio_mouse_properties[] = { +static const Property virtio_mouse_properties[] = {DEFINE_PROP_BOOL ("wheel-axis" , VirtIOInputHID, wheel_axis, true),DEFINE_PROP_END_OF_LIST (), };
@@ -505,7 +505,7 @@ static struct virtio_input_config virtio_tablet_config_v2[] = { { /* end of list */ }, }; -static Property virtio_tablet_properties[] = { +static const Property virtio_tablet_properties[] = {DEFINE_PROP_BOOL ("wheel-axis" , VirtIOInputHID, wheel_axis, true),DEFINE_PROP_END_OF_LIST (), };
hw/input/virtio-input-host.c +1 -1
@@ -221,7 +221,7 @@ static const VMStateDescription vmstate_virtio_input_host = { .unmigratable = 1, }; -static Property virtio_input_host_properties[] = { +static const Property virtio_input_host_properties[] = {DEFINE_PROP_STRING ("evdev" , VirtIOInputHost, evdev),DEFINE_PROP_END_OF_LIST (), };
hw/input/virtio-input.c +1 -1
@@ -300,7 +300,7 @@ static const VMStateDescription vmstate_virtio_input = { .post_load = virtio_input_post_load, }; -static Property virtio_input_properties[] = { +static const Property virtio_input_properties[] = {DEFINE_PROP_STRING ("serial" , VirtIOInput, serial),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 13/67] hw/adc: Constify all Property
In reply to Richard Henderson--- hw/adc/aspeed_adc.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/adc/aspeed_adc.c +1 -1
@@ -286,7 +286,7 @@ static const VMStateDescription vmstate_aspeed_adc_engine = { } }; -static Property aspeed_adc_engine_properties[] = { +static const Property aspeed_adc_engine_properties[] = {DEFINE_PROP_UINT32 ("engine-id" , AspeedADCEngineState, engine_id,0 ),DEFINE_PROP_UINT32 ("nr-channels" , AspeedADCEngineState, nr_channels,0 ),DEFINE_PROP_END_OF_LIST (),
hw/adc/npcm7xx_adc.c +1 -1
@@ -267,7 +267,7 @@ static const VMStateDescription vmstate_npcm7xx_adc = { }, }; -static Property npcm7xx_timer_properties[] = { +static const Property npcm7xx_timer_properties[] = {DEFINE_PROP_UINT32 ("iref" , NPCM7xxADCState, iref,NPCM7XX_ADC_DEFAULT_IREF ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 09/67] target/sparc: Constify all Property and PropertyInfo
In reply to Richard Henderson--- target/sparc/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/sparc/cpu.c +2 -2
@@ -874,14 +874,14 @@ static void sparc_set_nwindows(Object *obj, Visitor *v, const char *name, cpu->env.def.nwindows = value; } -static PropertyInfo qdev_prop_nwindows = { +static const PropertyInfo qdev_prop_nwindows = { .name ="int" , .get = sparc_get_nwindows, .set = sparc_set_nwindows, };/* This must match feature_name[]. */ -static Property sparc_cpu_properties[] = { +static const Property sparc_cpu_properties[] = {DEFINE_PROP_BIT ("float128" ,SPARCCPU , env.def.features,CPU_FEATURE_BIT_FLOAT128 , false), #ifdef TARGET_SPARC64
Signature · 1 line
2.43.0
[PULL 28/67] hw/i386: Constify all Property
In reply to Richard Henderson--- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 2 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/sgx-epc.c | 2 +- hw/i386/vmmouse.c | 2 +- hw/i386/vmport.c | 2 +- hw/i386/x86-iommu.c | 2 +- hw/i386/xen/xen_pvdevice.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
hw/i386/amd_iommu.c +1 -1
@@ -1668,7 +1668,7 @@ static void amdvi_sysbus_realize(DeviceState *dev, Error **errp)amdvi_init (s); } -static Property amdvi_properties[] = { +static const Property amdvi_properties[] = {DEFINE_PROP_BOOL ("xtsup" , AMDVIState, xtsup, false),DEFINE_PROP_END_OF_LIST (), };
hw/i386/intel_iommu.c +1 -1
@@ -3404,7 +3404,7 @@ static const MemoryRegionOps vtd_mem_ops = { }, }; -static Property vtd_properties[] = { +static const Property vtd_properties[] = {DEFINE_PROP_UINT32 ("version" , IntelIOMMUState, version,0 ),DEFINE_PROP_ON_OFF_AUTO ("eim" , IntelIOMMUState, intr_eim,ON_OFF_AUTO_AUTO ),
hw/i386/kvm/clock.c +1 -1
@@ -305,7 +305,7 @@ static const VMStateDescription kvmclock_vmsd = { } }; -static Property kvmclock_properties[] = { +static const Property kvmclock_properties[] = {DEFINE_PROP_BOOL ("x-mach-use-reliable-get-clock" , KVMClockState, mach_use_reliable_get_clock, true),DEFINE_PROP_END_OF_LIST (),
hw/i386/kvm/i8254.c +1 -1
@@ -287,7 +287,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp) kpc->parent_realize (dev, errp); } -static Property kvm_pit_properties[] = { +static const Property kvm_pit_properties[] = {DEFINE_PROP_LOSTTICKPOLICY ("lost_tick_policy" , KVMPITState, lost_tick_policy,LOST_TICK_POLICY_DELAY ),DEFINE_PROP_END_OF_LIST (),
hw/i386/kvm/ioapic.c +1 -1
@@ -133,7 +133,7 @@ static void kvm_ioapic_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, kvm_ioapic_set_irq,IOAPIC_NUM_PINS ); } -static Property kvm_ioapic_properties[] = { +static const Property kvm_ioapic_properties[] = {DEFINE_PROP_UINT32 ("gsi_base" , KVMIOAPICState, kvm_gsi_base,0 ),DEFINE_PROP_END_OF_LIST () };
hw/i386/sgx-epc.c +1 -1
@@ -19,7 +19,7 @@#include "target/i386/cpu.h" #include "exec/address-spaces.h" -static Property sgx_epc_properties[] = { +static const Property sgx_epc_properties[] = {DEFINE_PROP_UINT64 (SGX_EPC_ADDR_PROP , SGXEPCDevice, addr,0 ),DEFINE_PROP_UINT32 (SGX_EPC_NUMA_NODE_PROP , SGXEPCDevice, node,0 ), DEFINE_PROP_LINK(SGX_EPC_MEMDEV_PROP, SGXEPCDevice, hostmem,
hw/i386/vmmouse.c +1 -1
@@ -317,7 +317,7 @@ static void vmmouse_realizefn(DeviceState *dev, Error **errp)vmport_register (VMPORT_CMD_VMMOUSE_DATA , vmmouse_ioport_read, s); } -static Property vmmouse_properties[] = { +static const Property vmmouse_properties[] = { DEFINE_PROP_LINK("i8042", VMMouseState, i8042, TYPE_I8042, ISAKBDState *),DEFINE_PROP_END_OF_LIST (), };
hw/i386/vmport.c +1 -1
@@ -252,7 +252,7 @@ static void vmport_realizefn(DeviceState *dev, Error **errp) } } -static Property vmport_properties[] = { +static const Property vmport_properties[] = {/* Used to enforce compatibility for migration */ DEFINE_PROP_BIT ("x-read-set-eax" , VMPortState, compat_flags,VMPORT_COMPAT_READ_SET_EAX_BIT , true),
hw/i386/x86-iommu.c +1 -1
@@ -125,7 +125,7 @@ static void x86_iommu_realize(DeviceState *dev, Error **errp) } } -static Property x86_iommu_properties[] = { +static const Property x86_iommu_properties[] = {DEFINE_PROP_ON_OFF_AUTO ("intremap" , X86IOMMUState, intr_supported,ON_OFF_AUTO_AUTO ),DEFINE_PROP_BOOL ("device-iotlb" , X86IOMMUState, dt_supported, false),
hw/i386/xen/xen_pvdevice.c +1 -1
@@ -115,7 +115,7 @@ static void xen_pv_realize(PCIDevice *pci_dev, Error **errp) &d->mmio); } -static Property xen_pv_props[] = { +static const Property xen_pv_props[] = {DEFINE_PROP_UINT16 ("vendor-id" , XenPVDevice, vendor_id,PCI_VENDOR_ID_XEN ),DEFINE_PROP_UINT16 ("device-id" , XenPVDevice, device_id,0xffff ),DEFINE_PROP_UINT8 ("revision" , XenPVDevice, revision,0x01 ),
Signature · 1 line
2.43.0
[PULL 41/67] hw/nubus: Constify all Property
In reply to Richard Henderson--- hw/nubus/nubus-bridge.c | 2 +- hw/nubus/nubus-device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/nubus/nubus-bridge.c +1 -1
@@ -23,7 +23,7 @@ static void nubus_bridge_init(Object *obj)qdev_init_gpio_out (DEVICE (s), bus->irqs,NUBUS_IRQS ); } -static Property nubus_bridge_properties[] = { +static const Property nubus_bridge_properties[] = {DEFINE_PROP_UINT16 ("slot-available-mask" , NubusBridge, bus.slot_available_mask,0xffff ),DEFINE_PROP_END_OF_LIST ()
hw/nubus/nubus-device.c +1 -1
@@ -107,7 +107,7 @@ static void nubus_device_realize(DeviceState *dev, Error **errp) } } -static Property nubus_device_properties[] = { +static const Property nubus_device_properties[] = {DEFINE_PROP_INT32 ("slot" , NubusDevice, slot,-1 ),DEFINE_PROP_STRING ("romfile" , NubusDevice, romfile),DEFINE_PROP_END_OF_LIST ()
Signature · 1 line
2.43.0
[PULL 44/67] hw/pci-bridge: Constify all Property
In reply to Richard Henderson--- hw/pci-bridge/cxl_downstream.c | 2 +- hw/pci-bridge/cxl_root_port.c | 2 +- hw/pci-bridge/cxl_upstream.c | 2 +- hw/pci-bridge/gen_pcie_root_port.c | 2 +- hw/pci-bridge/pci_bridge_dev.c | 2 +- hw/pci-bridge/pci_expander_bridge.c | 4 ++-- hw/pci-bridge/pcie_pci_bridge.c | 2 +- hw/pci-bridge/pcie_root_port.c | 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-)
hw/pci-bridge/cxl_downstream.c +1 -1
@@ -212,7 +212,7 @@ static void cxl_dsp_exitfn(PCIDevice *d)pci_bridge_exitfn (d); } -static Property cxl_dsp_props[] = { +static const Property cxl_dsp_props[] = {DEFINE_PROP_PCIE_LINK_SPEED ("x-speed" , PCIESlot, speed,PCIE_LINK_SPEED_64 ), DEFINE_PROP_PCIE_LINK_WIDTH("x-width", PCIESlot,
hw/pci-bridge/cxl_root_port.c +1 -1
@@ -199,7 +199,7 @@ static void cxl_rp_reset_hold(Object *obj, ResetType type)latch_registers (crp); } -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = {DEFINE_PROP_UINT32 ("bus-reserve" , CXLRootPort, res_reserve.bus,-1 ),DEFINE_PROP_SIZE ("io-reserve" , CXLRootPort, res_reserve.io,-1 ),DEFINE_PROP_SIZE ("mem-reserve" , CXLRootPort, res_reserve.mem_non_pref,-1 ),
hw/pci-bridge/cxl_upstream.c +1 -1
@@ -362,7 +362,7 @@ static void cxl_usp_exitfn(PCIDevice *d)pci_bridge_exitfn (d); } -static Property cxl_upstream_props[] = { +static const Property cxl_upstream_props[] = {DEFINE_PROP_UINT64 ("sn" , CXLUpstreamPort, sn,UI64_NULL ),DEFINE_PROP_STRING ("cdat" , CXLUpstreamPort, cxl_cstate.cdat.filename), DEFINE_PROP_PCIE_LINK_SPEED("x-speed", CXLUpstreamPort,
hw/pci-bridge/gen_pcie_root_port.c +1 -1
@@ -128,7 +128,7 @@ static const VMStateDescription vmstate_rp_dev = { } }; -static Property gen_rp_props[] = { +static const Property gen_rp_props[] = {DEFINE_PROP_BOOL ("x-migrate-msix" , GenPCIERootPort, migrate_msix, true), DEFINE_PROP_UINT32("bus-reserve", GenPCIERootPort,
hw/pci-bridge/pci_bridge_dev.c +1 -1
@@ -168,7 +168,7 @@ static void qdev_pci_bridge_dev_reset(DeviceState *qdev) } } -static Property pci_bridge_dev_properties[] = { +static const Property pci_bridge_dev_properties[] = {/* Note: 0 is not a legal chassis number. */ DEFINE_PROP_UINT8 (PCI_BRIDGE_DEV_PROP_CHASSIS_NR , PCIBridgeDev, chassis_nr,0 ),
hw/pci-bridge/pci_expander_bridge.c +2 -2
@@ -420,7 +420,7 @@ static void pxb_dev_exitfn(PCIDevice *pci_dev) pxb_dev_list =g_list_remove (pxb_dev_list, pxb); } -static Property pxb_dev_properties[] = { +static const Property pxb_dev_properties[] = {/* Note: 0 is not a legal PXB bus number. */ DEFINE_PROP_UINT8 ("bus_nr" , PXBDev, bus_nr,0 ),DEFINE_PROP_UINT16 ("numa_node" , PXBDev, numa_node,NUMA_NODE_UNASSIGNED ),
@@ -507,7 +507,7 @@ static void pxb_cxl_dev_realize(PCIDevice *dev, Error **errp)pxb_cxl_dev_reset (DEVICE (dev)); } -static Property pxb_cxl_dev_properties[] = { +static const Property pxb_cxl_dev_properties[] = {DEFINE_PROP_BOOL ("hdm_for_passthrough" , PXBCXLDev, hdm_for_passthrough, false),DEFINE_PROP_END_OF_LIST (), };
hw/pci-bridge/pcie_pci_bridge.c +1 -1
@@ -124,7 +124,7 @@ static void pcie_pci_bridge_write_config(PCIDevice *d,shpc_cap_write_config (d, address, val, len); } -static Property pcie_pci_bridge_dev_properties[] = { +static const Property pcie_pci_bridge_dev_properties[] = {DEFINE_PROP_ON_OFF_AUTO ("msi" , PCIEPCIBridge, msi,ON_OFF_AUTO_AUTO ),DEFINE_PROP_END_OF_LIST (), };
hw/pci-bridge/pcie_root_port.c +1 -1
@@ -148,7 +148,7 @@ static void rp_exit(PCIDevice *d)pci_bridge_exitfn (d); } -static Property rp_props[] = { +static const Property rp_props[] = {DEFINE_PROP_BIT (COMPAT_PROP_PCP , PCIDevice, cap_present,QEMU_PCIE_SLTCAP_PCP_BITNR , true),DEFINE_PROP_BOOL ("disable-acs" , PCIESlot, disable_acs, false),
hw/pci-bridge/xio3130_downstream.c +1 -1
@@ -134,7 +134,7 @@ static void xio3130_downstream_exitfn(PCIDevice *d)pci_bridge_exitfn (d); } -static Property xio3130_downstream_props[] = { +static const Property xio3130_downstream_props[] = {DEFINE_PROP_BIT (COMPAT_PROP_PCP , PCIDevice, cap_present,QEMU_PCIE_SLTCAP_PCP_BITNR , true),DEFINE_PROP_END_OF_LIST ()
Signature · 1 line
2.43.0
[PULL 17/67] hw/block/xen-block: Unexport PropertyInfo
In reply to Richard Hendersonxen_block_prop_vdev is not used outside the file.
--- hw/block/xen-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/xen-block.c +1 -1
@@ -659,7 +659,7 @@ invalid:* * https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html */ -const PropertyInfo xen_block_prop_vdev = { +static const PropertyInfo xen_block_prop_vdev = { .name ="str" , .description ="Virtual Disk specifier: d*p*/xvd*/hd*/sd*" , .get = xen_block_get_vdev,
Signature · 1 line
2.43.0
[PULL 36/67] hw/mem: Constify all Property
In reply to Richard Henderson--- hw/mem/cxl_type3.c | 2 +- hw/mem/nvdimm.c | 2 +- hw/mem/pc-dimm.c | 2 +- hw/mem/sparse-mem.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
hw/mem/cxl_type3.c +1 -1
@@ -1216,7 +1216,7 @@ static void ct3d_reset(DeviceState *dev) } -static Property ct3_props[] = { +static const Property ct3_props[] = {DEFINE_PROP_LINK ("memdev" , CXLType3Dev, hostmem,TYPE_MEMORY_BACKEND , HostMemoryBackend *), /* for backward compatibility */ DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem,
hw/mem/nvdimm.c +1 -1
@@ -246,7 +246,7 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm, const void *buf,memory_region_set_dirty (mr, backend_offset, size); } -static Property nvdimm_properties[] = { +static const Property nvdimm_properties[] = {DEFINE_PROP_BOOL (NVDIMM_UNARMED_PROP , NVDIMMDevice, unarmed, false),DEFINE_PROP_END_OF_LIST (), };
hw/mem/pc-dimm.c +1 -1
@@ -150,7 +150,7 @@ out:return slot; } -static Property pc_dimm_properties[] = { +static const Property pc_dimm_properties[] = {DEFINE_PROP_UINT64 (PC_DIMM_ADDR_PROP , PCDIMMDevice, addr,0 ),DEFINE_PROP_UINT32 (PC_DIMM_NODE_PROP , PCDIMMDevice, node,0 ), DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
hw/mem/sparse-mem.c +1 -1
@@ -96,7 +96,7 @@ static const MemoryRegionOps sparse_mem_ops = { }, }; -static Property sparse_mem_properties[] = { +static const Property sparse_mem_properties[] = {/* The base address of the memory */ DEFINE_PROP_UINT64 ("baseaddr" , SparseMemState, baseaddr,0x0 ),/* The length of the sparse memory region */
Signature · 1 line
2.43.0
[PULL 53/67] hw/scsi: Constify all Property
In reply to Richard Henderson--- hw/scsi/megasas.c | 6 +++--- hw/scsi/mptsas.c | 2 +- hw/scsi/scsi-bus.c | 2 +- hw/scsi/scsi-disk.c | 6 +++--- hw/scsi/scsi-generic.c | 2 +- hw/scsi/spapr_vscsi.c | 2 +- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/scsi/virtio-scsi.c | 2 +- hw/scsi/vmw_pvscsi.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-)
hw/scsi/megasas.c +3 -3
@@ -2448,7 +2448,7 @@ static void megasas_scsi_realize(PCIDevice *dev, Error **errp)scsi_bus_init (&s->bus,sizeof (s->bus),DEVICE (dev), &megasas_scsi_info); } -static Property megasas_properties_gen1[] = { +static const Property megasas_properties_gen1[] = {DEFINE_PROP_UINT32 ("max_sge" , MegasasState, fw_sge,MEGASAS_DEFAULT_SGE ), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
@@ -2462,7 +2462,7 @@ static Property megasas_properties_gen1[] = { DEFINE_PROP_END_OF_LIST(), }; -static Property megasas_properties_gen2[] = { +static const Property megasas_properties_gen2[] = {DEFINE_PROP_UINT32 ("max_sge" , MegasasState, fw_sge,MEGASAS_DEFAULT_SGE ), DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
@@ -2487,7 +2487,7 @@ typedef struct MegasasInfo {int mmio_bar;int osts;const VMStateDescription *vmsd; -Property *props; +const Property *props;InterfaceInfo *interfaces; } MegasasInfo;
hw/scsi/mptsas.c +1 -1
@@ -1410,7 +1410,7 @@ static const VMStateDescription vmstate_mptsas = { } }; -static Property mptsas_properties[] = { +static const Property mptsas_properties[] = {DEFINE_PROP_UINT64 ("sas_address" , MPTSASState, sas_addr,0 ),/* TODO: test MSI support under Windows */ DEFINE_PROP_ON_OFF_AUTO ("msi" , MPTSASState, msi,ON_OFF_AUTO_AUTO ),
hw/scsi/scsi-bus.c +1 -1
@@ -1943,7 +1943,7 @@ const VMStateDescription vmstate_scsi_device = { } }; -static Property scsi_props[] = { +static const Property scsi_props[] = {DEFINE_PROP_UINT32 ("channel" , SCSIDevice, channel,0 ),DEFINE_PROP_UINT32 ("scsi-id" , SCSIDevice, id,-1 ),DEFINE_PROP_UINT32 ("lun" , SCSIDevice, lun,-1 ),
hw/scsi/scsi-disk.c +3 -3
@@ -3207,7 +3207,7 @@ static const TypeInfo scsi_disk_base_info = { DEFINE_PROP_BOOL("migrate-emulated-scsi-request", SCSIDiskState, migrate_emulated_scsi_request, true) -static Property scsi_hd_properties[] = { +static const Property scsi_hd_properties[] = {DEFINE_SCSI_DISK_PROPERTIES (),DEFINE_PROP_BIT ("removable" , SCSIDiskState, features,SCSI_DISK_F_REMOVABLE , false),
@@ -3267,7 +3267,7 @@ static const TypeInfo scsi_hd_info = { .class_init = scsi_hd_class_initfn, }; -static Property scsi_cd_properties[] = { +static const Property scsi_cd_properties[] = {DEFINE_SCSI_DISK_PROPERTIES (),DEFINE_PROP_UINT64 ("wwn" , SCSIDiskState, qdev.wwn,0 ),DEFINE_PROP_UINT64 ("port_wwn" , SCSIDiskState, qdev.port_wwn,0 ),
@@ -3310,7 +3310,7 @@ static const TypeInfo scsi_cd_info = { };#ifdef __linux__ -static Property scsi_block_properties[] = { +static const Property scsi_block_properties[] = {DEFINE_BLOCK_ERROR_PROPERTIES (SCSIDiskState, qdev.conf),DEFINE_PROP_DRIVE ("drive" , SCSIDiskState, qdev.conf.blk), DEFINE_PROP_BOOL("share-rw", SCSIDiskState, qdev.conf.share_rw, false),
hw/scsi/scsi-generic.c +1 -1
@@ -772,7 +772,7 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,return scsi_req_alloc (&scsi_generic_req_ops, d, tag, lun, hba_private); } -static Property scsi_generic_properties[] = { +static const Property scsi_generic_properties[] = {DEFINE_PROP_DRIVE ("drive" , SCSIDevice, conf.blk),DEFINE_PROP_BOOL ("share-rw" , SCSIDevice, conf.share_rw, false), DEFINE_PROP_UINT32("io_timeout", SCSIDevice, io_timeout,
hw/scsi/spapr_vscsi.c +1 -1
@@ -1250,7 +1250,7 @@ static int spapr_vscsi_devnode(SpaprVioDevice *dev, void *fdt, int node_off)return 0 ; } -static Property spapr_vscsi_properties[] = { +static const Property spapr_vscsi_properties[] = {DEFINE_SPAPR_PROPERTIES (VSCSIState, vdev),DEFINE_PROP_END_OF_LIST (), };
hw/scsi/vhost-scsi.c +1 -1
@@ -343,7 +343,7 @@ static struct vhost_dev *vhost_scsi_get_vhost(VirtIODevice *vdev)return &vsc->dev; } -static Property vhost_scsi_properties[] = { +static const Property vhost_scsi_properties[] = {DEFINE_PROP_STRING ("vhostfd" , VirtIOSCSICommon, conf.vhostfd),DEFINE_PROP_STRING ("wwpn" , VirtIOSCSICommon, conf.wwpn),DEFINE_PROP_UINT32 ("boot_tpgt" , VirtIOSCSICommon, conf.boot_tpgt,0 ),
hw/scsi/vhost-user-scsi.c +1 -1
@@ -341,7 +341,7 @@ static void vhost_user_scsi_unrealize(DeviceState *dev)virtio_scsi_common_unrealize (dev); } -static Property vhost_user_scsi_properties[] = { +static const Property vhost_user_scsi_properties[] = {DEFINE_PROP_CHR ("chardev" , VirtIOSCSICommon, conf.chardev),DEFINE_PROP_UINT32 ("boot_tpgt" , VirtIOSCSICommon, conf.boot_tpgt,0 ), DEFINE_PROP_UINT32("num_queues", VirtIOSCSICommon, conf.num_queues,
hw/scsi/virtio-scsi.c +1 -1
@@ -1285,7 +1285,7 @@ static void virtio_scsi_device_unrealize(DeviceState *dev)qemu_mutex_destroy (&s->tmf_bh_lock); } -static Property virtio_scsi_properties[] = { +static const Property virtio_scsi_properties[] = {DEFINE_PROP_UINT32 ("num_queues" , VirtIOSCSI, parent_obj.conf.num_queues,VIRTIO_SCSI_AUTO_NUM_QUEUES ), DEFINE_PROP_UINT32("virtqueue_size", VirtIOSCSI,
hw/scsi/vmw_pvscsi.c +1 -1
@@ -1296,7 +1296,7 @@ static const VMStateDescription vmstate_pvscsi = { } }; -static Property pvscsi_properties[] = { +static const Property pvscsi_properties[] = {DEFINE_PROP_UINT8 ("use_msg" , PVSCSIState, use_msg,1 ),DEFINE_PROP_BIT ("x-old-pci-configuration" , PVSCSIState, compat_flags,PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT , false),
Signature · 1 line
2.43.0
[PULL 57/67] hw/ssi: Constify all Property
In reply to Richard Henderson--- hw/ssi/aspeed_smc.c | 4 ++-- hw/ssi/ibex_spi_host.c | 2 +- hw/ssi/npcm7xx_fiu.c | 2 +- hw/ssi/pnv_spi.c | 2 +- hw/ssi/sifive_spi.c | 2 +- hw/ssi/ssi.c | 2 +- hw/ssi/xilinx_spi.c | 2 +- hw/ssi/xilinx_spips.c | 4 ++-- hw/ssi/xlnx-versal-ospi.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
hw/ssi/aspeed_smc.c +2 -2
@@ -1287,7 +1287,7 @@ static const VMStateDescription vmstate_aspeed_smc = { } }; -static Property aspeed_smc_properties[] = { +static const Property aspeed_smc_properties[] = {DEFINE_PROP_BOOL ("inject-failure" , AspeedSMCState, inject_failure, false),DEFINE_PROP_UINT64 ("dram-base" , AspeedSMCState, dram_base,0 ), DEFINE_PROP_LINK("dram", AspeedSMCState, dram_mr,
@@ -1336,7 +1336,7 @@ static void aspeed_smc_flash_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (SYS_BUS_DEVICE (dev), &s->mmio); } -static Property aspeed_smc_flash_properties[] = { +static const Property aspeed_smc_flash_properties[] = {DEFINE_PROP_UINT8 ("cs" , AspeedSMCFlash, cs,0 ),DEFINE_PROP_LINK ("controller" , AspeedSMCFlash, controller,TYPE_ASPEED_SMC , AspeedSMCState *),
hw/ssi/ibex_spi_host.c +1 -1
@@ -561,7 +561,7 @@ static const MemoryRegionOps ibex_spi_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; -static Property ibex_spi_properties[] = { +static const Property ibex_spi_properties[] = {DEFINE_PROP_UINT32 ("num_cs" , IbexSPIHostState, num_cs,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/ssi/npcm7xx_fiu.c +1 -1
@@ -541,7 +541,7 @@ static const VMStateDescription vmstate_npcm7xx_fiu = { }, }; -static Property npcm7xx_fiu_properties[] = { +static const Property npcm7xx_fiu_properties[] = {DEFINE_PROP_INT32 ("cs-count" , NPCM7xxFIUState, cs_count,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/ssi/pnv_spi.c +1 -1
@@ -1195,7 +1195,7 @@ static const MemoryRegionOps pnv_spi_xscom_ops = { .endianness = DEVICE_BIG_ENDIAN, }; -static Property pnv_spi_properties[] = { +static const Property pnv_spi_properties[] = {DEFINE_PROP_UINT32 ("spic_num" , PnvSpi, spic_num,0 ),DEFINE_PROP_UINT8 ("transfer_len" , PnvSpi, transfer_len,4 ),DEFINE_PROP_END_OF_LIST (),
hw/ssi/sifive_spi.c +1 -1
@@ -328,7 +328,7 @@ static void sifive_spi_realize(DeviceState *dev, Error **errp)fifo8_create (&s->rx_fifo,FIFO_CAPACITY ); } -static Property sifive_spi_properties[] = { +static const Property sifive_spi_properties[] = {DEFINE_PROP_UINT32 ("num-cs" , SiFiveSPIState, num_cs,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/ssi/ssi.c +1 -1
@@ -108,7 +108,7 @@ static void ssi_peripheral_realize(DeviceState *dev, Error **errp) ssc->realize (s, errp); } -static Property ssi_peripheral_properties[] = { +static const Property ssi_peripheral_properties[] = {DEFINE_PROP_UINT8 ("cs" , SSIPeripheral, cs_index,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/ssi/xilinx_spi.c +1 -1
@@ -361,7 +361,7 @@ static const VMStateDescription vmstate_xilinx_spi = { } }; -static Property xilinx_spi_properties[] = { +static const Property xilinx_spi_properties[] = {DEFINE_PROP_UINT8 ("num-ss-bits" , XilinxSPI, num_cs,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/ssi/xilinx_spips.c +2 -2
@@ -1420,12 +1420,12 @@ static const VMStateDescription vmstate_xlnx_zynqmp_qspips = { } }; -static Property xilinx_zynqmp_qspips_properties[] = { +static const Property xilinx_zynqmp_qspips_properties[] = {DEFINE_PROP_UINT32 ("dma-burst-size" , XlnxZynqMPQSPIPS, dma_burst_size,64 ),DEFINE_PROP_END_OF_LIST (), }; -static Property xilinx_spips_properties[] = { +static const Property xilinx_spips_properties[] = {DEFINE_PROP_UINT8 ("num-busses" , XilinxSPIPS, num_busses,1 ),DEFINE_PROP_UINT8 ("num-ss-bits" , XilinxSPIPS, num_cs,4 ),DEFINE_PROP_UINT8 ("num-txrx-bytes" , XilinxSPIPS, num_txrx_bytes,1 ),
hw/ssi/xlnx-versal-ospi.c +1 -1
@@ -1825,7 +1825,7 @@ static const VMStateDescription vmstate_xlnx_versal_ospi = { } }; -static Property xlnx_versal_ospi_properties[] = { +static const Property xlnx_versal_ospi_properties[] = {DEFINE_PROP_BOOL ("dac-with-indac" , XlnxVersalOspi, dac_with_indac, false),DEFINE_PROP_BOOL ("indac-write-disabled" , XlnxVersalOspi, ind_write_disabled, false),
Signature · 1 line
2.43.0
[PULL 14/67] hw/arm: Constify all Property
In reply to Richard Henderson--- hw/arm/armsse.c | 8 ++++---- hw/arm/armv7m.c | 4 ++-- hw/arm/aspeed_soc_common.c | 2 +- hw/arm/bcm2836.c | 2 +- hw/arm/fsl-imx25.c | 2 +- hw/arm/fsl-imx6.c | 2 +- hw/arm/fsl-imx6ul.c | 2 +- hw/arm/fsl-imx7.c | 2 +- hw/arm/integratorcp.c | 2 +- hw/arm/msf2-soc.c | 2 +- hw/arm/npcm7xx.c | 2 +- hw/arm/nrf51_soc.c | 2 +- hw/arm/smmu-common.c | 2 +- hw/arm/smmuv3.c | 2 +- hw/arm/stellaris.c | 2 +- hw/arm/strongarm.c | 2 +- hw/arm/xlnx-versal.c | 2 +- hw/arm/xlnx-zynqmp.c | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-)
hw/arm/armsse.c +4 -4
@@ -72,12 +72,12 @@ struct ARMSSEInfo {bool has_cpu_pwrctrl;bool has_sse_counter;bool has_tcms; -Property *props; +const Property *props;const ARMSSEDeviceInfo *devinfo;const bool *irq_is_common; }; -static Property iotkit_properties[] = { +static const Property iotkit_properties[] = {DEFINE_PROP_LINK ("memory" ,ARMSSE , board_memory,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("EXP_NUMIRQ" ,ARMSSE , exp_numirq,64 ),
@@ -90,7 +90,7 @@ static Property iotkit_properties[] = {DEFINE_PROP_END_OF_LIST () }; -static Property sse200_properties[] = { +static const Property sse200_properties[] = {DEFINE_PROP_LINK ("memory" ,ARMSSE , board_memory,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("EXP_NUMIRQ" ,ARMSSE , exp_numirq,64 ),
@@ -107,7 +107,7 @@ static Property sse200_properties[] = {DEFINE_PROP_END_OF_LIST () }; -static Property sse300_properties[] = { +static const Property sse300_properties[] = {DEFINE_PROP_LINK ("memory" ,ARMSSE , board_memory,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("EXP_NUMIRQ" ,ARMSSE , exp_numirq,64 ),
hw/arm/armv7m.c +2 -2
@@ -538,7 +538,7 @@ static void armv7m_realize(DeviceState *dev, Error **errp) } } -static Property armv7m_properties[] = { +static const Property armv7m_properties[] = {DEFINE_PROP_STRING ("cpu-type" , ARMv7MState, cpu_type),DEFINE_PROP_LINK ("memory" , ARMv7MState, board_memory,TYPE_MEMORY_REGION , MemoryRegion *),
@@ -631,7 +631,7 @@ void armv7m_load_kernel(ARMCPU *cpu, const char *kernel_filename,qemu_register_reset (armv7m_reset, cpu); } -static Property bitband_properties[] = { +static const Property bitband_properties[] = {DEFINE_PROP_UINT32 ("base" , BitBandState, base,0 ),DEFINE_PROP_LINK ("source-memory" , BitBandState, source_memory, TYPE_MEMORY_REGION, MemoryRegion *),
hw/arm/aspeed_soc_common.c +1 -1
@@ -139,7 +139,7 @@ static bool aspeed_soc_boot_from_emmc(AspeedSoCState *s)return false; } -static Property aspeed_soc_properties[] = { +static const Property aspeed_soc_properties[] = {DEFINE_PROP_LINK ("dram" , AspeedSoCState, dram_mr,TYPE_MEMORY_REGION , MemoryRegion *), DEFINE_PROP_LINK("memory", AspeedSoCState, memory, TYPE_MEMORY_REGION,
hw/arm/bcm2836.c +1 -1
@@ -18,7 +18,7 @@#include "target/arm/cpu-qom.h" #include "target/arm/gtimer.h" -static Property bcm2836_enabled_cores_property = +static const Property bcm2836_enabled_cores_property =DEFINE_PROP_UINT32 ("enabled-cpus" , BCM283XBaseState, enabled_cpus,0 );static void bcm283x_base_init (Object *obj)
hw/arm/fsl-imx25.c +1 -1
@@ -309,7 +309,7 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp) &s->iram_alias); } -static Property fsl_imx25_properties[] = { +static const Property fsl_imx25_properties[] = {DEFINE_PROP_UINT32 ("fec-phy-num" , FslIMX25State, phy_num,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/arm/fsl-imx6.c +1 -1
@@ -481,7 +481,7 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp) &s->ocram_alias); } -static Property fsl_imx6_properties[] = { +static const Property fsl_imx6_properties[] = {DEFINE_PROP_UINT32 ("fec-phy-num" , FslIMX6State, phy_num,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/arm/fsl-imx6ul.c +1 -1
@@ -718,7 +718,7 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp) FSL_IMX6UL_OCRAM_ALIAS_ADDR, &s->ocram_alias); } -static Property fsl_imx6ul_properties[] = { +static const Property fsl_imx6ul_properties[] = {DEFINE_PROP_UINT32 ("fec1-phy-num" , FslIMX6ULState, phy_num[0 ],0 ),DEFINE_PROP_UINT32 ("fec2-phy-num" , FslIMX6ULState, phy_num[1 ],1 ), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX6ULState, phy_connected[0],
hw/arm/fsl-imx7.c +1 -1
@@ -736,7 +736,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) &s->caam); } -static Property fsl_imx7_properties[] = { +static const Property fsl_imx7_properties[] = {DEFINE_PROP_UINT32 ("fec1-phy-num" , FslIMX7State, phy_num[0 ],0 ),DEFINE_PROP_UINT32 ("fec2-phy-num" , FslIMX7State, phy_num[1 ],1 ), DEFINE_PROP_BOOL("fec1-phy-connected", FslIMX7State, phy_connected[0],
hw/arm/integratorcp.c +1 -1
@@ -694,7 +694,7 @@ static void integratorcp_machine_init(MachineClass *mc) DEFINE_MACHINE("integratorcp", integratorcp_machine_init) -static Property core_properties[] = { +static const Property core_properties[] = {DEFINE_PROP_UINT32 ("memsz" , IntegratorCMState, memsz,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/arm/msf2-soc.c +1 -1
@@ -222,7 +222,7 @@ static void m2sxxx_soc_realize(DeviceState *dev_soc, Error **errp)create_unimplemented_device ("usb" ,0x40043000 ,0x1000 ); } -static Property m2sxxx_soc_properties[] = { +static const Property m2sxxx_soc_properties[] = {/* * part name specifies the type of SmartFusion2 device variant(this * property is for information purpose only.
hw/arm/npcm7xx.c +1 -1
@@ -810,7 +810,7 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp)create_unimplemented_device ("npcm7xx.spix" ,0xfb001000 ,4 * KiB); } -static Property npcm7xx_properties[] = { +static const Property npcm7xx_properties[] = {DEFINE_PROP_LINK ("dram-mr" , NPCM7xxState, dram,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/arm/nrf51_soc.c +1 -1
@@ -208,7 +208,7 @@ static void nrf51_soc_init(Object *obj) s->sysclk =qdev_init_clock_in (DEVICE (s),"sysclk" ,NULL ,NULL ,0 ); } -static Property nrf51_soc_properties[] = { +static const Property nrf51_soc_properties[] = {DEFINE_PROP_LINK ("memory" , NRF51State, board_memory,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("sram-size" , NRF51State, sram_size,NRF51822_SRAM_SIZE ),
hw/arm/smmu-common.c +1 -1
@@ -934,7 +934,7 @@ static void smmu_base_reset_hold(Object *obj, ResetType type)g_hash_table_remove_all (s->iotlb); } -static Property smmu_dev_properties[] = { +static const Property smmu_dev_properties[] = {DEFINE_PROP_UINT8 ("bus_num" , SMMUState, bus_num,0 ),DEFINE_PROP_LINK ("primary-bus" , SMMUState, primary_bus, TYPE_PCI_BUS, PCIBus *),
hw/arm/smmuv3.c +1 -1
@@ -1976,7 +1976,7 @@ static const VMStateDescription vmstate_smmuv3 = { } }; -static Property smmuv3_properties[] = { +static const Property smmuv3_properties[] = {/* * Stages of translation advertised. * "1": Stage 1
hw/arm/stellaris.c +1 -1
@@ -438,7 +438,7 @@ static const VMStateDescription vmstate_stellaris_sys = { } }; -static Property stellaris_sys_properties[] = { +static const Property stellaris_sys_properties[] = {DEFINE_PROP_UINT32 ("user0" , ssys_state, user0,0 ),DEFINE_PROP_UINT32 ("user1" , ssys_state, user1,0 ),DEFINE_PROP_UINT32 ("did0" , ssys_state, did0,0 ),
hw/arm/strongarm.c +1 -1
@@ -1332,7 +1332,7 @@ static const VMStateDescription vmstate_strongarm_uart_regs = { }, }; -static Property strongarm_uart_properties[] = { +static const Property strongarm_uart_properties[] = {DEFINE_PROP_CHR ("chardev" , StrongARMUARTState, chr),DEFINE_PROP_END_OF_LIST (), };
hw/arm/xlnx-versal.c +1 -1
@@ -968,7 +968,7 @@ static void versal_init(Object *obj) "mr-rpu-ps-alias", &s->mr_ps, 0, UINT64_MAX); } -static Property versal_properties[] = { +static const Property versal_properties[] = {DEFINE_PROP_LINK ("ddr" , Versal, cfg.mr_ddr,TYPE_MEMORY_REGION , MemoryRegion *), DEFINE_PROP_LINK("canbus0", Versal, lpd.iou.canbus[0],
hw/arm/xlnx-zynqmp.c +1 -1
@@ -857,7 +857,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) } } -static Property xlnx_zynqmp_props[] = { +static const Property xlnx_zynqmp_props[] = {DEFINE_PROP_STRING ("boot-cpu" , XlnxZynqMPState, boot_cpu),DEFINE_PROP_BOOL ("secure" , XlnxZynqMPState, secure, false),DEFINE_PROP_BOOL ("virtualization" , XlnxZynqMPState, virt, false),
Signature · 1 line
2.43.0
[PULL 24/67] hw/dma: Constify all Property
In reply to Richard Henderson--- hw/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- hw/dma/pl080.c | 2 +- hw/dma/pl330.c | 2 +- hw/dma/xilinx_axidma.c | 2 +- hw/dma/xlnx-zdma.c | 2 +- hw/dma/xlnx_csu_dma.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
hw/dma/i82374.c +1 -1
@@ -139,7 +139,7 @@ static void i82374_realize(DeviceState *dev, Error **errp)memset (s->commands,0 ,sizeof (s->commands)); } -static Property i82374_properties[] = { +static const Property i82374_properties[] = {DEFINE_PROP_UINT32 ("iobase" , I82374State, iobase,0x400 ),DEFINE_PROP_END_OF_LIST () };
hw/dma/i8257.c +1 -1
@@ -585,7 +585,7 @@ static void i8257_realize(DeviceState *dev, Error **errp) d->dma_bh =qemu_bh_new (i8257_dma_run, d); } -static Property i8257_properties[] = { +static const Property i8257_properties[] = {DEFINE_PROP_INT32 ("base" , I8257State, base,0x00 ),DEFINE_PROP_INT32 ("page-base" , I8257State, page_base,0x80 ),DEFINE_PROP_INT32 ("pageh-base" , I8257State, pageh_base,0x480 ),
hw/dma/pl080.c +1 -1
@@ -408,7 +408,7 @@ static void pl081_init(Object *obj) s->nchannels =2 ; } -static Property pl080_properties[] = { +static const Property pl080_properties[] = {DEFINE_PROP_LINK ("downstream" , PL080State, downstream, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/dma/pl330.c +1 -1
@@ -1646,7 +1646,7 @@ static void pl330_realize(DeviceState *dev, Error **errp)pl330_fifo_init (&s->fifo, s->data_width /4 * s->data_buffer_dep); } -static Property pl330_properties[] = { +static const Property pl330_properties[] = {/* CR0 */ DEFINE_PROP_UINT32 ("num_chnls" , PL330State, num_chnls,8 ),DEFINE_PROP_UINT8 ("num_periph_req" , PL330State, num_periph_req,4 ),
hw/dma/xilinx_axidma.c +1 -1
@@ -611,7 +611,7 @@ static void xilinx_axidma_init(Object *obj)sysbus_init_mmio (sbd, &s->iomem); } -static Property axidma_properties[] = { +static const Property axidma_properties[] = {DEFINE_PROP_UINT32 ("freqhz" , XilinxAXIDMA, freqhz,50000000 ),DEFINE_PROP_LINK ("axistream-connected" , XilinxAXIDMA, tx_data_dev, TYPE_STREAM_SINK, StreamSink *),
hw/dma/xlnx-zdma.c +1 -1
@@ -810,7 +810,7 @@ static const VMStateDescription vmstate_zdma = { } }; -static Property zdma_props[] = { +static const Property zdma_props[] = {DEFINE_PROP_UINT32 ("bus-width" , XlnxZDMA, cfg.bus_width,64 ),DEFINE_PROP_LINK ("dma" , XlnxZDMA, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *),
hw/dma/xlnx_csu_dma.c +1 -1
@@ -691,7 +691,7 @@ static const VMStateDescription vmstate_xlnx_csu_dma = { } }; -static Property xlnx_csu_dma_properties[] = { +static const Property xlnx_csu_dma_properties[] = {/* * Ref PG021, Stream Data Width: * Data width in bits of the AXI S2MM AXI4-Stream Data bus.
Signature · 1 line
2.43.0
[PULL 29/67] hw/ide: Constify all Property
In reply to Richard Henderson--- hw/ide/cf.c | 2 +- hw/ide/cmd646.c | 2 +- hw/ide/ide-dev.c | 6 +++--- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/mmio.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-)
hw/ide/cf.c +1 -1
@@ -24,7 +24,7 @@ static void ide_cf_realize(IDEDevice *dev, Error **errp)ide_dev_initfn (dev,IDE_CFATA , errp); } -static Property ide_cf_properties[] = { +static const Property ide_cf_properties[] = {DEFINE_IDE_DEV_PROPERTIES (),DEFINE_BLOCK_CHS_PROPERTIES (IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans",
hw/ide/cmd646.c +1 -1
@@ -313,7 +313,7 @@ static void pci_cmd646_ide_exitfn(PCIDevice *dev) } } -static Property cmd646_ide_properties[] = { +static const Property cmd646_ide_properties[] = {DEFINE_PROP_UINT32 ("secondary" , PCIIDEState, secondary,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/ide/ide-dev.c +3 -3
@@ -29,7 +29,7 @@#include "qapi/visitor.h" #include "ide-internal.h" -static Property ide_props[] = { +static const Property ide_props[] = {DEFINE_PROP_UINT32 ("unit" , IDEDevice, unit,-1 ),DEFINE_PROP_BOOL ("win2k-install-hack" , IDEDevice, win2k_install_hack, false),DEFINE_PROP_END_OF_LIST (),
@@ -191,7 +191,7 @@ static void ide_cd_realize(IDEDevice *dev, Error **errp)ide_dev_initfn (dev,IDE_CD , errp); } -static Property ide_hd_properties[] = { +static const Property ide_hd_properties[] = {DEFINE_IDE_DEV_PROPERTIES (),DEFINE_BLOCK_CHS_PROPERTIES (IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans",
@@ -218,7 +218,7 @@ static const TypeInfo ide_hd_info = { .class_init = ide_hd_class_init, }; -static Property ide_cd_properties[] = { +static const Property ide_cd_properties[] = {DEFINE_IDE_DEV_PROPERTIES (),DEFINE_PROP_END_OF_LIST (), };
hw/ide/isa.c +1 -1
@@ -101,7 +101,7 @@ ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int irqnum,return isadev; } -static Property isa_ide_properties[] = { +static const Property isa_ide_properties[] = {DEFINE_PROP_UINT32 ("iobase" , ISAIDEState, iobase,0x1f0 ),DEFINE_PROP_UINT32 ("iobase2" , ISAIDEState, iobase2,0x3f6 ),DEFINE_PROP_UINT32 ("irq" , ISAIDEState, irqnum,14 ),
hw/ide/macio.c +1 -1
@@ -459,7 +459,7 @@ static void macio_ide_initfn(Object *obj) qdev_prop_allow_set_link_before_realize, 0); } -static Property macio_ide_properties[] = { +static const Property macio_ide_properties[] = {DEFINE_PROP_UINT32 ("channel" , MACIOIDEState, channel,0 ),DEFINE_PROP_UINT32 ("addr" , MACIOIDEState, addr,-1 ),DEFINE_PROP_END_OF_LIST (),
hw/ide/mmio.c +1 -1
@@ -141,7 +141,7 @@ static void mmio_ide_initfn(Object *obj)sysbus_init_irq (d, &s->irq); } -static Property mmio_ide_properties[] = { +static const Property mmio_ide_properties[] = {DEFINE_PROP_UINT32 ("shift" , MMIOIDEState, shift,0 ),DEFINE_PROP_END_OF_LIST () };
Signature · 1 line
2.43.0
[PULL 63/67] hw/virtio: Constify all Property
In reply to Richard Henderson--- hw/virtio/vdpa-dev.c | 2 +- hw/virtio/vhost-scsi-pci.c | 2 +- hw/virtio/vhost-user-blk-pci.c | 2 +- hw/virtio/vhost-user-device.c | 2 +- hw/virtio/vhost-user-fs-pci.c | 2 +- hw/virtio/vhost-user-fs.c | 2 +- hw/virtio/vhost-user-gpio.c | 2 +- hw/virtio/vhost-user-i2c.c | 2 +- hw/virtio/vhost-user-input.c | 2 +- hw/virtio/vhost-user-rng-pci.c | 2 +- hw/virtio/vhost-user-rng.c | 2 +- hw/virtio/vhost-user-scmi.c | 2 +- hw/virtio/vhost-user-scsi-pci.c | 2 +- hw/virtio/vhost-user-snd.c | 2 +- hw/virtio/vhost-user-vsock-pci.c | 2 +- hw/virtio/vhost-user-vsock.c | 2 +- hw/virtio/vhost-vsock-common.c | 2 +- hw/virtio/vhost-vsock-pci.c | 2 +- hw/virtio/vhost-vsock.c | 2 +- hw/virtio/virtio-9p-pci.c | 2 +- hw/virtio/virtio-balloon.c | 2 +- hw/virtio/virtio-blk-pci.c | 2 +- hw/virtio/virtio-crypto-pci.c | 2 +- hw/virtio/virtio-crypto.c | 2 +- hw/virtio/virtio-input-pci.c | 2 +- hw/virtio/virtio-iommu-pci.c | 2 +- hw/virtio/virtio-iommu.c | 2 +- hw/virtio/virtio-mem.c | 2 +- hw/virtio/virtio-mmio.c | 2 +- hw/virtio/virtio-net-pci.c | 2 +- hw/virtio/virtio-nsm.c | 2 +- hw/virtio/virtio-pci.c | 4 ++-- hw/virtio/virtio-pmem.c | 2 +- hw/virtio/virtio-rng-pci.c | 2 +- hw/virtio/virtio-rng.c | 2 +- hw/virtio/virtio-scsi-pci.c | 2 +- hw/virtio/virtio-serial-pci.c | 2 +- hw/virtio/virtio.c | 2 +- 38 files changed, 39 insertions(+), 39 deletions(-)
hw/virtio/vdpa-dev.c +1 -1
@@ -337,7 +337,7 @@ static void vhost_vdpa_device_set_status(VirtIODevice *vdev, uint8_t status) } } -static Property vhost_vdpa_device_properties[] = { +static const Property vhost_vdpa_device_properties[] = {DEFINE_PROP_STRING ("vhostdev" , VhostVdpaDevice, vhostdev),DEFINE_PROP_UINT16 ("queue-size" , VhostVdpaDevice, queue_size,0 ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-scsi-pci.c +1 -1
@@ -38,7 +38,7 @@ struct VHostSCSIPCI {VHostSCSI vdev; }; -static Property vhost_scsi_pci_properties[] = { +static const Property vhost_scsi_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,DEV_NVECTORS_UNSPECIFIED ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-user-blk-pci.c +1 -1
@@ -43,7 +43,7 @@ struct VHostUserBlkPCI {VHostUserBlk vdev; }; -static Property vhost_user_blk_pci_properties[] = { +static const Property vhost_user_blk_pci_properties[] = {DEFINE_PROP_UINT32 ("class" , VirtIOPCIProxy, class_code,0 ),DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,DEV_NVECTORS_UNSPECIFIED ),
hw/virtio/vhost-user-device.c +1 -1
@@ -29,7 +29,7 @@ static const VMStateDescription vud_vmstate = { .unmigratable = 1, }; -static Property vud_properties[] = { +static const Property vud_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_UINT16 ("virtio-id" , VHostUserBase, virtio_id,0 ),DEFINE_PROP_UINT32 ("vq_size" , VHostUserBase, vq_size,64 ),
hw/virtio/vhost-user-fs-pci.c +1 -1
@@ -29,7 +29,7 @@ typedef struct VHostUserFSPCI VHostUserFSPCI;DECLARE_INSTANCE_CHECKER (VHostUserFSPCI,VHOST_USER_FS_PCI , TYPE_VHOST_USER_FS_PCI) -static Property vhost_user_fs_pci_properties[] = { +static const Property vhost_user_fs_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,DEV_NVECTORS_UNSPECIFIED ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-user-fs.c +1 -1
@@ -403,7 +403,7 @@ static const VMStateDescription vuf_backend_vmstate = { }, }; -static Property vuf_properties[] = { +static const Property vuf_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserFS, conf.chardev),DEFINE_PROP_STRING ("tag" , VHostUserFS, conf.tag), DEFINE_PROP_UINT16("num-request-queues", VHostUserFS,
hw/virtio/vhost-user-gpio.c +1 -1
@@ -14,7 +14,7 @@#include "standard-headers/linux/virtio_ids.h" #include "standard-headers/linux/virtio_gpio.h" -static Property vgpio_properties[] = { +static const Property vgpio_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-i2c.c +1 -1
@@ -14,7 +14,7 @@#include "qemu/error-report.h" #include "standard-headers/linux/virtio_ids.h" -static Property vi2c_properties[] = { +static const Property vi2c_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-input.c +1 -1
@@ -7,7 +7,7 @@#include "qemu/osdep.h" #include "hw/virtio/virtio-input.h" -static Property vinput_properties[] = { +static const Property vinput_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-rng-pci.c +1 -1
@@ -23,7 +23,7 @@ typedef struct VHostUserRNGPCI VHostUserRNGPCI;DECLARE_INSTANCE_CHECKER (VHostUserRNGPCI,VHOST_USER_RNG_PCI , TYPE_VHOST_USER_RNG_PCI) -static Property vhost_user_rng_pci_properties[] = { +static const Property vhost_user_rng_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,DEV_NVECTORS_UNSPECIFIED ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-user-rng.c +1 -1
@@ -20,7 +20,7 @@ static const VMStateDescription vu_rng_vmstate = { .unmigratable = 1, }; -static Property vrng_properties[] = { +static const Property vrng_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-scmi.c +1 -1
@@ -277,7 +277,7 @@ static const VMStateDescription vu_scmi_vmstate = { .unmigratable = 1, }; -static Property vu_scmi_properties[] = { +static const Property vu_scmi_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserSCMI, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-scsi-pci.c +1 -1
@@ -44,7 +44,7 @@ struct VHostUserSCSIPCI {VHostUserSCSI vdev; }; -static Property vhost_user_scsi_pci_properties[] = { +static const Property vhost_user_scsi_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,DEV_NVECTORS_UNSPECIFIED ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-user-snd.c +1 -1
@@ -21,7 +21,7 @@ static const VMStateDescription vu_snd_vmstate = { .unmigratable = 1, }; -static Property vsnd_properties[] = { +static const Property vsnd_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserBase, chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-vsock-pci.c +1 -1
@@ -31,7 +31,7 @@ struct VHostUserVSockPCI {/* vhost-user-vsock-pci */ -static Property vhost_user_vsock_pci_properties[] = { +static const Property vhost_user_vsock_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,3 ),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-user-vsock.c +1 -1
@@ -148,7 +148,7 @@ static void vuv_device_unrealize(DeviceState *dev) } -static Property vuv_properties[] = { +static const Property vuv_properties[] = {DEFINE_PROP_CHR ("chardev" , VHostUserVSock, conf.chardev),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-vsock-common.c +1 -1
@@ -285,7 +285,7 @@ static struct vhost_dev *vhost_vsock_common_get_vhost(VirtIODevice *vdev)return &vvc->vhost_dev; } -static Property vhost_vsock_common_properties[] = { +static const Property vhost_vsock_common_properties[] = {DEFINE_PROP_ON_OFF_AUTO ("seqpacket" , VHostVSockCommon, seqpacket,ON_OFF_AUTO_AUTO ),DEFINE_PROP_END_OF_LIST (),
hw/virtio/vhost-vsock-pci.c +1 -1
@@ -35,7 +35,7 @@ struct VHostVSockPCI {/* vhost-vsock-pci */ -static Property vhost_vsock_pci_properties[] = { +static const Property vhost_vsock_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,3 ),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/vhost-vsock.c +1 -1
@@ -205,7 +205,7 @@ static void vhost_vsock_device_unrealize(DeviceState *dev)vhost_vsock_common_unrealize (vdev); } -static Property vhost_vsock_properties[] = { +static const Property vhost_vsock_properties[] = {DEFINE_PROP_UINT64 ("guest-cid" , VHostVSock, conf.guest_cid,0 ),DEFINE_PROP_STRING ("vhostfd" , VHostVSock, conf.vhostfd),DEFINE_PROP_END_OF_LIST (),
hw/virtio/virtio-9p-pci.c +1 -1
@@ -43,7 +43,7 @@ static void virtio_9p_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)qdev_realize (vdev,BUS (&vpci_dev->bus), errp); } -static Property virtio_9p_pci_properties[] = { +static const Property virtio_9p_pci_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true),DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,2 ),
hw/virtio/virtio-balloon.c +1 -1
@@ -1015,7 +1015,7 @@ static const VMStateDescription vmstate_virtio_balloon = { }, }; -static Property virtio_balloon_properties[] = { +static const Property virtio_balloon_properties[] = {DEFINE_PROP_BIT ("deflate-on-oom" , VirtIOBalloon, host_features,VIRTIO_BALLOON_F_DEFLATE_ON_OOM , false), DEFINE_PROP_BIT("free-page-hint", VirtIOBalloon, host_features,
hw/virtio/virtio-blk-pci.c +1 -1
@@ -38,7 +38,7 @@ struct VirtIOBlkPCI {VirtIOBlock vdev; }; -static Property virtio_blk_pci_properties[] = { +static const Property virtio_blk_pci_properties[] = {DEFINE_PROP_UINT32 ("class" , VirtIOPCIProxy, class_code,0 ),DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true),
hw/virtio/virtio-crypto-pci.c +1 -1
@@ -37,7 +37,7 @@ struct VirtIOCryptoPCI {VirtIOCrypto vdev; }; -static Property virtio_crypto_pci_properties[] = { +static const Property virtio_crypto_pci_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true),DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,2 ),
hw/virtio/virtio-crypto.c +1 -1
@@ -1128,7 +1128,7 @@ static const VMStateDescription vmstate_virtio_crypto = { }, }; -static Property virtio_crypto_properties[] = { +static const Property virtio_crypto_properties[] = {DEFINE_PROP_LINK ("cryptodev" , VirtIOCrypto, conf.cryptodev, TYPE_CRYPTODEV_BACKEND, CryptoDevBackend *),DEFINE_PROP_END_OF_LIST (),
hw/virtio/virtio-input-pci.c +1 -1
@@ -37,7 +37,7 @@ struct VirtIOInputHIDPCI {VirtIOInputHID vdev; }; -static Property virtio_input_pci_properties[] = { +static const Property virtio_input_pci_properties[] = {DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,2 ),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/virtio-iommu-pci.c +1 -1
@@ -34,7 +34,7 @@ struct VirtIOIOMMUPCI {VirtIOIOMMU vdev; }; -static Property virtio_iommu_pci_properties[] = { +static const Property virtio_iommu_pci_properties[] = {DEFINE_PROP_UINT32 ("class" , VirtIOPCIProxy, class_code,0 ), DEFINE_PROP_ARRAY("reserved-regions", VirtIOIOMMUPCI, vdev.nr_prop_resv_regions, vdev.prop_resv_regions,
hw/virtio/virtio-iommu.c +1 -1
@@ -1655,7 +1655,7 @@ static const VMStateDescription vmstate_virtio_iommu = { }, }; -static Property virtio_iommu_properties[] = { +static const Property virtio_iommu_properties[] = {DEFINE_PROP_LINK ("primary-bus" , VirtIOIOMMU, primary_bus, TYPE_PCI_BUS, PCIBus *),DEFINE_PROP_BOOL ("boot-bypass" , VirtIOIOMMU, boot_bypass, true),
hw/virtio/virtio-mem.c +1 -1
@@ -1680,7 +1680,7 @@ static void virtio_mem_instance_finalize(Object *obj) vmem->mr =NULL ; } -static Property virtio_mem_properties[] = { +static const Property virtio_mem_properties[] = {DEFINE_PROP_UINT64 (VIRTIO_MEM_ADDR_PROP , VirtIOMEM, addr,0 ),DEFINE_PROP_UINT32 (VIRTIO_MEM_NODE_PROP , VirtIOMEM, node,0 ),DEFINE_PROP_BOOL (VIRTIO_MEM_PREALLOC_PROP , VirtIOMEM, prealloc, false),
hw/virtio/virtio-mmio.c +1 -1
@@ -751,7 +751,7 @@ static void virtio_mmio_pre_plugged(DeviceState *d, Error **errp)/* virtio-mmio device */ -static Property virtio_mmio_properties[] = { +static const Property virtio_mmio_properties[] = {DEFINE_PROP_BOOL ("format_transport_address" , VirtIOMMIOProxy, format_transport_address, true),DEFINE_PROP_BOOL ("force-legacy" , VirtIOMMIOProxy, legacy, true),
hw/virtio/virtio-net-pci.c +1 -1
@@ -38,7 +38,7 @@ struct VirtIONetPCI {VirtIONet vdev; }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors,
hw/virtio/virtio-nsm.c +1 -1
@@ -1705,7 +1705,7 @@ static const VMStateDescription vmstate_virtio_nsm = { }, }; -static Property virtio_nsm_properties[] = { +static const Property virtio_nsm_properties[] = {DEFINE_PROP_STRING ("module-id" , VirtIONSM, module_id),DEFINE_PROP_END_OF_LIST (), };
hw/virtio/virtio-pci.c +2 -2
@@ -2349,7 +2349,7 @@ static void virtio_pci_bus_reset_hold(Object *obj, ResetType type) } } -static Property virtio_pci_properties[] = { +static const Property virtio_pci_properties[] = {DEFINE_PROP_BIT ("virtio-pci-bus-master-bug-migration" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_BUS_MASTER_BUG_MIGRATION_BIT , false), DEFINE_PROP_BIT("migrate-extra", VirtIOPCIProxy, flags,
@@ -2431,7 +2431,7 @@ static const TypeInfo virtio_pci_info = { .abstract = true, }; -static Property virtio_pci_generic_properties[] = { +static const Property virtio_pci_generic_properties[] = {DEFINE_PROP_ON_OFF_AUTO ("disable-legacy" , VirtIOPCIProxy, disable_legacy,ON_OFF_AUTO_AUTO ),DEFINE_PROP_BOOL ("disable-modern" , VirtIOPCIProxy, disable_modern, false),
hw/virtio/virtio-pmem.c +1 -1
@@ -155,7 +155,7 @@ static MemoryRegion *virtio_pmem_get_memory_region(VirtIOPMEM *pmem,return &pmem->memdev->mr; } -static Property virtio_pmem_properties[] = { +static const Property virtio_pmem_properties[] = {DEFINE_PROP_UINT64 (VIRTIO_PMEM_ADDR_PROP , VirtIOPMEM, start,0 ),DEFINE_PROP_LINK (VIRTIO_PMEM_MEMDEV_PROP , VirtIOPMEM, memdev, TYPE_MEMORY_BACKEND, HostMemoryBackend *),
hw/virtio/virtio-rng-pci.c +1 -1
@@ -32,7 +32,7 @@ struct VirtIORngPCI {VirtIORNG vdev; }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors,
hw/virtio/virtio-rng.c +1 -1
@@ -249,7 +249,7 @@ static const VMStateDescription vmstate_virtio_rng = { }, }; -static Property virtio_rng_properties[] = { +static const Property virtio_rng_properties[] = {/* Set a default rate limit of 2^47 bytes per minute or roughly 2TB/s. If * you have an entropy source capable of generating more entropy than this * and you can pass it through via virtio-rng, then hats off to you. Until
hw/virtio/virtio-scsi-pci.c +1 -1
@@ -35,7 +35,7 @@ struct VirtIOSCSIPCI {VirtIOSCSI vdev; }; -static Property virtio_scsi_pci_properties[] = { +static const Property virtio_scsi_pci_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors,
hw/virtio/virtio-serial-pci.c +1 -1
@@ -69,7 +69,7 @@ static void virtio_serial_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)qdev_realize (vdev,BUS (&vpci_dev->bus), errp); } -static Property virtio_serial_pci_properties[] = { +static const Property virtio_serial_pci_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtIOPCIProxy, flags,VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT , true),DEFINE_PROP_UINT32 ("vectors" , VirtIOPCIProxy, nvectors,2 ),
hw/virtio/virtio.c +1 -1
@@ -4012,7 +4012,7 @@ static void virtio_device_instance_finalize(Object *obj)g_free (vdev->vector_queues); } -static Property virtio_properties[] = { +static const Property virtio_properties[] = {DEFINE_VIRTIO_COMMON_FEATURES (VirtIODevice, host_features),DEFINE_PROP_BOOL ("use-started" , VirtIODevice, use_started, true),DEFINE_PROP_BOOL ("use-disabled-flag" , VirtIODevice, use_disabled_flag, true),
Signature · 1 line
2.43.0
[PULL 03/67] target/hexagon: Constify all Property
In reply to Richard Henderson--- target/hexagon/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/hexagon/cpu.c +1 -1
@@ -48,7 +48,7 @@ static ObjectClass *hexagon_cpu_class_by_name(const char *cpu_model)return oc; } -static Property hexagon_cpu_properties[] = { +static const Property hexagon_cpu_properties[] = {DEFINE_PROP_BOOL ("lldb-compat" , HexagonCPU, lldb_compat, false),DEFINE_PROP_UNSIGNED ("lldb-stack-adjust" , HexagonCPU, lldb_stack_adjust,0 , qdev_prop_uint32, target_ulong),
Signature · 1 line
2.43.0
[PULL 47/67] hw/ppc: Constify all Property
In reply to Richard Henderson--- hw/ppc/pnv.c | 2 +- hw/ppc/pnv_adu.c | 2 +- hw/ppc/pnv_chiptod.c | 2 +- hw/ppc/pnv_core.c | 4 ++-- hw/ppc/pnv_homer.c | 2 +- hw/ppc/pnv_i2c.c | 2 +- hw/ppc/pnv_lpc.c | 2 +- hw/ppc/pnv_pnor.c | 2 +- hw/ppc/pnv_psi.c | 2 +- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc440_uc.c | 2 +- hw/ppc/ppc4xx_devs.c | 4 ++-- hw/ppc/ppc4xx_sdram.c | 4 ++-- hw/ppc/prep_systemio.c | 2 +- hw/ppc/rs6000_mc.c | 2 +- hw/ppc/spapr_cpu_core.c | 2 +- hw/ppc/spapr_nvdimm.c | 2 +- hw/ppc/spapr_pci.c | 2 +- hw/ppc/spapr_rng.c | 2 +- hw/ppc/spapr_tpm_proxy.c | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-)
hw/ppc/pnv.c +1 -1
@@ -2422,7 +2422,7 @@ static void pnv_chip_realize(DeviceState *dev, Error **errp) } } -static Property pnv_chip_properties[] = { +static const Property pnv_chip_properties[] = {DEFINE_PROP_UINT32 ("chip-id" , PnvChip, chip_id,0 ),DEFINE_PROP_UINT64 ("ram-start" , PnvChip, ram_start,0 ),DEFINE_PROP_UINT64 ("ram-size" , PnvChip, ram_size,0 ),
hw/ppc/pnv_adu.c +1 -1
@@ -185,7 +185,7 @@ static void pnv_adu_realize(DeviceState *dev, Error **errp) PNV9_XSCOM_ADU_SIZE); } -static Property pnv_adu_properties[] = { +static const Property pnv_adu_properties[] = { DEFINE_PROP_LINK("lpc", PnvADU, lpc, TYPE_PNV_LPC, PnvLpcController *),DEFINE_PROP_END_OF_LIST (), };
hw/ppc/pnv_chiptod.c +1 -1
@@ -450,7 +450,7 @@ static int pnv_chiptod_power9_dt_xscom(PnvXScomInterface *dev, void *fdt,return pnv_chiptod_dt_xscom (dev, fdt, xscom_offset, compat,sizeof (compat)); } -static Property pnv_chiptod_properties[] = { +static const Property pnv_chiptod_properties[] = {DEFINE_PROP_BOOL ("primary" , PnvChipTOD, primary, false),DEFINE_PROP_BOOL ("secondary" , PnvChipTOD, secondary, false), DEFINE_PROP_LINK("chip", PnvChipTOD , chip, TYPE_PNV_CHIP, PnvChip *),
hw/ppc/pnv_core.c +2 -2
@@ -435,7 +435,7 @@ static void pnv_core_unrealize(DeviceState *dev)g_free (pc->threads); } -static Property pnv_core_properties[] = { +static const Property pnv_core_properties[] = {DEFINE_PROP_UINT32 ("hwid" , PnvCore, hwid,0 ),DEFINE_PROP_UINT64 ("hrmor" , PnvCore, hrmor,0 ),DEFINE_PROP_BOOL ("big-core" , PnvCore, big_core, false),
@@ -693,7 +693,7 @@ static void pnv_quad_power10_realize(DeviceState *dev, Error **errp) pqc->xscom_qme_size); } -static Property pnv_quad_properties[] = { +static const Property pnv_quad_properties[] = {DEFINE_PROP_UINT32 ("quad-id" , PnvQuad, quad_id,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/ppc/pnv_homer.c +1 -1
@@ -412,7 +412,7 @@ static void pnv_homer_realize(DeviceState *dev, Error **errp) hmrc->homer_size); } -static Property pnv_homer_properties[] = { +static const Property pnv_homer_properties[] = { DEFINE_PROP_LINK("chip", PnvHomer, chip, TYPE_PNV_CHIP, PnvChip *),DEFINE_PROP_END_OF_LIST (), };
hw/ppc/pnv_i2c.c +1 -1
@@ -543,7 +543,7 @@ static void pnv_i2c_realize(DeviceState *dev, Error **errp)qdev_init_gpio_out (DEVICE (dev), &i2c->psi_irq,1 ); } -static Property pnv_i2c_properties[] = { +static const Property pnv_i2c_properties[] = { DEFINE_PROP_LINK("chip", PnvI2C, chip, TYPE_PNV_CHIP, PnvChip *),DEFINE_PROP_UINT32 ("engine" , PnvI2C, engine,1 ),DEFINE_PROP_UINT32 ("num-busses" , PnvI2C, num_busses,1 ),
hw/ppc/pnv_lpc.c +1 -1
@@ -828,7 +828,7 @@ static void pnv_lpc_realize(DeviceState *dev, Error **errp)qdev_init_gpio_out_named (dev, &lpc->psi_irq_lpchc,"LPCHC" ,1 ); } -static Property pnv_lpc_properties[] = { +static const Property pnv_lpc_properties[] = {DEFINE_PROP_BOOL ("psi-serirq" , PnvLpcController, psi_has_serirq, false),DEFINE_PROP_END_OF_LIST (), };
hw/ppc/pnv_pnor.c +1 -1
@@ -112,7 +112,7 @@ static void pnv_pnor_realize(DeviceState *dev, Error **errp) TYPE_PNV_PNOR, s->size); } -static Property pnv_pnor_properties[] = { +static const Property pnv_pnor_properties[] = {DEFINE_PROP_INT64 ("size" , PnvPnor, size,128 * MiB),DEFINE_PROP_DRIVE ("drive" , PnvPnor, blk),DEFINE_PROP_END_OF_LIST (),
hw/ppc/pnv_psi.c +1 -1
@@ -552,7 +552,7 @@ static int pnv_psi_dt_xscom(PnvXScomInterface *dev, void *fdt, int xscom_offset)return 0 ; } -static Property pnv_psi_properties[] = { +static const Property pnv_psi_properties[] = {DEFINE_PROP_UINT64 ("bar" , PnvPsi, bar,0 ),DEFINE_PROP_UINT64 ("fsp-bar" , PnvPsi, fsp_bar,0 ),DEFINE_PROP_END_OF_LIST (),
hw/ppc/ppc405_uc.c +1 -1
@@ -965,7 +965,7 @@ static void ppc405_cpc_realize(DeviceState *dev, Error **errp) &dcr_read_epcpc, &dcr_write_epcpc); } -static Property ppc405_cpc_properties[] = { +static const Property ppc405_cpc_properties[] = {DEFINE_PROP_UINT32 ("sys-clk" , Ppc405CpcState, sysclk,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/ppc/ppc440_uc.c +1 -1
@@ -1020,7 +1020,7 @@ static void ppc460ex_pcie_realize(DeviceState *dev, Error **errp)ppc460ex_pcie_register_dcrs (s); } -static Property ppc460ex_pcie_props[] = { +static const Property ppc460ex_pcie_props[] = {DEFINE_PROP_INT32 ("busnum" , PPC460EXPCIEState, num,-1 ),DEFINE_PROP_INT32 ("dcrn-base" , PPC460EXPCIEState, dcrn_base,-1 ), DEFINE_PROP_LINK("cpu", PPC460EXPCIEState, cpu, TYPE_POWERPC_CPU,
hw/ppc/ppc4xx_devs.c +2 -2
@@ -231,7 +231,7 @@ static void ppc4xx_mal_finalize(Object *obj)g_free (mal->txctpr); } -static Property ppc4xx_mal_properties[] = { +static const Property ppc4xx_mal_properties[] = {DEFINE_PROP_UINT8 ("txc-num" , Ppc4xxMalState, txcnum,0 ),DEFINE_PROP_UINT8 ("rxc-num" , Ppc4xxMalState, rxcnum,0 ),DEFINE_PROP_END_OF_LIST (),
@@ -539,7 +539,7 @@ bool ppc4xx_dcr_realize(Ppc4xxDcrDeviceState *dev, PowerPCCPU *cpu,return sysbus_realize (SYS_BUS_DEVICE (dev), errp); } -static Property ppc4xx_dcr_properties[] = { +static const Property ppc4xx_dcr_properties[] = {DEFINE_PROP_LINK ("cpu" , Ppc4xxDcrDeviceState, cpu,TYPE_POWERPC_CPU , PowerPCCPU *),DEFINE_PROP_END_OF_LIST (),
hw/ppc/ppc4xx_sdram.c +2 -2
@@ -425,7 +425,7 @@ static void ppc4xx_sdram_ddr_realize(DeviceState *dev, Error **errp) s, &sdram_ddr_dcr_read, &sdram_ddr_dcr_write); } -static Property ppc4xx_sdram_ddr_props[] = { +static const Property ppc4xx_sdram_ddr_props[] = {DEFINE_PROP_LINK ("dram" , Ppc4xxSdramDdrState, dram_mr,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("nbanks" , Ppc4xxSdramDdrState, nbanks,4 ),
@@ -710,7 +710,7 @@ static void ppc4xx_sdram_ddr2_realize(DeviceState *dev, Error **errp) s, &sdram_ddr2_dcr_read, &sdram_ddr2_dcr_write); } -static Property ppc4xx_sdram_ddr2_props[] = { +static const Property ppc4xx_sdram_ddr2_props[] = {DEFINE_PROP_LINK ("dram" , Ppc4xxSdramDdr2State, dram_mr,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_UINT32 ("nbanks" , Ppc4xxSdramDdr2State, nbanks,4 ),
hw/ppc/prep_systemio.c +1 -1
@@ -285,7 +285,7 @@ static const VMStateDescription vmstate_prep_systemio = { }, }; -static Property prep_systemio_properties[] = { +static const Property prep_systemio_properties[] = {DEFINE_PROP_UINT8 ("ibm-planar-id" , PrepSystemIoState, ibm_planar_id,0 ),DEFINE_PROP_UINT8 ("equipment" , PrepSystemIoState, equipment,0 ),DEFINE_PROP_END_OF_LIST ()
hw/ppc/rs6000_mc.c +1 -1
@@ -207,7 +207,7 @@ static const VMStateDescription vmstate_rs6000mc = { }, }; -static Property rs6000mc_properties[] = { +static const Property rs6000mc_properties[] = {DEFINE_PROP_UINT32 ("ram-size" , RS6000MCState, ram_size,0 ),DEFINE_PROP_BOOL ("auto-configure" , RS6000MCState, autoconfigure, true),DEFINE_PROP_END_OF_LIST ()
hw/ppc/spapr_cpu_core.c +1 -1
@@ -361,7 +361,7 @@ static void spapr_cpu_core_realize(DeviceState *dev, Error **errp) } } -static Property spapr_cpu_core_properties[] = { +static const Property spapr_cpu_core_properties[] = {DEFINE_PROP_INT32 ("node-id" , SpaprCpuCore, node_id,CPU_UNSET_NUMA_NODE_ID ),DEFINE_PROP_END_OF_LIST () };
hw/ppc/spapr_nvdimm.c +1 -1
@@ -884,7 +884,7 @@ static void spapr_nvdimm_unrealize(NVDIMMDevice *dimm)vmstate_unregister (NULL , &vmstate_spapr_nvdimm_states, dimm); } -static Property spapr_nvdimm_properties[] = { +static const Property spapr_nvdimm_properties[] = { #ifdef CONFIG_LIBPMEMDEFINE_PROP_BOOL ("pmem-override" , SpaprNVDIMMDevice, pmem_override, false), #endif
hw/ppc/spapr_pci.c +1 -1
@@ -2033,7 +2033,7 @@ static void spapr_phb_reset(DeviceState *qdev)g_hash_table_remove_all (sphb->msi); } -static Property spapr_phb_properties[] = { +static const Property spapr_phb_properties[] = {DEFINE_PROP_UINT32 ("index" , SpaprPhbState, index,-1 ),DEFINE_PROP_UINT64 ("mem_win_size" , SpaprPhbState, mem_win_size,SPAPR_PCI_MEM32_WIN_SIZE ),
hw/ppc/spapr_rng.c +1 -1
@@ -130,7 +130,7 @@ static void spapr_rng_realize(DeviceState *dev, Error **errp) } } -static Property spapr_rng_properties[] = { +static const Property spapr_rng_properties[] = {DEFINE_PROP_BOOL ("use-kvm" , SpaprRngState, use_kvm, false),DEFINE_PROP_LINK ("rng" , SpaprRngState, backend,TYPE_RNG_BACKEND , RngBackend *),
hw/ppc/spapr_tpm_proxy.c +1 -1
@@ -145,7 +145,7 @@ static void spapr_tpm_proxy_unrealize(DeviceState *d)qemu_unregister_reset (spapr_tpm_proxy_reset, tpm_proxy); } -static Property spapr_tpm_proxy_properties[] = { +static const Property spapr_tpm_proxy_properties[] = {DEFINE_PROP_STRING ("host-path" , SpaprTpmProxy, host_path),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 50/67] hw/rtc: Constify all Property
In reply to Richard Henderson--- hw/rtc/allwinner-rtc.c | 2 +- hw/rtc/goldfish_rtc.c | 2 +- hw/rtc/m48t59-isa.c | 2 +- hw/rtc/m48t59.c | 2 +- hw/rtc/mc146818rtc.c | 2 +- hw/rtc/pl031.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
hw/rtc/allwinner-rtc.c +1 -1
@@ -311,7 +311,7 @@ static const VMStateDescription allwinner_rtc_vmstate = { } }; -static Property allwinner_rtc_properties[] = { +static const Property allwinner_rtc_properties[] = {DEFINE_PROP_INT32 ("base-year" , AwRtcState, base_year,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/rtc/goldfish_rtc.c +1 -1
@@ -286,7 +286,7 @@ static void goldfish_rtc_realize(DeviceState *d, Error **errp) s->timer =timer_new_ns (rtc_clock, goldfish_rtc_interrupt, s); } -static Property goldfish_rtc_properties[] = { +static const Property goldfish_rtc_properties[] = {DEFINE_PROP_BOOL ("big-endian" , GoldfishRTCState, big_endian, false),DEFINE_PROP_END_OF_LIST (),
hw/rtc/m48t59-isa.c +1 -1
@@ -77,7 +77,7 @@ static void m48txx_isa_toggle_lock(Nvram *obj, int lock)m48t59_toggle_lock (&d->state, lock); } -static Property m48t59_isa_properties[] = { +static const Property m48t59_isa_properties[] = {DEFINE_PROP_INT32 ("base-year" , M48txxISAState, state.base_year,0 ),DEFINE_PROP_UINT32 ("iobase" , M48txxISAState, io_base,0x74 ),DEFINE_PROP_UINT8 ("irq" , M48txxISAState, isairq,8 ),
hw/rtc/m48t59.c +1 -1
@@ -618,7 +618,7 @@ static void m48txx_sysbus_toggle_lock(Nvram *obj, int lock)m48t59_toggle_lock (&d->state, lock); } -static Property m48t59_sysbus_properties[] = { +static const Property m48t59_sysbus_properties[] = {DEFINE_PROP_INT32 ("base-year" , M48txxSysBusState, state.base_year,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/rtc/mc146818rtc.c +1 -1
@@ -960,7 +960,7 @@ MC146818RtcState *mc146818_rtc_init(ISABus *bus, int base_year,return s; } -static Property mc146818rtc_properties[] = { +static const Property mc146818rtc_properties[] = {DEFINE_PROP_INT32 ("base_year" , MC146818RtcState, base_year,1980 ),DEFINE_PROP_UINT16 ("iobase" , MC146818RtcState, io_base,RTC_ISA_BASE ),DEFINE_PROP_UINT8 ("irq" , MC146818RtcState, isairq,RTC_ISA_IRQ ),
hw/rtc/pl031.c +1 -1
@@ -319,7 +319,7 @@ static const VMStateDescription vmstate_pl031 = { } }; -static Property pl031_properties[] = { +static const Property pl031_properties[] = {/* * True to correctly migrate the tick offset of the RTC. False to * obtain backward migration compatibility with older QEMU versions,
Signature · 1 line
2.43.0
[PULL 02/67] target/avr: Constify all Property
In reply to Richard Henderson--- target/avr/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/avr/cpu.c +1 -1
@@ -149,7 +149,7 @@ static void avr_cpu_initfn(Object *obj) sizeof(cpu->env.intsrc) * 8); } -static Property avr_cpu_properties[] = { +static const Property avr_cpu_properties[] = {DEFINE_PROP_UINT32 ("init-sp" ,AVRCPU , init_sp,0 ),DEFINE_PROP_END_OF_LIST () };
Signature · 1 line
2.43.0
[PULL 45/67] hw/pci-host: Constify all Property
In reply to Richard Henderson--- hw/pci-host/dino.c | 2 +- hw/pci-host/gpex.c | 2 +- hw/pci-host/grackle.c | 2 +- hw/pci-host/gt64120.c | 2 +- hw/pci-host/i440fx.c | 2 +- hw/pci-host/mv64361.c | 2 +- hw/pci-host/pnv_phb.c | 4 ++-- hw/pci-host/pnv_phb3.c | 2 +- hw/pci-host/pnv_phb4.c | 2 +- hw/pci-host/pnv_phb4_pec.c | 2 +- hw/pci-host/ppce500.c | 2 +- hw/pci-host/q35.c | 4 ++-- hw/pci-host/raven.c | 2 +- hw/pci-host/sabre.c | 2 +- hw/pci-host/uninorth.c | 2 +- hw/pci-host/versatile.c | 2 +- hw/pci-host/xilinx-pcie.c | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-)
hw/pci-host/dino.c +1 -1
@@ -492,7 +492,7 @@ static void dino_pcihost_init(Object *obj)qdev_init_gpio_in (DEVICE (obj), dino_set_irq,DINO_IRQS ); } -static Property dino_pcihost_properties[] = { +static const Property dino_pcihost_properties[] = {DEFINE_PROP_LINK ("memory-as" , DinoState, memory_as,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/pci-host/gpex.c +1 -1
@@ -147,7 +147,7 @@ static const char *gpex_host_root_bus_path(PCIHostState *host_bridge,return "0000:00" ; } -static Property gpex_host_properties[] = { +static const Property gpex_host_properties[] = {/* * Permit CPU accesses to unmapped areas of the PIO and MMIO windows * (discarding writes and returning -1 for reads) rather than aborting.
hw/pci-host/grackle.c +1 -1
@@ -129,7 +129,7 @@ static char *grackle_ofw_unit_address(const SysBusDevice *dev)return g_strdup_printf ("%x" , s->ofw_addr); } -static Property grackle_properties[] = { +static const Property grackle_properties[] = {DEFINE_PROP_UINT32 ("ofw-addr" , GrackleState, ofw_addr,-1 ),DEFINE_PROP_END_OF_LIST () };
hw/pci-host/gt64120.c +1 -1
@@ -1274,7 +1274,7 @@ static const TypeInfo gt64120_pci_info = { }, }; -static Property gt64120_properties[] = { +static const Property gt64120_properties[] = {DEFINE_PROP_BOOL ("cpu-little-endian" , GT64120State, cpu_little_endian, false),DEFINE_PROP_END_OF_LIST (),
hw/pci-host/i440fx.c +1 -1
@@ -353,7 +353,7 @@ static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge,return "0000:00" ; } -static Property i440fx_props[] = { +static const Property i440fx_props[] = {DEFINE_PROP_SIZE (PCI_HOST_PROP_PCI_HOLE64_SIZE , I440FXState, pci_hole64_size,I440FX_PCI_HOST_HOLE64_SIZE_DEFAULT ), DEFINE_PROP_SIZE(PCI_HOST_BELOW_4G_MEM_SIZE, I440FXState,
hw/pci-host/mv64361.c +1 -1
@@ -98,7 +98,7 @@ static void mv64361_pcihost_realize(DeviceState *dev, Error **errp)qdev_init_gpio_out (dev, s->irq,ARRAY_SIZE (s->irq)); } -static Property mv64361_pcihost_props[] = { +static const Property mv64361_pcihost_props[] = {DEFINE_PROP_UINT8 ("index" , MV64361PCIState, index,0 ),DEFINE_PROP_END_OF_LIST () };
hw/pci-host/pnv_phb.c +2 -2
@@ -183,7 +183,7 @@ static const char *pnv_phb_root_bus_path(PCIHostState *host_bridge,return phb->bus_path; } -static Property pnv_phb_properties[] = { +static const Property pnv_phb_properties[] = {DEFINE_PROP_UINT32 ("index" , PnvPHB, phb_id,0 ),DEFINE_PROP_UINT32 ("chip-id" , PnvPHB, chip_id,0 ),DEFINE_PROP_UINT32 ("version" , PnvPHB, version,0 ),
@@ -302,7 +302,7 @@ static void pnv_phb_root_port_realize(DeviceState *dev, Error **errp)pci_config_set_interrupt_pin (pci->config,0 ); } -static Property pnv_phb_root_port_properties[] = { +static const Property pnv_phb_root_port_properties[] = {DEFINE_PROP_UINT32 ("version" , PnvPHBRootPort, version,0 ),DEFINE_PROP_END_OF_LIST (),
hw/pci-host/pnv_phb3.c +1 -1
@@ -1090,7 +1090,7 @@ void pnv_phb3_update_regions(PnvPHB3 *phb)pnv_phb3_check_all_m64s (phb); } -static Property pnv_phb3_properties[] = { +static const Property pnv_phb3_properties[] = {DEFINE_PROP_UINT32 ("index" , PnvPHB3, phb_id,0 ),DEFINE_PROP_UINT32 ("chip-id" , PnvPHB3, chip_id,0 ), DEFINE_PROP_LINK("chip", PnvPHB3, chip, TYPE_PNV_CHIP, PnvChip *),
hw/pci-host/pnv_phb4.c +1 -1
@@ -1688,7 +1688,7 @@ static void pnv_phb4_xive_notify(XiveNotifier *xf, uint32_t srcno, } } -static Property pnv_phb4_properties[] = { +static const Property pnv_phb4_properties[] = {DEFINE_PROP_UINT32 ("index" , PnvPHB4, phb_id,0 ),DEFINE_PROP_UINT32 ("chip-id" , PnvPHB4, chip_id,0 ), DEFINE_PROP_LINK("pec", PnvPHB4, pec, TYPE_PNV_PHB4_PEC,
hw/pci-host/pnv_phb4_pec.c +1 -1
@@ -283,7 +283,7 @@ static int pnv_pec_dt_xscom(PnvXScomInterface *dev, void *fdt,return 0 ; } -static Property pnv_pec_properties[] = { +static const Property pnv_pec_properties[] = {DEFINE_PROP_UINT32 ("index" , PnvPhb4PecState, index,0 ),DEFINE_PROP_UINT32 ("chip-id" , PnvPhb4PecState, chip_id,0 ), DEFINE_PROP_LINK("chip", PnvPhb4PecState, chip, TYPE_PNV_CHIP,
hw/pci-host/ppce500.c +1 -1
@@ -507,7 +507,7 @@ static void e500_host_bridge_class_init(ObjectClass *klass, void *data) dc->user_creatable = false; } -static Property pcihost_properties[] = { +static const Property pcihost_properties[] = {DEFINE_PROP_UINT32 ("first_slot" , PPCE500PCIState, first_slot,0x11 ),DEFINE_PROP_UINT32 ("first_pin_irq" , PPCE500PCIState, first_pin_irq,0x1 ),DEFINE_PROP_END_OF_LIST (),
hw/pci-host/q35.c +2 -2
@@ -170,7 +170,7 @@ static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v,* properties need to be initialized manually by * q35_host_initfn() after the object_initialize() call. */ -static Property q35_host_props[] = { +static const Property q35_host_props[] = {DEFINE_PROP_UINT64 (PCIE_HOST_MCFG_BASE , Q35PCIHost, parent_obj.base_addr,MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT ), DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, Q35PCIHost,
@@ -662,7 +662,7 @@ static void mch_realize(PCIDevice *d, Error **errp) OBJECT(&mch->smram)); } -static Property mch_props[] = { +static const Property mch_props[] = {DEFINE_PROP_UINT16 ("extended-tseg-mbytes" , MCHPCIState, ext_tseg_mbytes,16 ),DEFINE_PROP_BOOL ("smbase-smram" , MCHPCIState, has_smram_at_smbase, true),
hw/pci-host/raven.c +1 -1
@@ -422,7 +422,7 @@ static const TypeInfo raven_info = { }, }; -static Property raven_pcihost_properties[] = { +static const Property raven_pcihost_properties[] = {DEFINE_PROP_UINT32 ("elf-machine" , PREPPCIState, pci_dev.elf_machine,EM_NONE ),DEFINE_PROP_STRING ("bios-name" , PREPPCIState, pci_dev.bios_name),
hw/pci-host/sabre.c +1 -1
@@ -492,7 +492,7 @@ static char *sabre_ofw_unit_address(const SysBusDevice *dev) (uint32_t)(s->special_base & 0xffffffff)); } -static Property sabre_properties[] = { +static const Property sabre_properties[] = {DEFINE_PROP_UINT64 ("special-base" , SabreState, special_base,0 ),DEFINE_PROP_UINT64 ("mem-base" , SabreState, mem_base,0 ),DEFINE_PROP_END_OF_LIST (),
hw/pci-host/uninorth.c +1 -1
@@ -423,7 +423,7 @@ static const TypeInfo unin_internal_pci_host_info = { }, }; -static Property pci_unin_main_pci_host_props[] = { +static const Property pci_unin_main_pci_host_props[] = {DEFINE_PROP_UINT32 ("ofw-addr" , UNINHostState, ofw_addr,-1 ),DEFINE_PROP_END_OF_LIST () };
hw/pci-host/versatile.c +1 -1
@@ -498,7 +498,7 @@ static const TypeInfo versatile_pci_host_info = { }, }; -static Property pci_vpb_properties[] = { +static const Property pci_vpb_properties[] = {DEFINE_PROP_UINT8 ("broken-irq-mapping" , PCIVPBState, irq_mapping_prop,PCI_VPB_IRQMAP_ASSUME_OK ),DEFINE_PROP_END_OF_LIST ()
hw/pci-host/xilinx-pcie.c +1 -1
@@ -156,7 +156,7 @@ static void xilinx_pcie_host_init(Object *obj)qdev_prop_set_bit (DEVICE (root),"multifunction" , false); } -static Property xilinx_pcie_host_props[] = { +static const Property xilinx_pcie_host_props[] = {DEFINE_PROP_UINT32 ("bus_nr" , XilinxPCIEHost, bus_nr,0 ),DEFINE_PROP_SIZE ("cfg_base" , XilinxPCIEHost, cfg_base,0 ),DEFINE_PROP_SIZE ("cfg_size" , XilinxPCIEHost, cfg_size,32 * MiB),
Signature · 1 line
2.43.0
[PULL 40/67] hw/net: Constify all Property
In reply to Richard Henderson--- hw/net/allwinner-sun8i-emac.c | 2 +- hw/net/allwinner_emac.c | 2 +- hw/net/cadence_gem.c | 2 +- hw/net/can/xlnx-versal-canfd.c | 2 +- hw/net/can/xlnx-zynqmp-can.c | 2 +- hw/net/dp8393x.c | 2 +- hw/net/e1000.c | 2 +- hw/net/e1000e.c | 2 +- hw/net/eepro100.c | 2 +- hw/net/fsl_etsec/etsec.c | 2 +- hw/net/ftgmac100.c | 4 ++-- hw/net/igb.c | 2 +- hw/net/imx_fec.c | 2 +- hw/net/lan9118.c | 2 +- hw/net/lance.c | 2 +- hw/net/lasi_i82596.c | 2 +- hw/net/mcf_fec.c | 2 +- hw/net/mipsnet.c | 2 +- hw/net/msf2-emac.c | 2 +- hw/net/mv88w8618_eth.c | 2 +- hw/net/ne2000-isa.c | 2 +- hw/net/ne2000-pci.c | 2 +- hw/net/npcm7xx_emc.c | 2 +- hw/net/npcm_gmac.c | 2 +- hw/net/opencores_eth.c | 2 +- hw/net/pcnet-pci.c | 2 +- hw/net/rocker/rocker.c | 2 +- hw/net/rtl8139.c | 2 +- hw/net/smc91c111.c | 2 +- hw/net/spapr_llan.c | 2 +- hw/net/stellaris_enet.c | 2 +- hw/net/sungem.c | 2 +- hw/net/sunhme.c | 2 +- hw/net/tulip.c | 2 +- hw/net/virtio-net.c | 2 +- hw/net/vmxnet3.c | 2 +- hw/net/xen_nic.c | 2 +- hw/net/xgmac.c | 2 +- hw/net/xilinx_axienet.c | 2 +- hw/net/xilinx_ethlite.c | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-)
hw/net/allwinner-sun8i-emac.c +1 -1
@@ -829,7 +829,7 @@ static void allwinner_sun8i_emac_realize(DeviceState *dev, Error **errp)qemu_format_nic_info_str (qemu_get_queue (s->nic), s->conf.macaddr.a); } -static Property allwinner_sun8i_emac_properties[] = { +static const Property allwinner_sun8i_emac_properties[] = {DEFINE_NIC_PROPERTIES (AwSun8iEmacState, conf),DEFINE_PROP_UINT8 ("phy-addr" , AwSun8iEmacState, mii_phy_addr,0 ), DEFINE_PROP_LINK("dma-memory", AwSun8iEmacState, dma_mr,
hw/net/allwinner_emac.c +1 -1
@@ -462,7 +462,7 @@ static void aw_emac_realize(DeviceState *dev, Error **errp)fifo8_create (&s->tx_fifo[1 ],TX_FIFO_SIZE ); } -static Property aw_emac_properties[] = { +static const Property aw_emac_properties[] = {DEFINE_NIC_PROPERTIES (AwEmacState, conf),DEFINE_PROP_UINT8 ("phy-addr" , AwEmacState, phy_addr,0 ),DEFINE_PROP_END_OF_LIST (),
hw/net/cadence_gem.c +1 -1
@@ -1784,7 +1784,7 @@ static const VMStateDescription vmstate_cadence_gem = { } }; -static Property gem_properties[] = { +static const Property gem_properties[] = {DEFINE_NIC_PROPERTIES (CadenceGEMState, conf),DEFINE_PROP_UINT32 ("revision" , CadenceGEMState, revision,GEM_MODID_VALUE ),
hw/net/can/xlnx-versal-canfd.c +1 -1
@@ -2042,7 +2042,7 @@ static const VMStateDescription vmstate_canfd = { } }; -static Property canfd_core_properties[] = { +static const Property canfd_core_properties[] = {DEFINE_PROP_UINT8 ("rx-fifo0" , XlnxVersalCANFDState, cfg.rx0_fifo,0x40 ),DEFINE_PROP_UINT8 ("rx-fifo1" , XlnxVersalCANFDState, cfg.rx1_fifo,0x40 ),DEFINE_PROP_UINT8 ("tx-fifo" , XlnxVersalCANFDState, cfg.tx_fifo,0x20 ),
hw/net/can/xlnx-zynqmp-can.c +1 -1
@@ -1169,7 +1169,7 @@ static const VMStateDescription vmstate_can = { } }; -static Property xlnx_zynqmp_can_properties[] = { +static const Property xlnx_zynqmp_can_properties[] = {DEFINE_PROP_UINT32 ("ext_clk_freq" , XlnxZynqMPCANState, cfg.ext_clk_freq,CAN_DEFAULT_CLOCK ), DEFINE_PROP_LINK("canbus", XlnxZynqMPCANState, canbus, TYPE_CAN_BUS,
hw/net/dp8393x.c +1 -1
@@ -931,7 +931,7 @@ static const VMStateDescription vmstate_dp8393x = { } }; -static Property dp8393x_properties[] = { +static const Property dp8393x_properties[] = {DEFINE_NIC_PROPERTIES (dp8393xState, conf),DEFINE_PROP_LINK ("dma_mr" , dp8393xState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *),
hw/net/e1000.c +1 -1
@@ -1677,7 +1677,7 @@ static void pci_e1000_realize(PCIDevice *pci_dev, Error **errp) e1000_flush_queue_timer, d); } -static Property e1000_properties[] = { +static const Property e1000_properties[] = {DEFINE_NIC_PROPERTIES (E1000State, conf),DEFINE_PROP_BIT ("extra_mac_registers" , E1000State, compat_flags,E1000_FLAG_MAC_BIT , true),
hw/net/e1000e.c +1 -1
@@ -661,7 +661,7 @@ static PropertyInfo e1000e_prop_disable_vnet, e1000e_prop_subsys_ven, e1000e_prop_subsys; -static Property e1000e_properties[] = { +static const Property e1000e_properties[] = {DEFINE_NIC_PROPERTIES (E1000EState, conf),DEFINE_PROP_SIGNED ("disable_vnet_hdr" , E1000EState, disable_vnet, false, e1000e_prop_disable_vnet, bool),
hw/net/eepro100.c +1 -1
@@ -2058,7 +2058,7 @@ static E100PCIDeviceInfo *eepro100_get_class(EEPRO100State *s)return eepro100_get_class_by_name (object_get_typename (OBJECT (s))); } -static Property e100_properties[] = { +static const Property e100_properties[] = {DEFINE_NIC_PROPERTIES (EEPRO100State, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/fsl_etsec/etsec.c +1 -1
@@ -414,7 +414,7 @@ static void etsec_instance_init(Object *obj)sysbus_init_irq (sbd, &etsec->err_irq); } -static Property etsec_properties[] = { +static const Property etsec_properties[] = {DEFINE_NIC_PROPERTIES (eTSEC, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/ftgmac100.c +2 -2
@@ -1254,7 +1254,7 @@ static const VMStateDescription vmstate_ftgmac100 = { } }; -static Property ftgmac100_properties[] = { +static const Property ftgmac100_properties[] = {DEFINE_PROP_BOOL ("aspeed" , FTGMAC100State, aspeed, false),DEFINE_NIC_PROPERTIES (FTGMAC100State, conf),DEFINE_PROP_BOOL ("dma64" , FTGMAC100State, dma64, false),
@@ -1415,7 +1415,7 @@ static const VMStateDescription vmstate_aspeed_mii = { } }; -static Property aspeed_mii_properties[] = { +static const Property aspeed_mii_properties[] = {DEFINE_PROP_LINK ("nic" , AspeedMiiState, nic,TYPE_FTGMAC100 , FTGMAC100State *),DEFINE_PROP_END_OF_LIST (),
hw/net/igb.c +1 -1
@@ -591,7 +591,7 @@ static const VMStateDescription igb_vmstate = { } }; -static Property igb_properties[] = { +static const Property igb_properties[] = {DEFINE_NIC_PROPERTIES (IGBState, conf),DEFINE_PROP_BOOL ("x-pcie-flr-init" , IGBState, has_flr, true),DEFINE_PROP_END_OF_LIST (),
hw/net/imx_fec.c +1 -1
@@ -1222,7 +1222,7 @@ static void imx_eth_realize(DeviceState *dev, Error **errp)qemu_format_nic_info_str (qemu_get_queue (s->nic), s->conf.macaddr.a); } -static Property imx_eth_properties[] = { +static const Property imx_eth_properties[] = {DEFINE_NIC_PROPERTIES (IMXFECState, conf),DEFINE_PROP_UINT32 ("tx-ring-num" , IMXFECState, tx_ring_num,1 ),DEFINE_PROP_UINT32 ("phy-num" , IMXFECState, phy_num,0 ),
hw/net/lan9118.c +1 -1
@@ -1304,7 +1304,7 @@ static void lan9118_realize(DeviceState *dev, Error **errp)ptimer_transaction_commit (s->timer); } -static Property lan9118_properties[] = { +static const Property lan9118_properties[] = {DEFINE_NIC_PROPERTIES (lan9118_state, conf),DEFINE_PROP_UINT32 ("mode_16bit" , lan9118_state, mode_16bit,0 ),DEFINE_PROP_END_OF_LIST (),
hw/net/lance.c +1 -1
@@ -137,7 +137,7 @@ static void lance_instance_init(Object *obj) DEVICE(obj)); } -static Property lance_properties[] = { +static const Property lance_properties[] = {DEFINE_PROP_LINK ("dma" , SysBusPCNetState, state.dma_opaque, TYPE_DEVICE, DeviceState *),DEFINE_NIC_PROPERTIES (SysBusPCNetState, state.conf),
hw/net/lasi_i82596.c +1 -1
@@ -158,7 +158,7 @@ static void lasi_82596_instance_init(Object *obj) DEVICE(obj)); } -static Property lasi_82596_properties[] = { +static const Property lasi_82596_properties[] = {DEFINE_NIC_PROPERTIES (SysBusI82596State, state.conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/mcf_fec.c +1 -1
@@ -660,7 +660,7 @@ static void mcf_fec_instance_init(Object *obj) } } -static Property mcf_fec_properties[] = { +static const Property mcf_fec_properties[] = {DEFINE_NIC_PROPERTIES (mcf_fec_state, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/mipsnet.c +1 -1
@@ -266,7 +266,7 @@ static void mipsnet_sysbus_reset(DeviceState *dev)mipsnet_reset (s); } -static Property mipsnet_properties[] = { +static const Property mipsnet_properties[] = {DEFINE_NIC_PROPERTIES (MIPSnetState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/msf2-emac.c +1 -1
@@ -546,7 +546,7 @@ static void msf2_emac_init(Object *obj)sysbus_init_mmio (SYS_BUS_DEVICE (obj), &s->mmio); } -static Property msf2_emac_properties[] = { +static const Property msf2_emac_properties[] = {DEFINE_PROP_LINK ("ahb-bus" , MSF2EmacState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_NIC_PROPERTIES (MSF2EmacState, conf),
hw/net/mv88w8618_eth.c +1 -1
@@ -371,7 +371,7 @@ static const VMStateDescription mv88w8618_eth_vmsd = { } }; -static Property mv88w8618_eth_properties[] = { +static const Property mv88w8618_eth_properties[] = {DEFINE_NIC_PROPERTIES (mv88w8618_eth_state, conf),DEFINE_PROP_LINK ("dma-memory" , mv88w8618_eth_state, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *),
hw/net/ne2000-isa.c +1 -1
@@ -79,7 +79,7 @@ static void isa_ne2000_realizefn(DeviceState *dev, Error **errp)qemu_format_nic_info_str (qemu_get_queue (s->nic), s->c.macaddr.a); } -static Property ne2000_isa_properties[] = { +static const Property ne2000_isa_properties[] = {DEFINE_PROP_UINT32 ("iobase" , ISANE2000State, iobase,0x300 ),DEFINE_PROP_UINT32 ("irq" , ISANE2000State, isairq,9 ),DEFINE_NIC_PROPERTIES (ISANE2000State, ne2000.c),
hw/net/ne2000-pci.c +1 -1
@@ -96,7 +96,7 @@ static void ne2000_instance_init(Object *obj) &pci_dev->qdev); } -static Property ne2000_properties[] = { +static const Property ne2000_properties[] = {DEFINE_NIC_PROPERTIES (PCINE2000State, ne2000.c),DEFINE_PROP_END_OF_LIST (), };
hw/net/npcm7xx_emc.c +1 -1
@@ -845,7 +845,7 @@ static const VMStateDescription vmstate_npcm7xx_emc = { }, }; -static Property npcm7xx_emc_properties[] = { +static const Property npcm7xx_emc_properties[] = {DEFINE_NIC_PROPERTIES (NPCM7xxEMCState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/npcm_gmac.c +1 -1
@@ -912,7 +912,7 @@ static const VMStateDescription vmstate_npcm_gmac = { }, }; -static Property npcm_gmac_properties[] = { +static const Property npcm_gmac_properties[] = {DEFINE_NIC_PROPERTIES (NPCMGMACState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/opencores_eth.c +1 -1
@@ -743,7 +743,7 @@ static void qdev_open_eth_reset(DeviceState *dev)open_eth_reset (d); } -static Property open_eth_properties[] = { +static const Property open_eth_properties[] = {DEFINE_NIC_PROPERTIES (OpenEthState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/pcnet-pci.c +1 -1
@@ -252,7 +252,7 @@ static void pcnet_instance_init(Object *obj) DEVICE(obj)); } -static Property pcnet_properties[] = { +static const Property pcnet_properties[] = {DEFINE_NIC_PROPERTIES (PCIPCNetState, state.conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/rocker/rocker.c +1 -1
@@ -1459,7 +1459,7 @@ static void rocker_reset(DeviceState *dev)DPRINTF ("Reset done\n" ); } -static Property rocker_properties[] = { +static const Property rocker_properties[] = {DEFINE_PROP_STRING ("name" , Rocker, name),DEFINE_PROP_STRING ("world" , Rocker, world_name), DEFINE_PROP_MACADDR("fp_start_macaddr", Rocker,
hw/net/rtl8139.c +1 -1
@@ -3410,7 +3410,7 @@ static void rtl8139_instance_init(Object *obj) DEVICE(obj)); } -static Property rtl8139_properties[] = { +static const Property rtl8139_properties[] = {DEFINE_NIC_PROPERTIES (RTL8139State, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/smc91c111.c +1 -1
@@ -788,7 +788,7 @@ static void smc91c111_realize(DeviceState *dev, Error **errp)/* ??? Save/restore. */ } -static Property smc91c111_properties[] = { +static const Property smc91c111_properties[] = {DEFINE_NIC_PROPERTIES (smc91c111_state, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/spapr_llan.c +1 -1
@@ -786,7 +786,7 @@ static target_ulong h_change_logical_lan_mac(PowerPCCPU *cpu,return H_SUCCESS ; } -static Property spapr_vlan_properties[] = { +static const Property spapr_vlan_properties[] = {DEFINE_SPAPR_PROPERTIES (SpaprVioVlan, sdev),DEFINE_NIC_PROPERTIES (SpaprVioVlan, nicconf), DEFINE_PROP_BIT("use-rx-buffer-pools", SpaprVioVlan,
hw/net/stellaris_enet.c +1 -1
@@ -497,7 +497,7 @@ static void stellaris_enet_realize(DeviceState *dev, Error **errp)qemu_format_nic_info_str (qemu_get_queue (s->nic), s->conf.macaddr.a); } -static Property stellaris_enet_properties[] = { +static const Property stellaris_enet_properties[] = {DEFINE_NIC_PROPERTIES (stellaris_enet_state, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/sungem.c +1 -1
@@ -1420,7 +1420,7 @@ static void sungem_instance_init(Object *obj) DEVICE(obj)); } -static Property sungem_properties[] = { +static const Property sungem_properties[] = {DEFINE_NIC_PROPERTIES (SunGEMState, conf),/* Phy address should be 0 for most Apple machines except * for K2 in which case it's 1. Will be set by a machine
hw/net/sunhme.c +1 -1
@@ -177,7 +177,7 @@ struct SunHMEState {uint16_t miiregs[HME_MII_REGS_SIZE ]; }; -static Property sunhme_properties[] = { +static const Property sunhme_properties[] = {DEFINE_NIC_PROPERTIES (SunHMEState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/tulip.c +1 -1
@@ -1007,7 +1007,7 @@ static void tulip_instance_init(Object *obj) &pci_dev->qdev); } -static Property tulip_properties[] = { +static const Property tulip_properties[] = {DEFINE_NIC_PROPERTIES (TULIPState, c),DEFINE_PROP_END_OF_LIST (), };
hw/net/virtio-net.c +1 -1
@@ -3985,7 +3985,7 @@ static const VMStateDescription vmstate_virtio_net = { .dev_unplug_pending = dev_unplug_pending, }; -static Property virtio_net_properties[] = { +static const Property virtio_net_properties[] = {DEFINE_PROP_BIT64 ("csum" , VirtIONet, host_features,VIRTIO_NET_F_CSUM , true), DEFINE_PROP_BIT64("guest_csum", VirtIONet, host_features,
hw/net/vmxnet3.c +1 -1
@@ -2471,7 +2471,7 @@ static const VMStateDescription vmstate_vmxnet3 = { } }; -static Property vmxnet3_properties[] = { +static const Property vmxnet3_properties[] = {DEFINE_NIC_PROPERTIES (VMXNET3State, conf),DEFINE_PROP_BIT ("x-old-msi-offsets" , VMXNET3State, compat_flags,VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT , false),
hw/net/xen_nic.c +1 -1
@@ -555,7 +555,7 @@ static void xen_netdev_unrealize(XenDevice *xendev)/* ------------------------------------------------------------- */ -static Property xen_netdev_properties[] = { +static const Property xen_netdev_properties[] = {DEFINE_NIC_PROPERTIES (XenNetDev, conf),DEFINE_PROP_INT32 ("idx" , XenNetDev, dev,-1 ),DEFINE_PROP_END_OF_LIST (),
hw/net/xgmac.c +1 -1
@@ -414,7 +414,7 @@ static void xgmac_enet_realize(DeviceState *dev, Error **errp) s->conf.macaddr.a[0 ]; } -static Property xgmac_properties[] = { +static const Property xgmac_properties[] = {DEFINE_NIC_PROPERTIES (XgmacState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/net/xilinx_axienet.c +1 -1
@@ -996,7 +996,7 @@ static void xilinx_enet_init(Object *obj)sysbus_init_mmio (sbd, &s->iomem); } -static Property xilinx_enet_properties[] = { +static const Property xilinx_enet_properties[] = {DEFINE_PROP_UINT32 ("phyaddr" , XilinxAXIEnet, c_phyaddr,7 ),DEFINE_PROP_UINT32 ("rxmem" , XilinxAXIEnet, c_rxmem,0x1000 ),DEFINE_PROP_UINT32 ("txmem" , XilinxAXIEnet, c_txmem,0x1000 ),
hw/net/xilinx_ethlite.c +1 -1
@@ -251,7 +251,7 @@ static void xilinx_ethlite_init(Object *obj)sysbus_init_mmio (SYS_BUS_DEVICE (obj), &s->mmio); } -static Property xilinx_ethlite_properties[] = { +static const Property xilinx_ethlite_properties[] = { DEFINE_PROP_UINT32("tx-ping-pong", struct xlx_ethlite, c_tx_pingpong, 1), DEFINE_PROP_UINT32("rx-ping-pong", struct xlx_ethlite, c_rx_pingpong, 1), DEFINE_NIC_PROPERTIES(struct xlx_ethlite, conf),
Signature · 1 line
2.43.0
[PULL 59/67] hw/tpm: Constify all Property
In reply to Richard Henderson--- hw/tpm/tpm_crb.c | 2 +- hw/tpm/tpm_spapr.c | 2 +- hw/tpm/tpm_tis_i2c.c | 2 +- hw/tpm/tpm_tis_isa.c | 2 +- hw/tpm/tpm_tis_sysbus.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/tpm/tpm_crb.c +1 -1
@@ -226,7 +226,7 @@ static const VMStateDescription vmstate_tpm_crb = { } }; -static Property tpm_crb_properties[] = { +static const Property tpm_crb_properties[] = {DEFINE_PROP_TPMBE ("tpmdev" , CRBState, tpmbe),DEFINE_PROP_BOOL ("ppi" , CRBState, ppi_enabled, true),DEFINE_PROP_END_OF_LIST (),
hw/tpm/tpm_spapr.c +1 -1
@@ -364,7 +364,7 @@ static const VMStateDescription vmstate_spapr_vtpm = { } }; -static Property tpm_spapr_properties[] = { +static const Property tpm_spapr_properties[] = {DEFINE_SPAPR_PROPERTIES (SpaprTpmState, vdev),DEFINE_PROP_TPMBE ("tpmdev" , SpaprTpmState, be_driver),DEFINE_PROP_END_OF_LIST (),
hw/tpm/tpm_tis_i2c.c +1 -1
@@ -491,7 +491,7 @@ static int tpm_tis_i2c_send(I2CSlave *i2c, uint8_t data)return 1 ; } -static Property tpm_tis_i2c_properties[] = { +static const Property tpm_tis_i2c_properties[] = {DEFINE_PROP_TPMBE ("tpmdev" , TPMStateI2C, state.be_driver),DEFINE_PROP_END_OF_LIST (), };
hw/tpm/tpm_tis_isa.c +1 -1
@@ -91,7 +91,7 @@ static void tpm_tis_isa_reset(DeviceState *dev)return tpm_tis_reset (s); } -static Property tpm_tis_isa_properties[] = { +static const Property tpm_tis_isa_properties[] = {DEFINE_PROP_UINT32 ("irq" , TPMStateISA, state.irq_num,TPM_TIS_IRQ ),DEFINE_PROP_TPMBE ("tpmdev" , TPMStateISA, state.be_driver),DEFINE_PROP_BOOL ("ppi" , TPMStateISA, state.ppi_enabled, true),
hw/tpm/tpm_tis_sysbus.c +1 -1
@@ -90,7 +90,7 @@ static void tpm_tis_sysbus_reset(DeviceState *dev)return tpm_tis_reset (s); } -static Property tpm_tis_sysbus_properties[] = { +static const Property tpm_tis_sysbus_properties[] = {DEFINE_PROP_UINT32 ("irq" , TPMStateSysBus, state.irq_num,TPM_TIS_IRQ ),DEFINE_PROP_TPMBE ("tpmdev" , TPMStateSysBus, state.be_driver),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 34/67] hw/isa: Constify all Property
In reply to Richard Henderson--- hw/isa/lpc_ich9.c | 2 +- hw/isa/pc87312.c | 2 +- hw/isa/piix.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
hw/isa/lpc_ich9.c +1 -1
@@ -826,7 +826,7 @@ static const VMStateDescription vmstate_ich9_lpc = { } }; -static Property ich9_lpc_properties[] = { +static const Property ich9_lpc_properties[] = {DEFINE_PROP_BOOL ("noreboot" , ICH9LPCState, pin_strap.spkr_hi, false),DEFINE_PROP_BOOL ("smm-compat" , ICH9LPCState, pm.smm_compat, false),DEFINE_PROP_BOOL ("smm-enabled" , ICH9LPCState, pm.smm_enabled, false),
hw/isa/pc87312.c +1 -1
@@ -327,7 +327,7 @@ static const VMStateDescription vmstate_pc87312 = { } }; -static Property pc87312_properties[] = { +static const Property pc87312_properties[] = {DEFINE_PROP_UINT16 ("iobase" , PC87312State, iobase,0x398 ),DEFINE_PROP_UINT8 ("config" , PC87312State, config,1 ),DEFINE_PROP_END_OF_LIST ()
hw/isa/piix.c +1 -1
@@ -408,7 +408,7 @@ static void pci_piix_init(Object *obj)object_initialize_child (obj,"rtc" , &d->rtc,TYPE_MC146818_RTC ); } -static Property pci_piix_props[] = { +static const Property pci_piix_props[] = {DEFINE_PROP_UINT32 ("smb_io_base" , PIIXState, smb_io_base,0 ),DEFINE_PROP_BOOL ("has-acpi" , PIIXState, has_acpi, true),DEFINE_PROP_BOOL ("has-pic" , PIIXState, has_pic, true),
Signature · 1 line
2.43.0
[PULL 25/67] hw/gpio: Constify all Property
In reply to Richard Henderson--- hw/gpio/imx_gpio.c | 2 +- hw/gpio/npcm7xx_gpio.c | 2 +- hw/gpio/omap_gpio.c | 2 +- hw/gpio/pca9552.c | 2 +- hw/gpio/pca9554.c | 2 +- hw/gpio/pl061.c | 2 +- hw/gpio/sifive_gpio.c | 2 +- hw/gpio/stm32l4x5_gpio.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
hw/gpio/imx_gpio.c +1 -1
@@ -290,7 +290,7 @@ static const VMStateDescription vmstate_imx_gpio = { } }; -static Property imx_gpio_properties[] = { +static const Property imx_gpio_properties[] = {DEFINE_PROP_BOOL ("has-edge-sel" , IMXGPIOState, has_edge_sel, true),DEFINE_PROP_BOOL ("has-upper-pin-irq" , IMXGPIOState, has_upper_pin_irq, false),
hw/gpio/npcm7xx_gpio.c +1 -1
@@ -386,7 +386,7 @@ static const VMStateDescription vmstate_npcm7xx_gpio = { }, }; -static Property npcm7xx_gpio_properties[] = { +static const Property npcm7xx_gpio_properties[] = {/* Bit n set => pin n has pullup enabled by default. */ DEFINE_PROP_UINT32 ("reset-pullup" , NPCM7xxGPIOState, reset_pu,0 ),/* Bit n set => pin n has pulldown enabled by default. */
hw/gpio/omap_gpio.c +1 -1
@@ -225,7 +225,7 @@ void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk) gpio->clk = clk; } -static Property omap_gpio_properties[] = { +static const Property omap_gpio_properties[] = {DEFINE_PROP_INT32 ("mpu_model" , Omap1GpioState, mpu_model,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/gpio/pca9552.c +1 -1
@@ -428,7 +428,7 @@ static void pca955x_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, pca955x_gpio_in_handler, k->pin_count); } -static Property pca955x_properties[] = { +static const Property pca955x_properties[] = {DEFINE_PROP_STRING ("description" , PCA955xState, description),DEFINE_PROP_END_OF_LIST (), };
hw/gpio/pca9554.c +1 -1
@@ -291,7 +291,7 @@ static void pca9554_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, pca9554_gpio_in_handler,PCA9554_PIN_COUNT ); } -static Property pca9554_properties[] = { +static const Property pca9554_properties[] = {DEFINE_PROP_STRING ("description" , PCA9554State, description),DEFINE_PROP_END_OF_LIST (), };
hw/gpio/pl061.c +1 -1
@@ -562,7 +562,7 @@ static void pl061_realize(DeviceState *dev, Error **errp) } } -static Property pl061_props[] = { +static const Property pl061_props[] = {DEFINE_PROP_UINT32 ("pullups" , PL061State, pullups,0xff ),DEFINE_PROP_UINT32 ("pulldowns" , PL061State, pulldowns,0x0 ),DEFINE_PROP_END_OF_LIST ()
hw/gpio/sifive_gpio.c +1 -1
@@ -349,7 +349,7 @@ static const VMStateDescription vmstate_sifive_gpio = { } }; -static Property sifive_gpio_properties[] = { +static const Property sifive_gpio_properties[] = {DEFINE_PROP_UINT32 ("ngpio" , SIFIVEGPIOState, ngpio,SIFIVE_GPIO_PINS ),DEFINE_PROP_END_OF_LIST (), };
hw/gpio/stm32l4x5_gpio.c +1 -1
@@ -447,7 +447,7 @@ static const VMStateDescription vmstate_stm32l4x5_gpio = { } }; -static Property stm32l4x5_gpio_properties[] = { +static const Property stm32l4x5_gpio_properties[] = {DEFINE_PROP_STRING ("name" , Stm32l4x5GpioState, name),DEFINE_PROP_UINT32 ("mode-reset" , Stm32l4x5GpioState, moder_reset,0 ),DEFINE_PROP_UINT32 ("ospeed-reset" , Stm32l4x5GpioState, ospeedr_reset,0 ),
Signature · 1 line
2.43.0
[PULL 43/67] hw/nvram: Constify all Property
In reply to Richard Henderson--- hw/nvram/ds1225y.c | 2 +- hw/nvram/eeprom_at24c.c | 2 +- hw/nvram/fw_cfg.c | 6 +++--- hw/nvram/mac_nvram.c | 2 +- hw/nvram/nrf51_nvm.c | 2 +- hw/nvram/spapr_nvram.c | 2 +- hw/nvram/xlnx-bbram.c | 2 +- hw/nvram/xlnx-efuse.c | 2 +- hw/nvram/xlnx-versal-efuse-cache.c | 2 +- hw/nvram/xlnx-versal-efuse-ctrl.c | 2 +- hw/nvram/xlnx-zynqmp-efuse.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-)
hw/nvram/ds1225y.c +1 -1
@@ -142,7 +142,7 @@ static void nvram_sysbus_realize(DeviceState *dev, Error **errp)nvram_post_load (s,0 ); } -static Property nvram_sysbus_properties[] = { +static const Property nvram_sysbus_properties[] = {DEFINE_PROP_UINT32 ("size" , SysBusNvRamState, nvram.chip_size,0x2000 ),DEFINE_PROP_STRING ("filename" , SysBusNvRamState, nvram.filename),DEFINE_PROP_END_OF_LIST (),
hw/nvram/eeprom_at24c.c +1 -1
@@ -234,7 +234,7 @@ void at24c_eeprom_reset(DeviceState *state) ee->haveaddr =0 ; } -static Property at24c_eeprom_props[] = { +static const Property at24c_eeprom_props[] = {DEFINE_PROP_UINT32 ("rom-size" , EEPROMState, rsize,0 ),DEFINE_PROP_UINT8 ("address-size" , EEPROMState, asize,0 ),DEFINE_PROP_BOOL ("writable" , EEPROMState, writable, true),
hw/nvram/fw_cfg.c +3 -3
@@ -1082,7 +1082,7 @@ static void fw_cfg_machine_ready(struct Notifier *n, void *data)qemu_register_reset (fw_cfg_machine_reset, s); } -static Property fw_cfg_properties[] = { +static const Property fw_cfg_properties[] = {DEFINE_PROP_BOOL ("acpi-mr-restore" , FWCfgState, acpi_mr_restore, true),DEFINE_PROP_END_OF_LIST (), };
@@ -1273,7 +1273,7 @@ static void fw_cfg_file_slots_allocate(FWCfgState *s, Error **errp) s->entry_order =g_new0 (int,fw_cfg_max_entry (s)); } -static Property fw_cfg_io_properties[] = { +static const Property fw_cfg_io_properties[] = {DEFINE_PROP_BOOL ("dma_enabled" , FWCfgIoState, parent_obj.dma_enabled, true), DEFINE_PROP_UINT16("x-file-slots", FWCfgIoState, parent_obj.file_slots,
@@ -1322,7 +1322,7 @@ static const TypeInfo fw_cfg_io_info = { }; -static Property fw_cfg_mem_properties[] = { +static const Property fw_cfg_mem_properties[] = {DEFINE_PROP_UINT32 ("data_width" , FWCfgMemState, data_width,-1 ),DEFINE_PROP_BOOL ("dma_enabled" , FWCfgMemState, parent_obj.dma_enabled, true),
hw/nvram/mac_nvram.c +1 -1
@@ -134,7 +134,7 @@ static void macio_nvram_unrealizefn(DeviceState *dev)g_free (s->data); } -static Property macio_nvram_properties[] = { +static const Property macio_nvram_properties[] = {DEFINE_PROP_UINT32 ("size" , MacIONVRAMState, size,0 ),DEFINE_PROP_UINT32 ("it_shift" , MacIONVRAMState, it_shift,0 ),DEFINE_PROP_DRIVE ("drive" , MacIONVRAMState, blk),
hw/nvram/nrf51_nvm.c +1 -1
@@ -354,7 +354,7 @@ static void nrf51_nvm_reset(DeviceState *dev)memset (s->uicr_content,0xFF ,sizeof (s->uicr_content)); } -static Property nrf51_nvm_properties[] = { +static const Property nrf51_nvm_properties[] = {DEFINE_PROP_UINT32 ("flash-size" , NRF51NVMState, flash_size,0x40000 ),DEFINE_PROP_END_OF_LIST (), };
hw/nvram/spapr_nvram.c +1 -1
@@ -252,7 +252,7 @@ static const VMStateDescription vmstate_spapr_nvram = { }, }; -static Property spapr_nvram_properties[] = { +static const Property spapr_nvram_properties[] = {DEFINE_SPAPR_PROPERTIES (SpaprNvram, sdev),DEFINE_PROP_DRIVE ("drive" , SpaprNvram, blk),DEFINE_PROP_END_OF_LIST (),
hw/nvram/xlnx-bbram.c +1 -1
@@ -520,7 +520,7 @@ static const VMStateDescription vmstate_bbram_ctrl = { } }; -static Property bbram_ctrl_props[] = { +static const Property bbram_ctrl_props[] = { DEFINE_PROP("drive", XlnxBBRam, blk, bbram_prop_drive, BlockBackend *),DEFINE_PROP_UINT32 ("crc-zpads" , XlnxBBRam, crc_zpads,1 ),DEFINE_PROP_END_OF_LIST (),
hw/nvram/xlnx-efuse.c +1 -1
@@ -265,7 +265,7 @@ static const PropertyInfo efuse_prop_drive = { .release = efuse_prop_release_drive, }; -static Property efuse_properties[] = { +static const Property efuse_properties[] = { DEFINE_PROP("drive", XlnxEFuse, blk, efuse_prop_drive, BlockBackend *),DEFINE_PROP_UINT8 ("efuse-nr" , XlnxEFuse, efuse_nr,3 ),DEFINE_PROP_UINT32 ("efuse-size" , XlnxEFuse, efuse_size,64 *32 ),
hw/nvram/xlnx-versal-efuse-cache.c +1 -1
@@ -83,7 +83,7 @@ static void efuse_cache_init(Object *obj)sysbus_init_mmio (sbd, &s->iomem); } -static Property efuse_cache_props[] = { +static const Property efuse_cache_props[] = {DEFINE_PROP_LINK ("efuse" , XlnxVersalEFuseCache, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *),
hw/nvram/xlnx-versal-efuse-ctrl.c +1 -1
@@ -743,7 +743,7 @@ static const VMStateDescription vmstate_efuse_ctrl = { } }; -static Property efuse_ctrl_props[] = { +static const Property efuse_ctrl_props[] = {DEFINE_PROP_LINK ("efuse" , XlnxVersalEFuseCtrl, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *),
hw/nvram/xlnx-zynqmp-efuse.c +1 -1
@@ -833,7 +833,7 @@ static const VMStateDescription vmstate_efuse = { } }; -static Property zynqmp_efuse_props[] = { +static const Property zynqmp_efuse_props[] = {DEFINE_PROP_LINK ("efuse" , XlnxZynqMPEFuse, efuse, TYPE_XLNX_EFUSE, XlnxEFuse *),
Signature · 1 line
2.43.0
[PULL 67/67] docs: Constify all Property in examples
In reply to Richard Henderson--- docs/devel/migration/compatibility.rst | 4 ++-- docs/devel/virtio-backends.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
docs/devel/migration/compatibility.rst +2 -2
@@ -198,7 +198,7 @@ was done:: The relevant parts for migration are:: - @@ -1281,7 +1284,8 @@ static Property virtio_blk_properties[] = { + @@ -1281,7 +1284,8 @@ static const Property virtio_blk_properties[] = { #endif DEFINE_PROP_BIT("request-merging", VirtIOBlock, conf.request_merging, 0, true),
@@ -395,7 +395,7 @@ the old behaviour or the new behaviour:: index 8a87ccc8b0..5153ad63d6 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c - @@ -79,6 +79,8 @@ static Property pci_props[] = { + @@ -79,6 +79,8 @@ static const Property pci_props[] = { DEFINE_PROP_STRING("failover_pair_id", PCIDevice, failover_pair_id), DEFINE_PROP_UINT32("acpi-index", PCIDevice, acpi_index, 0),
docs/devel/virtio-backends.rst +1 -1
@@ -101,7 +101,7 @@ manually instantiated: VirtIOBlock vdev; }; - static Property virtio_blk_pci_properties[] = { + static const Property virtio_blk_pci_properties[] = { DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
Signature · 1 line
2.43.0
[PULL 56/67] hw/sparc64: Constify all Property
In reply to Richard Henderson--- hw/sparc64/sun4u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/sparc64/sun4u.c +2 -2
@@ -374,7 +374,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp)pci_register_bar (pci_dev,1 ,PCI_BASE_ADDRESS_SPACE_IO , &s->bar1); } -static Property ebus_properties[] = { +static const Property ebus_properties[] = {DEFINE_PROP_UINT64 ("console-serial-base" , EbusState, console_serial_base,0 ),DEFINE_PROP_END_OF_LIST (),
@@ -532,7 +532,7 @@ static void ram_init(hwaddr addr, ram_addr_t RAM_size)sysbus_mmio_map (s,0 , addr); } -static Property ram_properties[] = { +static const Property ram_properties[] = {DEFINE_PROP_UINT64 ("size" , RamDevice, size,0 ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 58/67] hw/timer: Constify all Property
In reply to Richard Henderson--- hw/timer/a9gtimer.c | 2 +- hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 2 +- hw/timer/arm_timer.c | 2 +- hw/timer/aspeed_timer.c | 2 +- hw/timer/avr_timer16.c | 2 +- hw/timer/grlib_gptimer.c | 2 +- hw/timer/hpet.c | 2 +- hw/timer/i8254_common.c | 2 +- hw/timer/ibex_timer.c | 2 +- hw/timer/mss-timer.c | 2 +- hw/timer/nrf51_timer.c | 2 +- hw/timer/pxa2xx_timer.c | 2 +- hw/timer/renesas_cmt.c | 2 +- hw/timer/renesas_tmr.c | 2 +- hw/timer/sifive_pwm.c | 2 +- hw/timer/slavio_timer.c | 2 +- hw/timer/sse-timer.c | 2 +- hw/timer/stm32f2xx_timer.c | 2 +- hw/timer/xilinx_timer.c | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-)
hw/timer/a9gtimer.c +1 -1
@@ -373,7 +373,7 @@ static const VMStateDescription vmstate_a9_gtimer = { } }; -static Property a9_gtimer_properties[] = { +static const Property a9_gtimer_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , A9GTimerState, num_cpu,0 ),DEFINE_PROP_END_OF_LIST () };
hw/timer/allwinner-a10-pit.c +1 -1
@@ -188,7 +188,7 @@ static const MemoryRegionOps a10_pit_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -static Property a10_pit_properties[] = { +static const Property a10_pit_properties[] = {DEFINE_PROP_UINT32 ("clk0-freq" , AwA10PITState, clk_freq[0 ],0 ),DEFINE_PROP_UINT32 ("clk1-freq" , AwA10PITState, clk_freq[1 ],0 ),DEFINE_PROP_UINT32 ("clk2-freq" , AwA10PITState, clk_freq[2 ],0 ),
hw/timer/arm_mptimer.c +1 -1
@@ -300,7 +300,7 @@ static const VMStateDescription vmstate_arm_mptimer = { } }; -static Property arm_mptimer_properties[] = { +static const Property arm_mptimer_properties[] = {DEFINE_PROP_UINT32 ("num-cpu" , ARMMPTimerState, num_cpu,0 ),DEFINE_PROP_END_OF_LIST () };
hw/timer/arm_timer.c +1 -1
@@ -387,7 +387,7 @@ static const TypeInfo icp_pit_info = { .instance_init = icp_pit_init, }; -static Property sp804_properties[] = { +static const Property sp804_properties[] = {DEFINE_PROP_UINT32 ("freq0" , SP804State, freq0,1000000 ),DEFINE_PROP_UINT32 ("freq1" , SP804State, freq1,1000000 ),DEFINE_PROP_END_OF_LIST (),
hw/timer/aspeed_timer.c +1 -1
@@ -674,7 +674,7 @@ static const VMStateDescription vmstate_aspeed_timer_state = { } }; -static Property aspeed_timer_properties[] = { +static const Property aspeed_timer_properties[] = {DEFINE_PROP_LINK ("scu" , AspeedTimerCtrlState, scu,TYPE_ASPEED_SCU , AspeedSCUState *),DEFINE_PROP_END_OF_LIST (),
hw/timer/avr_timer16.c +1 -1
@@ -542,7 +542,7 @@ static const MemoryRegionOps avr_timer16_ifr_ops = { .impl = {.max_access_size = 1} }; -static Property avr_timer16_properties[] = { +static const Property avr_timer16_properties[] = { DEFINE_PROP_UINT8("id", struct AVRTimer16State, id, 0), DEFINE_PROP_UINT64("cpu-frequency-hz", struct AVRTimer16State, cpu_freq_hz,0 ),
hw/timer/grlib_gptimer.c +1 -1
@@ -403,7 +403,7 @@ static void grlib_gptimer_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (sbd, &unit->iomem); } -static Property grlib_gptimer_properties[] = { +static const Property grlib_gptimer_properties[] = {DEFINE_PROP_UINT32 ("frequency" , GPTimerUnit, freq_hz,40000000 ),DEFINE_PROP_UINT32 ("irq-line" , GPTimerUnit, irq_line,8 ),DEFINE_PROP_UINT32 ("nr-timers" , GPTimerUnit, nr_timers,2 ),
hw/timer/hpet.c +1 -1
@@ -745,7 +745,7 @@ static void hpet_realize(DeviceState *dev, Error **errp)qdev_init_gpio_out (dev, &s->pit_enabled,1 ); } -static Property hpet_device_properties[] = { +static const Property hpet_device_properties[] = {DEFINE_PROP_UINT8 ("timers" , HPETState, num_timers,HPET_MIN_TIMERS ),DEFINE_PROP_BIT ("msi" , HPETState, flags,HPET_MSI_SUPPORT , false),DEFINE_PROP_UINT32 (HPET_INTCAP , HPETState, intcap,0 ),
hw/timer/i8254_common.c +1 -1
@@ -238,7 +238,7 @@ static const VMStateDescription vmstate_pit_common = { } }; -static Property pit_common_properties[] = { +static const Property pit_common_properties[] = {DEFINE_PROP_UINT32 ("iobase" , PITCommonState, iobase,-1 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/ibex_timer.c +1 -1
@@ -263,7 +263,7 @@ static const VMStateDescription vmstate_ibex_timer = { } }; -static Property ibex_timer_properties[] = { +static const Property ibex_timer_properties[] = {DEFINE_PROP_UINT32 ("timebase-freq" , IbexTimerState, timebase_freq,10000 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/mss-timer.c +1 -1
@@ -279,7 +279,7 @@ static const VMStateDescription vmstate_mss_timer = { } }; -static Property mss_timer_properties[] = { +static const Property mss_timer_properties[] = {/* Libero GUI shows 100Mhz as default for clocks */ DEFINE_PROP_UINT32 ("clock-frequency" , MSSTimerState, freq_hz,100 *1000000 ),
hw/timer/nrf51_timer.c +1 -1
@@ -379,7 +379,7 @@ static const VMStateDescription vmstate_nrf51_timer = { } }; -static Property nrf51_timer_properties[] = { +static const Property nrf51_timer_properties[] = {DEFINE_PROP_UINT8 ("id" , NRF51TimerState, id,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/pxa2xx_timer.c +1 -1
@@ -549,7 +549,7 @@ static const VMStateDescription vmstate_pxa2xx_timer_regs = { } }; -static Property pxa25x_timer_dev_properties[] = { +static const Property pxa25x_timer_dev_properties[] = {DEFINE_PROP_UINT32 ("freq" , PXA2xxTimerInfo, freq,PXA25X_FREQ ),DEFINE_PROP_BIT ("tm4" , PXA2xxTimerInfo, flags,PXA2XX_TIMER_HAVE_TM4 , false),
hw/timer/renesas_cmt.c +1 -1
@@ -253,7 +253,7 @@ static const VMStateDescription vmstate_rcmt = { } }; -static Property rcmt_properties[] = { +static const Property rcmt_properties[] = {DEFINE_PROP_UINT64 ("input-freq" , RCMTState, input_freq,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/renesas_tmr.c +1 -1
@@ -463,7 +463,7 @@ static const VMStateDescription vmstate_rtmr = { } }; -static Property rtmr_properties[] = { +static const Property rtmr_properties[] = {DEFINE_PROP_UINT64 ("input-freq" , RTMRState, input_freq,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/sifive_pwm.c +1 -1
@@ -404,7 +404,7 @@ static const VMStateDescription vmstate_sifive_pwm = { } }; -static Property sifive_pwm_properties[] = { +static const Property sifive_pwm_properties[] = {/* 0.5Ghz per spec after FSBL */ DEFINE_PROP_UINT64("clock-frequency", struct SiFivePwmState, freq_hz,500000000ULL ),
hw/timer/slavio_timer.c +1 -1
@@ -420,7 +420,7 @@ static void slavio_timer_init(Object *obj) } } -static Property slavio_timer_properties[] = { +static const Property slavio_timer_properties[] = {DEFINE_PROP_UINT32 ("num_cpus" , SLAVIO_TIMERState, num_cpus,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/timer/sse-timer.c +1 -1
@@ -440,7 +440,7 @@ static const VMStateDescription sse_timer_vmstate = { } }; -static Property sse_timer_properties[] = { +static const Property sse_timer_properties[] = { DEFINE_PROP_LINK("counter", SSETimer, counter, TYPE_SSE_COUNTER, SSECounter *),DEFINE_PROP_END_OF_LIST (), };
hw/timer/stm32f2xx_timer.c +1 -1
@@ -298,7 +298,7 @@ static const VMStateDescription vmstate_stm32f2xx_timer = { } }; -static Property stm32f2xx_timer_properties[] = { +static const Property stm32f2xx_timer_properties[] = { DEFINE_PROP_UINT64("clock-frequency", struct STM32F2XXTimerState, freq_hz,1000000000 ),DEFINE_PROP_END_OF_LIST (),
hw/timer/xilinx_timer.c +1 -1
@@ -242,7 +242,7 @@ static void xilinx_timer_init(Object *obj)sysbus_init_irq (SYS_BUS_DEVICE (obj), &t->irq); } -static Property xilinx_timer_properties[] = { +static const Property xilinx_timer_properties[] = {DEFINE_PROP_UINT32 ("clock-frequency" , XpsTimerState, freq_hz,62 *1000000 ),DEFINE_PROP_UINT8 ("one-timer-only" , XpsTimerState, one_timer_only,0 ),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 62/67] hw/vfio: Constify all Property
In reply to Richard Henderson--- hw/vfio/ap.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 4 ++-- hw/vfio/platform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
hw/vfio/ap.c +1 -1
@@ -191,7 +191,7 @@ static void vfio_ap_unrealize(DeviceState *dev)g_free (vapdev->vdev.name); } -static Property vfio_ap_properties[] = { +static const Property vfio_ap_properties[] = {DEFINE_PROP_STRING ("sysfsdev" , VFIOAPDevice, vdev.sysfsdev), #ifdef CONFIG_IOMMUFD DEFINE_PROP_LINK("iommufd", VFIOAPDevice, vdev.iommufd,
hw/vfio/ccw.c +1 -1
@@ -655,7 +655,7 @@ static void vfio_ccw_unrealize(DeviceState *dev) } } -static Property vfio_ccw_properties[] = { +static const Property vfio_ccw_properties[] = {DEFINE_PROP_STRING ("sysfsdev" , VFIOCCWDevice, vdev.sysfsdev),DEFINE_PROP_BOOL ("force-orb-pfch" , VFIOCCWDevice, force_orb_pfch, false), #ifdef CONFIG_IOMMUFD
hw/vfio/pci.c +2 -2
@@ -3354,7 +3354,7 @@ static void vfio_instance_init(Object *obj) pci_dev->cap_present |=QEMU_PCI_CAP_EXPRESS ; } -static Property vfio_pci_dev_properties[] = { +static const Property vfio_pci_dev_properties[] = {DEFINE_PROP_PCI_HOST_DEVADDR ("host" , VFIOPCIDevice, host),DEFINE_PROP_UUID_NODEFAULT ("vf-token" , VFIOPCIDevice, vf_token),DEFINE_PROP_STRING ("sysfsdev" , VFIOPCIDevice, vbasedev.sysfsdev),
@@ -3451,7 +3451,7 @@ static const TypeInfo vfio_pci_dev_info = { }, }; -static Property vfio_pci_dev_nohotplug_properties[] = { +static const Property vfio_pci_dev_nohotplug_properties[] = {DEFINE_PROP_BOOL ("ramfb" , VFIOPCIDevice, enable_ramfb, false),DEFINE_PROP_ON_OFF_AUTO ("x-ramfb-migrate" , VFIOPCIDevice, ramfb_migrate,ON_OFF_AUTO_AUTO ),
hw/vfio/platform.c +1 -1
@@ -629,7 +629,7 @@ static const VMStateDescription vfio_platform_vmstate = { .unmigratable = 1, }; -static Property vfio_platform_dev_properties[] = { +static const Property vfio_platform_dev_properties[] = {DEFINE_PROP_STRING ("host" , VFIOPlatformDevice, vbasedev.name),DEFINE_PROP_STRING ("sysfsdev" , VFIOPlatformDevice, vbasedev.sysfsdev),DEFINE_PROP_BOOL ("x-no-mmap" , VFIOPlatformDevice, vbasedev.no_mmap, false),
Signature · 1 line
2.43.0
[PULL 20/67] hw/core: Constify all Property
In reply to Richard Henderson--- hw/core/generic-loader.c | 2 +- hw/core/guest-loader.c | 2 +- hw/core/or-irq.c | 2 +- hw/core/platform-bus.c | 2 +- hw/core/split-irq.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/core/generic-loader.c +1 -1
@@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev)qemu_unregister_reset (generic_loader_reset, dev); } -static Property generic_loader_props[] = { +static const Property generic_loader_props[] = {DEFINE_PROP_UINT64 ("addr" , GenericLoaderState, addr,0 ),DEFINE_PROP_UINT64 ("data" , GenericLoaderState, data,0 ),DEFINE_PROP_UINT8 ("data-len" , GenericLoaderState, data_len,0 ),
hw/core/guest-loader.c +1 -1
@@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error **errp)loader_insert_platform_data (s, size, errp); } -static Property guest_loader_props[] = { +static const Property guest_loader_props[] = {DEFINE_PROP_UINT64 ("addr" , GuestLoaderState, addr,0 ),DEFINE_PROP_STRING ("kernel" , GuestLoaderState, kernel),DEFINE_PROP_STRING ("bootargs" , GuestLoaderState, args),
hw/core/or-irq.c +1 -1
@@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = { }, }; -static Property or_irq_properties[] = { +static const Property or_irq_properties[] = {DEFINE_PROP_UINT16 ("num-lines" , OrIRQState, num_lines,1 ),DEFINE_PROP_END_OF_LIST (), };
hw/core/platform-bus.c +1 -1
@@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error **errp)plaform_bus_refresh_irqs (pbus); } -static Property platform_bus_properties[] = { +static const Property platform_bus_properties[] = {DEFINE_PROP_UINT32 ("num_irqs" , PlatformBusDevice, num_irqs,0 ),DEFINE_PROP_UINT32 ("mmio_size" , PlatformBusDevice, mmio_size,0 ),DEFINE_PROP_END_OF_LIST ()
hw/core/split-irq.c +1 -1
@@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp)qdev_init_gpio_out (dev, s->out_irq, s->num_lines); } -static Property split_irq_properties[] = { +static const Property split_irq_properties[] = {DEFINE_PROP_UINT16 ("num-lines" , SplitIRQ, num_lines,1 ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 51/67] hw/rx: Constify all Property
In reply to Richard Henderson--- hw/rx/rx62n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/rx/rx62n.c +1 -1
@@ -257,7 +257,7 @@ static void rx62n_realize(DeviceState *dev, Error **errp)register_sci (s,0 ); } -static Property rx62n_properties[] = { +static const Property rx62n_properties[] = {DEFINE_PROP_LINK ("main-bus" , RX62NState, sysmem,TYPE_MEMORY_REGION , MemoryRegion *),DEFINE_PROP_BOOL ("load-kernel" , RX62NState, kernel, false),
Signature · 1 line
2.43.0
[PULL 46/67] hw/pci: Constify all Property
In reply to Richard Henderson--- hw/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 2 +- hw/pci/pci_host.c | 2 +- hw/pci/pcie_port.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-)
hw/pci/pci.c +1 -1
@@ -81,7 +81,7 @@ static const PropertyInfo prop_pci_busnr = { .get = prop_pci_busnr_get, }; -static Property pci_props[] = { +static const Property pci_props[] = {DEFINE_PROP_PCI_DEVFN ("addr" , PCIDevice, devfn,-1 ),DEFINE_PROP_STRING ("romfile" , PCIDevice, romfile),DEFINE_PROP_UINT32 ("romsize" , PCIDevice, romsize,UINT32_MAX ),
hw/pci/pci_bridge.c +1 -1
@@ -477,7 +477,7 @@ int pci_bridge_qemu_reserve_cap_init(PCIDevice *dev, int cap_offset,return 0 ; } -static Property pci_bridge_properties[] = { +static const Property pci_bridge_properties[] = {DEFINE_PROP_BOOL ("x-pci-express-writeable-slt-bug" , PCIBridge, pcie_writeable_slt_bug, false),DEFINE_PROP_END_OF_LIST (),
hw/pci/pci_host.c +1 -1
@@ -240,7 +240,7 @@ const VMStateDescription vmstate_pcihost = { } }; -static Property pci_host_properties_common[] = { +static const Property pci_host_properties_common[] = {DEFINE_PROP_BOOL ("x-config-reg-migration-enabled" , PCIHostState, mig_enabled, true),DEFINE_PROP_BOOL (PCI_HOST_BYPASS_IOMMU , PCIHostState, bypass_iommu, false),
hw/pci/pcie_port.c +2 -2
@@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s)QLIST_REMOVE (s, next); } -static Property pcie_port_props[] = { +static const Property pcie_port_props[] = {DEFINE_PROP_UINT8 ("port" , PCIEPort, port,0 ), DEFINE_PROP_UINT16("aer_log_max", PCIEPort, parent_obj.parent_obj.exp.aer_log.log_max,
@@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = { .class_init = pcie_port_class_init, }; -static Property pcie_slot_props[] = { +static const Property pcie_slot_props[] = {DEFINE_PROP_UINT8 ("chassis" , PCIESlot, chassis,0 ),DEFINE_PROP_UINT16 ("slot" , PCIESlot, slot,0 ),DEFINE_PROP_BOOL ("hotplug" , PCIESlot, hotplug, true),
Signature · 1 line
2.43.0
[PULL 61/67] hw/usb: Constify all Property
In reply to Richard Henderson--- hw/usb/bus.c | 2 +- hw/usb/canokey.c | 2 +- hw/usb/ccid-card-emulated.c | 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-audio.c | 2 +- hw/usb/dev-hid.c | 6 +++--- hw/usb/dev-hub.c | 2 +- hw/usb/dev-mtp.c | 2 +- hw/usb/dev-network.c | 2 +- hw/usb/dev-serial.c | 4 ++-- hw/usb/dev-smartcard-reader.c | 4 ++-- hw/usb/dev-storage-classic.c | 2 +- hw/usb/dev-uas.c | 2 +- hw/usb/hcd-dwc2.c | 2 +- hw/usb/hcd-dwc3.c | 2 +- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 2 +- hw/usb/hcd-ohci-pci.c | 2 +- hw/usb/hcd-ohci-sysbus.c | 2 +- hw/usb/hcd-uhci.c | 4 ++-- hw/usb/hcd-xhci-nec.c | 2 +- hw/usb/hcd-xhci-sysbus.c | 2 +- hw/usb/hcd-xhci.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/usb/redirect.c | 2 +- hw/usb/u2f-emulated.c | 2 +- hw/usb/u2f-passthru.c | 2 +- 27 files changed, 32 insertions(+), 32 deletions(-)
hw/usb/bus.c +1 -1
@@ -18,7 +18,7 @@ static char *usb_get_dev_path(DeviceState *dev);static char *usb_get_fw_dev_path (DeviceState *qdev);static void usb_qdev_unrealize (DeviceState *qdev); -static Property usb_props[] = { +static const Property usb_props[] = {DEFINE_PROP_STRING ("port" , USBDevice, port_path),DEFINE_PROP_STRING ("serial" , USBDevice, serial), DEFINE_PROP_BIT("msos-desc", USBDevice, flags,
hw/usb/canokey.c +1 -1
@@ -296,7 +296,7 @@ static void canokey_unrealize(USBDevice *base)trace_canokey_unrealize (); } -static Property canokey_properties[] = { +static const Property canokey_properties[] = {DEFINE_PROP_STRING ("file" , CanoKeyState, file),DEFINE_PROP_END_OF_LIST (), };
hw/usb/ccid-card-emulated.c +1 -1
@@ -582,7 +582,7 @@ static void emulated_unrealize(CCIDCardState *base)qemu_mutex_destroy (&card->event_list_mutex); } -static Property emulated_card_properties[] = { +static const Property emulated_card_properties[] = {DEFINE_PROP_STRING ("backend" , EmulatedState, backend_str),DEFINE_PROP_STRING ("cert1" , EmulatedState, cert1),DEFINE_PROP_STRING ("cert2" , EmulatedState, cert2),
hw/usb/ccid-card-passthru.c +1 -1
@@ -388,7 +388,7 @@ static const VMStateDescription passthru_vmstate = { } }; -static Property passthru_card_properties[] = { +static const Property passthru_card_properties[] = {DEFINE_PROP_CHR ("chardev" , PassthruState, cs),DEFINE_PROP_UINT8 ("debug" , PassthruState, debug,0 ),DEFINE_PROP_END_OF_LIST (),
hw/usb/dev-audio.c +1 -1
@@ -990,7 +990,7 @@ static const VMStateDescription vmstate_usb_audio = { .unmigratable = 1, }; -static Property usb_audio_properties[] = { +static const Property usb_audio_properties[] = {DEFINE_AUDIO_PROPERTIES (USBAudioState, card),DEFINE_PROP_UINT32 ("debug" , USBAudioState, debug,0 ),DEFINE_PROP_UINT32 ("buffer" , USBAudioState, buffer_user,0 ),
hw/usb/dev-hid.c +3 -3
@@ -793,7 +793,7 @@ static const TypeInfo usb_hid_type_info = { .class_init = usb_hid_class_initfn, }; -static Property usb_tablet_properties[] = { +static const Property usb_tablet_properties[] = {DEFINE_PROP_UINT32 ("usb_version" , USBHIDState, usb_version,2 ),DEFINE_PROP_STRING ("display" , USBHIDState, display),DEFINE_PROP_UINT32 ("head" , USBHIDState, head,0 ),
@@ -818,7 +818,7 @@ static const TypeInfo usb_tablet_info = { .class_init = usb_tablet_class_initfn, }; -static Property usb_mouse_properties[] = { +static const Property usb_mouse_properties[] = {DEFINE_PROP_UINT32 ("usb_version" , USBHIDState, usb_version,2 ),DEFINE_PROP_END_OF_LIST (), };
@@ -841,7 +841,7 @@ static const TypeInfo usb_mouse_info = { .class_init = usb_mouse_class_initfn, }; -static Property usb_keyboard_properties[] = { +static const Property usb_keyboard_properties[] = {DEFINE_PROP_UINT32 ("usb_version" , USBHIDState, usb_version,2 ),DEFINE_PROP_STRING ("display" , USBHIDState, display),DEFINE_PROP_END_OF_LIST (),
hw/usb/dev-hub.c +1 -1
@@ -665,7 +665,7 @@ static const VMStateDescription vmstate_usb_hub = { } }; -static Property usb_hub_properties[] = { +static const Property usb_hub_properties[] = {DEFINE_PROP_UINT32 ("ports" , USBHubState, num_ports,8 ),DEFINE_PROP_BOOL ("port-power" , USBHubState, port_power, false),DEFINE_PROP_END_OF_LIST (),
hw/usb/dev-mtp.c +1 -1
@@ -2078,7 +2078,7 @@ static const VMStateDescription vmstate_usb_mtp = { } }; -static Property mtp_properties[] = { +static const Property mtp_properties[] = {DEFINE_PROP_STRING ("rootdir" , MTPState, root),DEFINE_PROP_STRING ("desc" , MTPState, desc),DEFINE_PROP_BOOL ("readonly" , MTPState, readonly, true),
hw/usb/dev-network.c +1 -1
@@ -1407,7 +1407,7 @@ static const VMStateDescription vmstate_usb_net = { .unmigratable = 1, }; -static Property net_properties[] = { +static const Property net_properties[] = {DEFINE_NIC_PROPERTIES (USBNetState, conf),DEFINE_PROP_END_OF_LIST (), };
hw/usb/dev-serial.c +2 -2
@@ -634,7 +634,7 @@ static const VMStateDescription vmstate_usb_serial = { .unmigratable = 1, }; -static Property serial_properties[] = { +static const Property serial_properties[] = {DEFINE_PROP_CHR ("chardev" , USBSerialState, cs),DEFINE_PROP_BOOL ("always-plugged" , USBSerialState, always_plugged, false),DEFINE_PROP_END_OF_LIST (),
@@ -677,7 +677,7 @@ static const TypeInfo serial_info = { .class_init = usb_serial_class_initfn, }; -static Property braille_properties[] = { +static const Property braille_properties[] = {DEFINE_PROP_CHR ("chardev" , USBSerialState, cs),DEFINE_PROP_END_OF_LIST (), };
hw/usb/dev-smartcard-reader.c +2 -2
@@ -1171,7 +1171,7 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s) : &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM]; } -static Property ccid_props[] = { +static const Property ccid_props[] = { DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),DEFINE_PROP_END_OF_LIST (), };
@@ -1431,7 +1431,7 @@ static const VMStateDescription ccid_vmstate = { } }; -static Property ccid_properties[] = { +static const Property ccid_properties[] = {DEFINE_PROP_UINT8 ("debug" , USBCCIDState, debug,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/usb/dev-storage-classic.c +1 -1
@@ -67,7 +67,7 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp) s->scsi_dev = scsi_dev; } -static Property msd_properties[] = { +static const Property msd_properties[] = {DEFINE_BLOCK_PROPERTIES (MSDState, conf),DEFINE_BLOCK_ERROR_PROPERTIES (MSDState, conf),DEFINE_PROP_BOOL ("removable" , MSDState, removable, false),
hw/usb/dev-uas.c +1 -1
@@ -953,7 +953,7 @@ static const VMStateDescription vmstate_usb_uas = { } }; -static Property uas_properties[] = { +static const Property uas_properties[] = {DEFINE_PROP_UINT32 ("log-scsi-req" , UASDevice, requestlog,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/usb/hcd-dwc2.c +1 -1
@@ -1448,7 +1448,7 @@ const VMStateDescription vmstate_dwc2_state = { } }; -static Property dwc2_usb_properties[] = { +static const Property dwc2_usb_properties[] = {DEFINE_PROP_UINT32 ("usb_version" , DWC2State, usb_version,2 ),DEFINE_PROP_END_OF_LIST (), };
hw/usb/hcd-dwc3.c +1 -1
@@ -656,7 +656,7 @@ static const VMStateDescription vmstate_usb_dwc3 = { } }; -static Property usb_dwc3_properties[] = { +static const Property usb_dwc3_properties[] = {DEFINE_PROP_UINT32 ("DWC_USB3_USERID" ,USBDWC3 , cfg.dwc_usb3_user,0x12345678 ),DEFINE_PROP_END_OF_LIST (),
hw/usb/hcd-ehci-pci.c +1 -1
@@ -135,7 +135,7 @@ static void usb_ehci_pci_write_config(PCIDevice *dev, uint32_t addr, i->ehci.as = busmaster ?pci_get_address_space (dev) : &address_space_memory; } -static Property ehci_pci_properties[] = { +static const Property ehci_pci_properties[] = {DEFINE_PROP_UINT32 ("maxframes" , EHCIPCIState, ehci.maxframes,128 ),DEFINE_PROP_END_OF_LIST (), };
hw/usb/hcd-ehci-sysbus.c +1 -1
@@ -30,7 +30,7 @@ static const VMStateDescription vmstate_ehci_sysbus = { } }; -static Property ehci_sysbus_properties[] = { +static const Property ehci_sysbus_properties[] = {DEFINE_PROP_UINT32 ("maxframes" , EHCISysBusState, ehci.maxframes,128 ),DEFINE_PROP_BOOL ("companion-enable" , EHCISysBusState, ehci.companion_enable, false),
hw/usb/hcd-ohci-pci.c +1 -1
@@ -109,7 +109,7 @@ static void usb_ohci_reset_pci(DeviceState *d)ohci_hard_reset (s); } -static Property ohci_pci_properties[] = { +static const Property ohci_pci_properties[] = {DEFINE_PROP_STRING ("masterbus" , OHCIPCIState, masterbus),DEFINE_PROP_UINT32 ("num-ports" , OHCIPCIState, num_ports,3 ),DEFINE_PROP_UINT32 ("firstport" , OHCIPCIState, firstport,0 ),
hw/usb/hcd-ohci-sysbus.c +1 -1
@@ -57,7 +57,7 @@ static void ohci_sysbus_reset(DeviceState *dev)ohci_hard_reset (ohci); } -static Property ohci_sysbus_properties[] = { +static const Property ohci_sysbus_properties[] = {DEFINE_PROP_STRING ("masterbus" , OHCISysBusState, masterbus),DEFINE_PROP_UINT32 ("num-ports" , OHCISysBusState, num_ports,3 ),DEFINE_PROP_UINT32 ("firstport" , OHCISysBusState, firstport,0 ),
hw/usb/hcd-uhci.c +2 -2
@@ -1227,14 +1227,14 @@ static void usb_uhci_exit(PCIDevice *dev) } } -static Property uhci_properties_companion[] = { +static const Property uhci_properties_companion[] = {DEFINE_PROP_STRING ("masterbus" , UHCIState, masterbus),DEFINE_PROP_UINT32 ("firstport" , UHCIState, firstport,0 ),DEFINE_PROP_UINT32 ("bandwidth" , UHCIState, frame_bandwidth,1280 ),DEFINE_PROP_UINT32 ("maxframes" , UHCIState, maxframes,128 ),DEFINE_PROP_END_OF_LIST (), }; -static Property uhci_properties_standalone[] = { +static const Property uhci_properties_standalone[] = {DEFINE_PROP_UINT32 ("bandwidth" , UHCIState, frame_bandwidth,1280 ),DEFINE_PROP_UINT32 ("maxframes" , UHCIState, maxframes,128 ),DEFINE_PROP_END_OF_LIST (),
hw/usb/hcd-xhci-nec.c +1 -1
@@ -36,7 +36,7 @@ struct XHCINecState {uint32_t slots; }; -static Property nec_xhci_properties[] = { +static const Property nec_xhci_properties[] = {DEFINE_PROP_ON_OFF_AUTO ("msi" , XHCIPciState, msi,ON_OFF_AUTO_AUTO ),DEFINE_PROP_ON_OFF_AUTO ("msix" , XHCIPciState, msix,ON_OFF_AUTO_AUTO ),DEFINE_PROP_UINT32 ("intrs" , XHCINecState, intrs,XHCI_MAXINTRS ),
hw/usb/hcd-xhci-sysbus.c +1 -1
@@ -82,7 +82,7 @@ void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq)aml_append (scope, dev); } -static Property xhci_sysbus_props[] = { +static const Property xhci_sysbus_props[] = {DEFINE_PROP_UINT32 ("intrs" , XHCISysbusState, xhci.numintrs,XHCI_MAXINTRS ),DEFINE_PROP_UINT32 ("slots" , XHCISysbusState, xhci.numslots,XHCI_MAXSLOTS ),DEFINE_PROP_END_OF_LIST (),
hw/usb/hcd-xhci.c +1 -1
@@ -3605,7 +3605,7 @@ const VMStateDescription vmstate_xhci = { } }; -static Property xhci_properties[] = { +static const Property xhci_properties[] = {DEFINE_PROP_BIT ("streams" , XHCIState, flags,XHCI_FLAG_ENABLE_STREAMS , true),DEFINE_PROP_UINT32 ("p2" , XHCIState, numports_2,4 ),
hw/usb/host-libusb.c +1 -1
@@ -1758,7 +1758,7 @@ static const VMStateDescription vmstate_usb_host = { } }; -static Property usb_host_dev_properties[] = { +static const Property usb_host_dev_properties[] = {DEFINE_PROP_UINT32 ("hostbus" , USBHostDevice, match.bus_num,0 ),DEFINE_PROP_UINT32 ("hostaddr" , USBHostDevice, match.addr,0 ),DEFINE_PROP_STRING ("hostport" , USBHostDevice, match.port),
hw/usb/redirect.c +1 -1
@@ -2573,7 +2573,7 @@ static const VMStateDescription usbredir_vmstate = { } }; -static Property usbredir_properties[] = { +static const Property usbredir_properties[] = {DEFINE_PROP_CHR ("chardev" , USBRedirDevice, cs),DEFINE_PROP_UINT8 ("debug" , USBRedirDevice, debug, usbredirparser_warning),DEFINE_PROP_STRING ("filter" , USBRedirDevice, filter_str),
hw/usb/u2f-emulated.c +1 -1
@@ -369,7 +369,7 @@ static void u2f_emulated_unrealize(U2FKeyState *base) } } -static Property u2f_emulated_properties[] = { +static const Property u2f_emulated_properties[] = {DEFINE_PROP_STRING ("dir" , U2FEmulatedState, dir),DEFINE_PROP_STRING ("cert" , U2FEmulatedState, cert),DEFINE_PROP_STRING ("privkey" , U2FEmulatedState, privkey),
hw/usb/u2f-passthru.c +1 -1
@@ -516,7 +516,7 @@ static const VMStateDescription u2f_passthru_vmstate = { } }; -static Property u2f_passthru_properties[] = { +static const Property u2f_passthru_properties[] = {DEFINE_PROP_STRING ("hidraw" , U2FPassthruState, hidraw),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 65/67] hw/xen: Constify all Property
In reply to Richard Henderson--- hw/xen/xen-bus.c | 2 +- hw/xen/xen_pt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/xen/xen-bus.c +1 -1
@@ -1092,7 +1092,7 @@ unrealize:xen_device_unrealize (dev); } -static Property xen_device_props[] = { +static const Property xen_device_props[] = {DEFINE_PROP_UINT16 ("frontend-id" , XenDevice, frontend_id,DOMID_INVALID ),DEFINE_PROP_END_OF_LIST ()
hw/xen/xen_pt.c +1 -1
@@ -931,7 +931,7 @@ static void xen_pt_unregister_device(PCIDevice *d)xen_pt_destroy (d); } -static Property xen_pci_passthrough_properties[] = { +static const Property xen_pci_passthrough_properties[] = {DEFINE_PROP_PCI_HOST_DEVADDR ("hostaddr" , XenPCIPassthroughState, hostaddr),DEFINE_PROP_BOOL ("permissive" , XenPCIPassthroughState, permissive, false),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 42/67] hw/nvme: Constify all Property
In reply to Richard Henderson--- hw/nvme/ctrl.c | 2 +- hw/nvme/ns.c | 2 +- hw/nvme/subsys.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
hw/nvme/ctrl.c +1 -1
@@ -8927,7 +8927,7 @@ static void nvme_exit(PCIDevice *pci_dev)memory_region_del_subregion (&n->bar0, &n->iomem); } -static Property nvme_props[] = { +static const Property nvme_props[] = {DEFINE_BLOCK_PROPERTIES (NvmeCtrl, namespace.blkconf),DEFINE_PROP_LINK ("pmrdev" , NvmeCtrl, pmr.dev,TYPE_MEMORY_BACKEND , HostMemoryBackend *),
hw/nvme/ns.c +1 -1
@@ -799,7 +799,7 @@ static void nvme_ns_realize(DeviceState *dev, Error **errp)nvme_attach_ns (n, ns); } -static Property nvme_ns_props[] = { +static const Property nvme_ns_props[] = {DEFINE_BLOCK_PROPERTIES (NvmeNamespace, blkconf),DEFINE_PROP_BOOL ("detached" , NvmeNamespace, params.detached, false),DEFINE_PROP_BOOL ("shared" , NvmeNamespace, params.shared, true),
hw/nvme/subsys.c +1 -1
@@ -216,7 +216,7 @@ static void nvme_subsys_realize(DeviceState *dev, Error **errp)nvme_subsys_setup (subsys, errp); } -static Property nvme_subsystem_props[] = { +static const Property nvme_subsystem_props[] = {DEFINE_PROP_STRING ("nqn" , NvmeSubsystem, params.nqn),DEFINE_PROP_BOOL ("fdp" , NvmeSubsystem, params.fdp.enabled, false), DEFINE_PROP_SIZE("fdp.runs", NvmeSubsystem, params.fdp.runs,
Signature · 1 line
2.43.0
[PULL 55/67] hw/sparc: Constify all Property
In reply to Richard Henderson--- hw/sparc/sun4m_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/sparc/sun4m_iommu.c +1 -1
@@ -368,7 +368,7 @@ static void iommu_init(Object *obj)sysbus_init_mmio (dev, &s->iomem); } -static Property iommu_properties[] = { +static const Property iommu_properties[] = {DEFINE_PROP_UINT32 ("version" , IOMMUState, version,0 ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 49/67] hw/riscv: Constify all Property
In reply to Richard Henderson--- 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(-)
hw/riscv/opentitan.c +1 -1
@@ -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 () };
hw/riscv/riscv-iommu-pci.c +1 -1
@@ -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,
hw/riscv/riscv-iommu.c +1 -1
@@ -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 ),
hw/riscv/riscv_hart.c +1 -1
@@ -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),
hw/riscv/sifive_u.c +1 -1
@@ -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 ()
Signature · 1 line
2.43.0
[PULL 64/67] hw/watchdog: Constify all Property
In reply to Richard Henderson--- hw/watchdog/sbsa_gwdt.c | 2 +- hw/watchdog/wdt_aspeed.c | 2 +- hw/watchdog/wdt_imx2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
hw/watchdog/sbsa_gwdt.c +1 -1
@@ -262,7 +262,7 @@ static void wdt_sbsa_gwdt_realize(DeviceState *dev, Error **errp) dev); } -static Property wdt_sbsa_gwdt_props[] = { +static const Property wdt_sbsa_gwdt_props[] = {/* * Timer frequency in Hz. This must match the frequency used by * the CPU's generic timer. Default 62.5Hz matches QEMU's legacy
hw/watchdog/wdt_aspeed.c +1 -1
@@ -288,7 +288,7 @@ static void aspeed_wdt_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (sbd, &s->iomem); } -static Property aspeed_wdt_properties[] = { +static const Property aspeed_wdt_properties[] = {DEFINE_PROP_LINK ("scu" , AspeedWDTState, scu,TYPE_ASPEED_SCU , AspeedSCUState *),DEFINE_PROP_END_OF_LIST (),
hw/watchdog/wdt_imx2.c +1 -1
@@ -281,7 +281,7 @@ static void imx2_wdt_realize(DeviceState *dev, Error **errp) } } -static Property imx2_wdt_properties[] = { +static const Property imx2_wdt_properties[] = {DEFINE_PROP_BOOL ("pretimeout-support" , IMX2WdtState, pretimeout_support, false),DEFINE_PROP_END_OF_LIST ()
Signature · 1 line
2.43.0
[PULL 66/67] tests/unit: Constify all Property
In reply to Richard Henderson--- tests/unit/test-qdev-global-props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/unit/test-qdev-global-props.c +1 -1
@@ -46,7 +46,7 @@ struct MyType {uint32_t prop2; }; -static Property static_props[] = { +static const Property static_props[] = {DEFINE_PROP_UINT32 ("prop1" , MyType, prop1,PROP_DEFAULT ),DEFINE_PROP_UINT32 ("prop2" , MyType, prop2,PROP_DEFAULT ),DEFINE_PROP_END_OF_LIST ()
Signature · 1 line
2.43.0
[PULL 33/67] hw/ipmi: Constify all Property
In reply to Richard Henderson--- hw/ipmi/ipmi.c | 2 +- hw/ipmi/ipmi_bmc_extern.c | 2 +- hw/ipmi/ipmi_bmc_sim.c | 2 +- hw/ipmi/isa_ipmi_bt.c | 2 +- hw/ipmi/isa_ipmi_kcs.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
hw/ipmi/ipmi.c +1 -1
@@ -108,7 +108,7 @@ void ipmi_bmc_find_and_link(Object *obj, Object **bmc) OBJ_PROP_LINK_STRONG); } -static Property ipmi_bmc_properties[] = { +static const Property ipmi_bmc_properties[] = {DEFINE_PROP_UINT8 ("slave_addr" , IPMIBmc, slave_addr,0x20 ),DEFINE_PROP_END_OF_LIST (), };
hw/ipmi/ipmi_bmc_extern.c +1 -1
@@ -515,7 +515,7 @@ static void ipmi_bmc_extern_finalize(Object *obj)timer_free (ibe->extern_timer); } -static Property ipmi_bmc_extern_properties[] = { +static const Property ipmi_bmc_extern_properties[] = {DEFINE_PROP_CHR ("chardev" , IPMIBmcExtern, chr),DEFINE_PROP_END_OF_LIST (), };
hw/ipmi/ipmi_bmc_sim.c +1 -1
@@ -2191,7 +2191,7 @@ static void ipmi_sim_realize(DeviceState *dev, Error **errp)vmstate_register (NULL ,0 , &vmstate_ipmi_sim, ibs); } -static Property ipmi_sim_properties[] = { +static const Property ipmi_sim_properties[] = {DEFINE_PROP_UINT16 ("fruareasize" , IPMIBmcSim, fru.areasize,1024 ),DEFINE_PROP_STRING ("frudatafile" , IPMIBmcSim, fru.filename),DEFINE_PROP_STRING ("sdrfile" , IPMIBmcSim, sdr_filename),
hw/ipmi/isa_ipmi_bt.c +1 -1
@@ -135,7 +135,7 @@ static void *isa_ipmi_bt_get_backend_data(IPMIInterface *ii)return &iib->bt; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = {DEFINE_PROP_UINT32 ("ioport" , ISAIPMIBTDevice, bt.io_base,0xe4 ),DEFINE_PROP_INT32 ("irq" , ISAIPMIBTDevice, isairq,5 ),DEFINE_PROP_END_OF_LIST (),
hw/ipmi/isa_ipmi_kcs.c +1 -1
@@ -142,7 +142,7 @@ static void *isa_ipmi_kcs_get_backend_data(IPMIInterface *ii)return &iik->kcs; } -static Property ipmi_isa_properties[] = { +static const Property ipmi_isa_properties[] = {DEFINE_PROP_UINT32 ("ioport" , ISAIPMIKCSDevice, kcs.io_base,0xca2 ),DEFINE_PROP_INT32 ("irq" , ISAIPMIKCSDevice, isairq,5 ),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 52/67] hw/s390x: Constify all Property
In reply to Richard Henderson--- hw/s390x/ccw-device.c | 2 +- hw/s390x/css-bridge.c | 2 +- hw/s390x/ipl.c | 2 +- hw/s390x/s390-pci-bus.c | 2 +- hw/s390x/s390-skeys.c | 2 +- hw/s390x/s390-stattrib.c | 2 +- hw/s390x/vhost-scsi-ccw.c | 2 +- hw/s390x/vhost-user-fs-ccw.c | 2 +- hw/s390x/vhost-vsock-ccw.c | 2 +- hw/s390x/virtio-ccw-9p.c | 2 +- hw/s390x/virtio-ccw-balloon.c | 2 +- hw/s390x/virtio-ccw-blk.c | 2 +- hw/s390x/virtio-ccw-crypto.c | 2 +- hw/s390x/virtio-ccw-gpu.c | 2 +- hw/s390x/virtio-ccw-input.c | 2 +- hw/s390x/virtio-ccw-net.c | 2 +- hw/s390x/virtio-ccw-rng.c | 2 +- hw/s390x/virtio-ccw-scsi.c | 2 +- hw/s390x/virtio-ccw-serial.c | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-)
hw/s390x/ccw-device.c +1 -1
@@ -81,7 +81,7 @@ const PropertyInfo ccw_loadparm = { .set = ccw_device_set_loadparm, }; -static Property ccw_device_properties[] = { +static const Property ccw_device_properties[] = {DEFINE_PROP_CSS_DEV_ID ("devno" , CcwDevice, devno),DEFINE_PROP_CSS_DEV_ID_RO ("dev_id" , CcwDevice, dev_id),DEFINE_PROP_CSS_DEV_ID_RO ("subch_id" , CcwDevice, subch_id),
hw/s390x/css-bridge.c +1 -1
@@ -120,7 +120,7 @@ VirtualCssBus *virtual_css_bus_init(void)/***************** Virtual-css Bus Bridge Device ********************/ -static Property virtual_css_bridge_properties[] = { +static const Property virtual_css_bridge_properties[] = {DEFINE_PROP_BOOL ("css_dev_path" , VirtualCssBridge, css_dev_path, true),DEFINE_PROP_END_OF_LIST (),
hw/s390x/ipl.c +1 -1
@@ -291,7 +291,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)qemu_register_reset (resettable_cold_reset_fn, dev); } -static Property s390_ipl_properties[] = { +static const Property s390_ipl_properties[] = {DEFINE_PROP_STRING ("kernel" , S390IPLState, kernel),DEFINE_PROP_STRING ("initrd" , S390IPLState, initrd),DEFINE_PROP_STRING ("cmdline" , S390IPLState, cmdline),
hw/s390x/s390-pci-bus.c +1 -1
@@ -1481,7 +1481,7 @@ static const PropertyInfo s390_pci_fid_propinfo = {#define DEFINE_PROP_S390_PCI_FID (_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, s390_pci_fid_propinfo, uint32_t) -static Property s390_pci_device_properties[] = { +static const Property s390_pci_device_properties[] = {DEFINE_PROP_UINT16 ("uid" , S390PCIBusDevice, uid,UID_UNDEFINED ),DEFINE_PROP_S390_PCI_FID ("fid" , S390PCIBusDevice, fid),DEFINE_PROP_STRING ("target" , S390PCIBusDevice, target),
hw/s390x/s390-skeys.c +1 -1
@@ -475,7 +475,7 @@ static void s390_skeys_realize(DeviceState *dev, Error **errp) } } -static Property s390_skeys_props[] = { +static const Property s390_skeys_props[] = {DEFINE_PROP_BOOL ("migration-enabled" , S390SKeysState, migration_enabled, true),DEFINE_PROP_END_OF_LIST (), };
hw/s390x/s390-stattrib.c +1 -1
@@ -360,7 +360,7 @@ static void s390_stattrib_realize(DeviceState *dev, Error **errp) &savevm_s390_stattrib_handlers, dev); } -static Property s390_stattrib_props[] = { +static const Property s390_stattrib_props[] = {DEFINE_PROP_BOOL ("migration-enabled" , S390StAttribState, migration_enabled, true),DEFINE_PROP_END_OF_LIST (), };
hw/s390x/vhost-scsi-ccw.c +1 -1
@@ -41,7 +41,7 @@ static void vhost_ccw_scsi_instance_init(Object *obj) TYPE_VHOST_SCSI); } -static Property vhost_ccw_scsi_properties[] = { +static const Property vhost_ccw_scsi_properties[] = {DEFINE_PROP_UINT32 ("max_revision" , VirtioCcwDevice, max_rev,VIRTIO_CCW_MAX_REV ),DEFINE_PROP_END_OF_LIST (),
hw/s390x/vhost-user-fs-ccw.c +1 -1
@@ -23,7 +23,7 @@ typedef struct VHostUserFSCcw { OBJECT_CHECK(VHostUserFSCcw, (obj), TYPE_VHOST_USER_FS_CCW) -static Property vhost_user_fs_ccw_properties[] = { +static const Property vhost_user_fs_ccw_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/vhost-vsock-ccw.c +1 -1
@@ -22,7 +22,7 @@ struct VHostVSockCCWState {VHostVSock vdev; }; -static Property vhost_vsock_ccw_properties[] = { +static const Property vhost_vsock_ccw_properties[] = {DEFINE_PROP_UINT32 ("max_revision" , VirtioCcwDevice, max_rev,VIRTIO_CCW_MAX_REV ),DEFINE_PROP_END_OF_LIST (),
hw/s390x/virtio-ccw-9p.c +1 -1
@@ -41,7 +41,7 @@ static void virtio_ccw_9p_instance_init(Object *obj) TYPE_VIRTIO_9P); } -static Property virtio_ccw_9p_properties[] = { +static const Property virtio_ccw_9p_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-balloon.c +1 -1
@@ -46,7 +46,7 @@ static void virtio_ccw_balloon_instance_init(Object *obj) "guest-stats-polling-interval"); } -static Property virtio_ccw_balloon_properties[] = { +static const Property virtio_ccw_balloon_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-blk.c +1 -1
@@ -43,7 +43,7 @@ static void virtio_ccw_blk_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_blk_properties[] = { +static const Property virtio_ccw_blk_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-crypto.c +1 -1
@@ -44,7 +44,7 @@ static void virtio_ccw_crypto_instance_init(Object *obj) TYPE_VIRTIO_CRYPTO); } -static Property virtio_ccw_crypto_properties[] = { +static const Property virtio_ccw_crypto_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-gpu.c +1 -1
@@ -42,7 +42,7 @@ static void virtio_ccw_gpu_instance_init(Object *obj) TYPE_VIRTIO_GPU); } -static Property virtio_ccw_gpu_properties[] = { +static const Property virtio_ccw_gpu_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-input.c +1 -1
@@ -43,7 +43,7 @@ static void virtio_ccw_input_realize(VirtioCcwDevice *ccw_dev, Error **errp)qdev_realize (vdev,BUS (&ccw_dev->bus), errp); } -static Property virtio_ccw_input_properties[] = { +static const Property virtio_ccw_input_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-net.c +1 -1
@@ -46,7 +46,7 @@ static void virtio_ccw_net_instance_init(Object *obj) "bootindex"); } -static Property virtio_ccw_net_properties[] = { +static const Property virtio_ccw_net_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-rng.c +1 -1
@@ -43,7 +43,7 @@ static void virtio_ccw_rng_instance_init(Object *obj) TYPE_VIRTIO_RNG); } -static Property virtio_ccw_rng_properties[] = { +static const Property virtio_ccw_rng_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-scsi.c +1 -1
@@ -53,7 +53,7 @@ static void virtio_ccw_scsi_instance_init(Object *obj) TYPE_VIRTIO_SCSI); } -static Property virtio_ccw_scsi_properties[] = { +static const Property virtio_ccw_scsi_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
hw/s390x/virtio-ccw-serial.c +1 -1
@@ -53,7 +53,7 @@ static void virtio_ccw_serial_instance_init(Object *obj) TYPE_VIRTIO_SERIAL); } -static Property virtio_ccw_serial_properties[] = { +static const Property virtio_ccw_serial_properties[] = {DEFINE_PROP_BIT ("ioeventfd" , VirtioCcwDevice, flags,VIRTIO_CCW_FLAG_USE_IOEVENTFD_BIT , true), DEFINE_PROP_UINT32("max_revision", VirtioCcwDevice, max_rev,
Signature · 1 line
2.43.0
[PULL 60/67] hw/ufs: Constify all Property
In reply to Richard Henderson--- hw/ufs/lu.c | 2 +- hw/ufs/ufs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/ufs/lu.c +1 -1
@@ -274,7 +274,7 @@ static UfsReqResult ufs_process_scsi_cmd(UfsLu *lu, UfsRequest *req)return UFS_REQUEST_NO_COMPLETE ; } -static Property ufs_lu_props[] = { +static const Property ufs_lu_props[] = {DEFINE_PROP_DRIVE ("drive" , UfsLu, conf.blk),DEFINE_PROP_UINT8 ("lun" , UfsLu, lun,0 ),DEFINE_PROP_END_OF_LIST (),
hw/ufs/ufs.c +1 -1
@@ -1752,7 +1752,7 @@ static void ufs_exit(PCIDevice *pci_dev) } } -static Property ufs_props[] = { +static const Property ufs_props[] = {DEFINE_PROP_STRING ("serial" , UfsHc, params.serial),DEFINE_PROP_UINT8 ("nutrs" , UfsHc, params.nutrs,32 ),DEFINE_PROP_UINT8 ("nutmrs" , UfsHc, params.nutmrs,8 ),
Signature · 1 line
2.43.0
[PULL 27/67] hw/i2c: Constify all Property
In reply to Richard Henderson--- hw/i2c/aspeed_i2c.c | 4 ++-- hw/i2c/core.c | 2 +- hw/i2c/i2c_mux_pca954x.c | 2 +- hw/i2c/omap_i2c.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
hw/i2c/aspeed_i2c.c +2 -2
@@ -1258,7 +1258,7 @@ static void aspeed_i2c_realize(DeviceState *dev, Error **errp) } } -static Property aspeed_i2c_properties[] = { +static const Property aspeed_i2c_properties[] = {DEFINE_PROP_LINK ("dram" , AspeedI2CState, dram_mr, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
@@ -1446,7 +1446,7 @@ static void aspeed_i2c_bus_realize(DeviceState *dev, Error **errp)sysbus_init_mmio (SYS_BUS_DEVICE (dev), &s->mr_pool); } -static Property aspeed_i2c_bus_properties[] = { +static const Property aspeed_i2c_bus_properties[] = {DEFINE_PROP_UINT8 ("bus-id" , AspeedI2CBus, id,0 ),DEFINE_PROP_LINK ("controller" , AspeedI2CBus, controller,TYPE_ASPEED_I2C , AspeedI2CState *),
hw/i2c/core.c +1 -1
@@ -18,7 +18,7 @@#define I2C_BROADCAST 0x00 -static Property i2c_props[] = { +static const Property i2c_props[] = { DEFINE_PROP_UINT8("address", struct I2CSlave, address, 0),DEFINE_PROP_END_OF_LIST (), };
hw/i2c/i2c_mux_pca954x.c +1 -1
@@ -211,7 +211,7 @@ static void pca954x_init(Object *obj) } } -static Property pca954x_props[] = { +static const Property pca954x_props[] = {DEFINE_PROP_STRING ("name" , Pca954xState, name),DEFINE_PROP_END_OF_LIST () };
hw/i2c/omap_i2c.c +1 -1
@@ -511,7 +511,7 @@ void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk) i2c->fclk = clk; } -static Property omap_i2c_properties[] = { +static const Property omap_i2c_properties[] = {DEFINE_PROP_UINT8 ("revision" , OMAPI2CState, revision,0 ),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 35/67] hw/m68k: Constify all Property
In reply to Richard Henderson--- hw/m68k/mcf5206.c | 2 +- hw/m68k/mcf_intc.c | 2 +- hw/m68k/next-cube.c | 2 +- hw/m68k/q800-glue.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
hw/m68k/mcf5206.c +1 -1
@@ -600,7 +600,7 @@ static void mcf5206_mbar_realize(DeviceState *dev, Error **errp) s->uart[1 ] =mcf_uart_create (s->pic[13 ],serial_hd (1 )); } -static Property mcf5206_mbar_properties[] = { +static const Property mcf5206_mbar_properties[] = {DEFINE_PROP_LINK ("m68k-cpu" , m5206_mbar_state, cpu, TYPE_M68K_CPU, M68kCPU *),DEFINE_PROP_END_OF_LIST (),
hw/m68k/mcf_intc.c +1 -1
@@ -177,7 +177,7 @@ static void mcf_intc_instance_init(Object *obj)sysbus_init_mmio (SYS_BUS_DEVICE (obj), &s->iomem); } -static Property mcf_intc_properties[] = { +static const Property mcf_intc_properties[] = {DEFINE_PROP_LINK ("m68k-cpu" , mcf_intc_state, cpu, TYPE_M68K_CPU, M68kCPU *),DEFINE_PROP_END_OF_LIST (),
hw/m68k/next-cube.c +1 -1
@@ -914,7 +914,7 @@ static void next_pc_realize(DeviceState *dev, Error **errp)* this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property next_pc_properties[] = { +static const Property next_pc_properties[] = { DEFINE_PROP_LINK("cpu", NeXTPC, cpu, TYPE_M68K_CPU, M68kCPU *),DEFINE_PROP_END_OF_LIST (), };
hw/m68k/q800-glue.c +1 -1
@@ -203,7 +203,7 @@ static const VMStateDescription vmstate_glue = {* this cpu link property and could instead provide outbound IRQ lines * that the board could wire up to the CPU. */ -static Property glue_properties[] = { +static const Property glue_properties[] = { DEFINE_PROP_LINK("cpu", GLUEState, cpu, TYPE_M68K_CPU, M68kCPU *),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 48/67] hw/remote: Constify all Property
In reply to Richard Henderson--- hw/remote/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/remote/proxy.c +1 -1
@@ -191,7 +191,7 @@ static void pci_proxy_write_config(PCIDevice *d, uint32_t addr, uint32_t val,config_op_send (PCI_PROXY_DEV (d), addr, &val, len,MPQEMU_CMD_PCI_CFGWRITE ); } -static Property proxy_properties[] = { +static const Property proxy_properties[] = {DEFINE_PROP_STRING ("fd" , PCIProxyDev, fd),DEFINE_PROP_END_OF_LIST (), };
Signature · 1 line
2.43.0
[PULL 22/67] hw/cxl: Constify all Property
In reply to Richard Henderson--- hw/cxl/switch-mailbox-cci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/cxl/switch-mailbox-cci.c +1 -1
@@ -65,7 +65,7 @@ static void cswmbcci_exit(PCIDevice *pci_dev)/* Nothing to do here yet */ } -static Property cxl_switch_cci_props[] = { +static const Property cxl_switch_cci_props[] = {DEFINE_PROP_LINK ("target" , CSWMBCCIDev, target, TYPE_CXL_USP, PCIDevice *),DEFINE_PROP_END_OF_LIST (),
Signature · 1 line
2.43.0
[PULL 26/67] hw/hyperv: Constify all Property
In reply to Richard Henderson--- hw/hyperv/hv-balloon.c | 2 +- hw/hyperv/syndbg.c | 2 +- hw/hyperv/vmbus.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
hw/hyperv/hv-balloon.c +1 -1
@@ -1733,7 +1733,7 @@ static void hv_balloon_finalize(Object *obj)hv_balloon_unrealize_finalize_common (balloon); } -static Property hv_balloon_properties[] = { +static const Property hv_balloon_properties[] = {DEFINE_PROP_BOOL ("status-report" , HvBalloon, status_report.enabled, false),
hw/hyperv/syndbg.c +1 -1
@@ -366,7 +366,7 @@ static const VMStateDescription vmstate_hv_syndbg = { .unmigratable = 1, }; -static Property hv_syndbg_properties[] = { +static const Property hv_syndbg_properties[] = {DEFINE_PROP_STRING ("host_ip" , HvSynDbg, host_ip),DEFINE_PROP_UINT16 ("host_port" , HvSynDbg, host_port,50000 ),DEFINE_PROP_BOOL ("use_hcalls" , HvSynDbg, use_hcalls, false),
hw/hyperv/vmbus.c +2 -2
@@ -2346,7 +2346,7 @@ static void vmbus_dev_unrealize(DeviceState *dev)free_channels (vdev); } -static Property vmbus_dev_props[] = { +static const Property vmbus_dev_props[] = {DEFINE_PROP_UUID ("instanceid" , VMBusDevice, instanceid),DEFINE_PROP_END_OF_LIST () };
@@ -2653,7 +2653,7 @@ static const VMStateDescription vmstate_vmbus_bridge = { }, }; -static Property vmbus_bridge_props[] = { +static const Property vmbus_bridge_props[] = {DEFINE_PROP_UINT8 ("irq" , VMBusBridge, irq,7 ),DEFINE_PROP_END_OF_LIST () };
Signature · 1 line
2.43.0
[PULL 54/67] hw/sd: Constify all Property
In reply to Richard Henderson--- hw/sd/allwinner-sdhost.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- hw/sd/sd.c | 6 +++--- hw/sd/sdhci-pci.c | 2 +- hw/sd/sdhci.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-)
hw/sd/allwinner-sdhost.c +1 -1
@@ -808,7 +808,7 @@ static const VMStateDescription vmstate_allwinner_sdhost = { } }; -static Property allwinner_sdhost_properties[] = { +static const Property allwinner_sdhost_properties[] = {DEFINE_PROP_LINK ("dma-memory" , AwSdHostState, dma_mr, TYPE_MEMORY_REGION, MemoryRegion *),DEFINE_PROP_END_OF_LIST (),
hw/sd/aspeed_sdhci.c +1 -1
@@ -204,7 +204,7 @@ static const VMStateDescription vmstate_aspeed_sdhci = { }, }; -static Property aspeed_sdhci_properties[] = { +static const Property aspeed_sdhci_properties[] = {DEFINE_PROP_UINT8 ("num-slots" , AspeedSDHCIState, num_slots,0 ),DEFINE_PROP_END_OF_LIST (), };
hw/sd/sd.c +3 -3
@@ -2798,18 +2798,18 @@ static void emmc_realize(DeviceState *dev, Error **errp)sd_realize (dev, errp); } -static Property sdmmc_common_properties[] = { +static const Property sdmmc_common_properties[] = {DEFINE_PROP_DRIVE ("drive" , SDState, blk),DEFINE_PROP_END_OF_LIST () }; -static Property sd_properties[] = { +static const Property sd_properties[] = {DEFINE_PROP_UINT8 ("spec_version" , SDState, spec_version, SD_PHY_SPECv3_01_VERS),DEFINE_PROP_END_OF_LIST () }; -static Property emmc_properties[] = { +static const Property emmc_properties[] = {DEFINE_PROP_UINT64 ("boot-partition-size" , SDState, boot_part_size,0 ),DEFINE_PROP_UINT8 ("boot-config" , SDState, boot_config,0x0 ),DEFINE_PROP_END_OF_LIST ()
hw/sd/sdhci-pci.c +1 -1
@@ -22,7 +22,7 @@#include "hw/sd/sdhci.h" #include "sdhci-internal.h" -static Property sdhci_pci_properties[] = { +static const Property sdhci_pci_properties[] = {DEFINE_SDHCI_COMMON_PROPERTIES (SDHCIState),DEFINE_PROP_END_OF_LIST (), };
hw/sd/sdhci.c +1 -1
@@ -1544,7 +1544,7 @@ void sdhci_common_class_init(ObjectClass *klass, void *data)/* --- qdev SysBus --- */ -static Property sdhci_sysbus_properties[] = { +static const Property sdhci_sysbus_properties[] = {DEFINE_SDHCI_COMMON_PROPERTIES (SDHCIState),DEFINE_PROP_BOOL ("pending-insert-quirk" , SDHCIState, pending_insert_quirk, false),
Signature · 1 line
2.43.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.0 for any user-visible changes.