Implement reboot via PCI

This commit is contained in:
Fabian 2020-12-31 19:14:32 -06:00
commit ad22c98247

View file

@ -117,6 +117,13 @@ function PCI(cpu)
},
function(out_byte)
{
if((this.pci_addr[1] & 0x06) === 0x02 && (out_byte & 0x06) === 0x06)
{
dbg_log("CPU reboot via PCI");
cpu.reboot_internal();
return;
}
this.pci_addr[1] = out_byte;
},
function(out_byte)