]> git.proxmox.com Git - mirror_qemu.git/commit
imx: Use memory_region_init_rom() for ROMs
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jul 2016 12:06:35 +0000 (13:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jul 2016 12:06:35 +0000 (13:06 +0100)
commita7aeb5f7b2c713e2ab7e0a142e0c89f7b2aa5bb7
tree95fe87f144142edd40180d303ac6769c85a4151f
parenta1777f7f6462c66e1ee6e98f0d5c431bfe988aa5
imx: Use memory_region_init_rom() for ROMs

The imx boards were all incorrectly creating ROMs using
memory_region_init_rom_device() with a NULL ops pointer. This
will cause QEMU to abort if the guest tries to write to the
ROM. Switch to the new memory_region_init_rom() instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1467122287-24974-3-git-send-email-peter.maydell@linaro.org
hw/arm/fsl-imx25.c
hw/arm/fsl-imx31.c
hw/arm/fsl-imx6.c