--- nono/vm/vm.h 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/vm.h 2026/04/29 17:04:50 1.1.1.6 @@ -70,14 +70,18 @@ class VM void ResetHard(); // MPU の RESET 命令によるリセット - void ResetSoft(); + virtual void ResetByMPU() { } + + // BusErr デバイスを取得する + BusErrDevice *GetBusErrDevice() const { return buserr.get(); } protected: // VM の全デバイスの電源をオン bool DevicePowerOn(); - std::unique_ptr buserr; - void (*poweroff_callback)() = NULL; + std::unique_ptr buserr {}; + + void (*poweroff_callback)() {}; }; extern std::unique_ptr gVM;