--- nono/vm/interrupt.h 2026/04/29 17:05:28 1.1.1.8 +++ nono/vm/interrupt.h 2026/04/29 17:05:33 1.1.1.9 @@ -11,7 +11,6 @@ #pragma once #include "device.h" -#include "monitor.h" #include #include @@ -154,6 +153,8 @@ class InterruptDevice : public IODevice // [0] が Intmap の bit31 割り込みのカウント。 // [27] が Intmap の bit 4 割り込みのカウント。 uint64 counter[32] {}; + + Monitor *monitor {}; }; // m680x0 仮想割り込みコントローラ (共通部) @@ -225,8 +226,6 @@ class X68030Interrupt : public M680x0Int PEDECDevice *pedec {}; std::array net {}; SCCDevice *scc {}; - - Monitor monitor { this }; }; // LUNA-I 仮想割り込みコントローラ @@ -262,8 +261,6 @@ class LunaInterrupt : public M680x0Inter private: DECLARE_MONITOR_CALLBACK(MonitorUpdate); - - Monitor monitor { this }; }; // NEWS 仮想割り込みコントローラ @@ -302,8 +299,6 @@ class NewsInterrupt : public M680x0Inter DECLARE_MONITOR_CALLBACK(MonitorUpdate); SCCDevice *scc {}; - - Monitor monitor { this }; }; // virt-m68k 仮想割り込みコントローラ @@ -343,8 +338,6 @@ class Virt68kInterrupt : public M680x0In DECLARE_MONITOR_CALLBACK(MonitorUpdate); std::array gfpic {}; - - Monitor monitor { this }; }; // LUNA-88K は sysctlr.cpp 参照。