--- nono/vm/scsibus.h 2026/04/29 17:04:53 1.1.1.5 +++ nono/vm/scsibus.h 2026/04/29 17:05:11 1.1.1.7 @@ -4,12 +4,13 @@ // Licensed under nono-license.txt // +// // SCSI バス +// #pragma once -#include "device.h" -#include "scheduler.h" +#include "event.h" #include "scsi.h" // フェーズ遷移についてのメモ。 @@ -102,12 +103,12 @@ // class SCSIBus : public Device { + using inherited = Device; public: SCSIBus(); virtual ~SCSIBus() override; - bool PowerOn() override; - void ResetHard() override; + void ResetHard(bool poweron) override; // このバスにデバイスを接続する bool Attach(SCSIDevice *dev, int id); @@ -206,7 +207,7 @@ class SCSIBus : public Device SCSIDevice *device[8] {}; // イベント - Event event {}; + Event event { this }; }; // (1<