From eccaafdbe8f46fffd8db7e00e1ba316cf9930b02 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 1 Apr 2020 09:06:30 +0200 Subject: [PATCH] Fixed A20 after returning from SMM on Intel i686 CPU's. --- src/cpu_common/386_dynarec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu_common/386_dynarec.c b/src/cpu_common/386_dynarec.c index bea5834a7..53874af5b 100644 --- a/src/cpu_common/386_dynarec.c +++ b/src/cpu_common/386_dynarec.c @@ -933,7 +933,7 @@ void smram_restore_state_p6(uint32_t *saved_state) cpu_state.seg_gs.ar_high = (saved_state[SMRAM_FIELD_P6_GS_SELECTOR_AR] >> 24) & 0xff; smm_seg_load(&cpu_state.seg_gs); - mem_a20_alt = (!saved_state[SMRAM_FIELD_P6_A20M]) << 1; + mem_a20_alt = 0; keyboard_at_set_a20_key(!saved_state[SMRAM_FIELD_P6_A20M]); mem_a20_recalc();