sandbox: Disable mmio by default in tests
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:56 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:11 +0000 (11:44 +0800)
When reseting sandbox for tests, disable mmio support since that is the
default state.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/cpu/state.c

index dee5fde4f733caf0021907489b8c04a741eafb2e..cd46e000f5e9e77abce85fb864e72282992ac977 100644 (file)
@@ -356,6 +356,7 @@ void state_reset_for_test(struct sandbox_state *state)
        /* No reset yet, so mark it as such. Always allow power reset */
        state->last_sysreset = SYSRESET_COUNT;
        state->sysreset_allowed[SYSRESET_POWER_OFF] = true;
+       state->allow_memio = false;
 
        memset(&state->wdt, '\0', sizeof(state->wdt));
        memset(state->spi, '\0', sizeof(state->spi));