]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/omap2.c
hw: Use new memory_region_init_{ram, rom, rom_device}() functions
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Jul 2017 14:42:53 +0000 (15:42 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Jul 2017 16:59:42 +0000 (17:59 +0100)
commit98a99ce0840991ed28fd4c570ae549c371e89970
tree8e437a7afbf94d498d0579550c0ce6d6d2faed01
parent96d851a64b42aea4974f2c25a56cd2a05f34905d
hw: Use new memory_region_init_{ram, rom, rom_device}() functions

Use the new functions memory_region_init_{ram,rom,rom_device}()
instead of manually calling the _nomigrate() version and then
vmstate_register_ram_global().

Patch automatically created using coccinelle script:
 spatch --in-place -sp_file scripts/coccinelle/memory-region-init-ram.cocci -dir hw

(As it turns out, there are no instances of the rom and
rom_device functions that are caught by this script.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1499438577-7674-8-git-send-email-peter.maydell@linaro.org
51 files changed:
hw/arm/exynos4210.c
hw/arm/exynos4_boards.c
hw/arm/fsl-imx25.c
hw/arm/fsl-imx31.c
hw/arm/fsl-imx6.c
hw/arm/mainstone.c
hw/arm/musicpal.c
hw/arm/omap1.c
hw/arm/omap2.c
hw/arm/omap_sx1.c
hw/arm/palm.c
hw/arm/pxa2xx.c
hw/arm/realview.c
hw/arm/spitz.c
hw/arm/stellaris.c
hw/arm/stm32f205_soc.c
hw/arm/tosa.c
hw/arm/vexpress.c
hw/arm/virt.c
hw/arm/xilinx_zynq.c
hw/arm/xlnx-zynqmp.c
hw/cris/axis_dev88.c
hw/display/cg3.c
hw/display/tc6393xb.c
hw/display/vmware_vga.c
hw/i386/pc.c
hw/i386/pc_sysfw.c
hw/i386/xen/xen-hvm.c
hw/m68k/an5206.c
hw/m68k/mcf5208.c
hw/microblaze/petalogix_ml605_mmu.c
hw/microblaze/petalogix_s3adsp1800_mmu.c
hw/mips/mips_fulong2e.c
hw/mips/mips_jazz.c
hw/mips/mips_mipssim.c
hw/mips/mips_r4k.c
hw/moxie/moxiesim.c
hw/nios2/10m50_devboard.c
hw/openrisc/openrisc_sim.c
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c
hw/ppc/ppc405_boards.c
hw/ppc/ppc405_uc.c
hw/s390x/sclp.c
hw/sh4/r2d.c
hw/sh4/shix.c
hw/sparc/leon3.c
hw/tricore/tricore_testboard.c
hw/unicore32/puv3.c
hw/xtensa/sim.c
hw/xtensa/xtfpga.c