aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/integratorcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index c8f3955af8..d9d8da3812 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -112,7 +112,7 @@ static uint64_t integratorcm_read(void *opaque, target_phys_addr_t offset,
static void integratorcm_do_remap(integratorcm_state *s, int flash)
{
- if (flash) {
+ if (!flash) {
if (s->flash_mapped) {
sysbus_del_memory(&s->busdev, &s->flash);
s->flash_mapped = false;