--- nono/vm/spc.h 2026/04/29 17:05:14 1.1.1.13 +++ nono/vm/spc.h 2026/04/29 17:05:17 1.1.1.14 @@ -16,6 +16,8 @@ #include "monitor.h" #include "scsidev.h" +class InterruptDevice; + struct SPC { static const int BDID = 0x0; // $E96021 RW $E100_0000 @@ -279,4 +281,6 @@ class SPCDevice : public SCSIHostDevice Monitor monitor { this }; }; -extern SPCDevice *gSPC; +static inline SPCDevice *GetSPCDevice() { + return Object::GetObject(OBJ_SPC); +}