Revert "Revert "Merge branch 'feature/machine_and_kb' into master""
This reverts commit f2cd3756dd.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "cpu.h"
|
||||
#include "x86.h"
|
||||
#include <86box/machine.h>
|
||||
#include <86box/device.h>
|
||||
#include <86box/io.h>
|
||||
#include <86box/mem.h>
|
||||
#include <86box/rom.h>
|
||||
@@ -239,8 +240,10 @@ reset_common(int hard)
|
||||
leave_smm();
|
||||
|
||||
/* Needed for the ALi M1533. */
|
||||
if (soft_reset_pci && !hard)
|
||||
if (soft_reset_pci && !hard) {
|
||||
pci_reset();
|
||||
device_reset_all_pci();
|
||||
}
|
||||
|
||||
use32 = 0;
|
||||
cpu_cur_status = 0;
|
||||
@@ -264,7 +267,7 @@ reset_common(int hard)
|
||||
} else {
|
||||
loadcs(0xFFFF);
|
||||
cpu_state.pc = 0;
|
||||
rammask = 0xfffff;
|
||||
rammask = is286 ? 0xffffff : 0xfffff;
|
||||
}
|
||||
}
|
||||
idt.base = 0;
|
||||
@@ -307,8 +310,10 @@ reset_common(int hard)
|
||||
shadowbios = shadowbios_write = 0;
|
||||
alt_access = cpu_end_block_after_ins = 0;
|
||||
|
||||
if (hard)
|
||||
if (hard) {
|
||||
reset_on_hlt = hlt_reset_pending = 0;
|
||||
soft_reset_pci = 0;
|
||||
}
|
||||
|
||||
if (!is286)
|
||||
reset_808x(hard);
|
||||
|
||||
Reference in New Issue
Block a user