Simplify the flash remap code now we have an API for simple enable/disable of memory regions.
Changes:
v1->v2: split 'fix sense of REMAP bit' into its own patch
v2->v3: minor change suggested by Avi in patch 2
(pass !(sm->cm_ctrl & 4) to set_enabled() rather than using if)
Peter Maydell (2):
hw/integratorcp: Fix sense of REMAP bit
hw/integratorcp: Simplify flash remap code
hw/integratorcp.c | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
