PCI and ACPI - when resetting all devices, also reset (ie. zero) all of the emulated RAM as well, fixes Windows 2000 after soft reset on later machines such as the ASUS P2B-LS.

This commit is contained in:
OBattler
2025-04-02 08:34:34 +02:00
parent 9592ac8904
commit 2a8e4d5a68
4 changed files with 19 additions and 1 deletions

View File

@@ -1025,8 +1025,10 @@ acpi_reg_write_common_regs(UNUSED(int size), uint16_t addr, uint8_t val, void *p
nvr_reg_write(0x000f, 0xff, dev->nvr);
}
if (sus_typ & SUS_RESET_PCI)
if (sus_typ & SUS_RESET_PCI) {
device_reset_all(DEVICE_PCI);
mem_zero();
}
if (sus_typ & SUS_RESET_CPU)
cpu_alt_reset = 0;