--- nono/vm/lance.h 2026/04/29 17:04:42 1.1.1.5 +++ nono/vm/lance.h 2026/04/29 17:04:50 1.1.1.7 @@ -153,7 +153,7 @@ class LanceDevice public: LanceDevice(); - ~LanceDevice() override; + virtual ~LanceDevice() override; bool Init() override; void ResetHard() override; @@ -161,7 +161,7 @@ class LanceDevice void MonitorUpdate(TextScreen&) override; // ワーカスレッド (エントリポイントから呼ばれる) - void ThreadRun(); + void ThreadRun() override; // パケットを受信した (ホストネットワークスレッドから呼ばれる) bool RecvPacket(qvector& buf) override; @@ -169,9 +169,9 @@ class LanceDevice protected: // BusIO インタフェース static const uint32 NPORT = 2; - uint64 Read(uint32 addr); - uint64 Write(uint32 addr, uint32 data); - uint64 Peek(uint32 addr); + uint64 Read(uint32 offset); + uint64 Write(uint32 offset, uint32 data); + uint64 Peek(uint32 offset); private: pthread_t thread {}; @@ -196,8 +196,8 @@ class LanceDevice // 割り込み要因をセットし、許可されていれば割り込みを上げる void SetInterrupt(uint32 bit); - // 許可されていれば割り込みを上げる - void Interrupt(); + // 割り込み信号線の状態を変える + void ChangeInterrupt(); void TXIdle(); void TXCopy();