Am486 SMBASE is now correctly initialized to 30000, 60000 is for the Am486DXL and Am486DXL2, which we do not emulate.

This commit is contained in:
OBattler
2021-04-10 22:22:19 +02:00
parent c4fd9e7753
commit 8175289c9d
3 changed files with 3 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ reset_common(int hard)
smi_block = 0; smi_block = 0;
if (hard) { if (hard) {
smbase = is_am486 ? 0x00060000 : 0x00030000; smbase = 0x00030000;
ppi_reset(); ppi_reset();
} }
in_sys = 0; in_sys = 0;

View File

@@ -1061,7 +1061,7 @@ write_output(atkbd_t *dev, uint8_t val)
/* Pin 0 selected. */ /* Pin 0 selected. */
softresetx86(); /*Pulse reset!*/ softresetx86(); /*Pulse reset!*/
cpu_set_edx(); cpu_set_edx();
smbase = is_am486 ? 0x00060000 : 0x00030000; smbase = 0x00030000;
} }
} }
/* Mask off the A20 stuff because we use mem_a20_key directly for that. */ /* Mask off the A20 stuff because we use mem_a20_key directly for that. */

View File

@@ -81,7 +81,7 @@ machine_init_ex(int m)
/* Reset the memory state. */ /* Reset the memory state. */
mem_reset(); mem_reset();
smbase = is_am486 ? 0x00060000 : 0x00030000; smbase = 0x00030000;
lpt_init(); lpt_init();
} }