From ad22c98247b2730d1c2e59a95fc7a03c19c149f4 Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 31 Dec 2020 19:14:32 -0600 Subject: [PATCH] Implement reboot via PCI --- src/pci.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pci.js b/src/pci.js index 1a5afba2..0903c15b 100644 --- a/src/pci.js +++ b/src/pci.js @@ -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)