hw/omap_gpmc: Fix region map/unmap when configuring prefetch engine
commit0ec6dc730cbae8c4cdd3d6a2adc306c93219c1f2
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Dec 2011 00:21:56 +0000 (20 00:21 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 4 Jan 2012 13:41:42 +0000 (4 13:41 +0000)
treedef198b68d9fa480938361b690f1a98f16f44f02
parente023668198b552d7fa3115178d13a0b7c93c662b
hw/omap_gpmc: Fix region map/unmap when configuring prefetch engine

When configuring the prefetch engine (and also when resetting from
a state where the prefetch engine was enabled) be careful to adhere
to the "unmap/change config fields/map" ordering, to avoid trying
to delete the wrong MemoryRegions. This fixes an assertion failure
in some cases.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Alexander Graf <agraf@suse.de>
Tested-by: Alexander Graf <agraf@suse.de>
hw/omap_gpmc.c