integratorcp: Don't migrate flash using vmstate_register_ram_global()
commitb2d1b0507d1b80f23da12dd8aab56944fe380a09
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Jul 2017 16:56:12 +0000 (24 17:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Jul 2017 16:59:28 +0000 (24 17:59 +0100)
treeadd6c4f33eb5e450683950ef84c8dd9c4b5e6b8d
parent3d75007e017b62f2165b8c0166f0e4984bc1640d
integratorcp: Don't migrate flash using vmstate_register_ram_global()

Instead of migrating the flash by creating the memory region
with memory_region_init_ram_nomigrate() and then calling
vmstate_register_ram_global(), just use memory_region_init_ram(),
which now handles migration registration automatically.

This is a migration compatibility break for the integratorcp
board, because the RAM region's migration name changes to
include the device path. This is OK because we don't guarantee
migration compatibility for this board.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1500310341-28931-1-git-send-email-peter.maydell@linaro.org
hw/arm/integratorcp.c