From: Simon Glass Date: Sat, 7 Dec 2019 04:41:56 +0000 (-0700) Subject: sandbox: Disable mmio by default in tests X-Git-Tag: v2020.04-rc1~39^2~2^2~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=89694de514387e87385aa0f111ed76ab91ba20a3;p=oweals%2Fu-boot.git sandbox: Disable mmio by default in tests When reseting sandbox for tests, disable mmio support since that is the default state. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index dee5fde4f7..cd46e000f5 100644 --- a/arch/sandbox/cpu/state.c +++ b/arch/sandbox/cpu/state.c @@ -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));