--- nono/vm/scsibus.cpp 2026/04/29 17:05:10 1.1.1.10 +++ nono/vm/scsibus.cpp 2026/04/29 17:05:17 1.1.1.11 @@ -18,12 +18,12 @@ event.func = ToEventCallback(&SCSIBus::func_); \ event.time = time_; \ event.SetName(name_); \ - gScheduler->RestartEvent(event); \ + scheduler->RestartEvent(event); \ } while (0) // コンストラクタ SCSIBus::SCSIBus() - : inherited("SCSIBus") + : inherited(OBJ_SCSIBUS) { event.Regist("SCSIBus"); // 複数出来たら名前どうするべか } @@ -61,7 +61,7 @@ SCSIBus::ResetHard(bool poweron) // タイマーイベントが使われており、本体をリセットしたのに入れ違いで // イニシエータの転送処理が呼び出されてしまうというような事故を // 防ぐためにもここでタイマーを停止する。 - gScheduler->StopEvent(event); + scheduler->StopEvent(event); } // このバスにデバイスを接続する (初期化時に使う) @@ -355,7 +355,7 @@ SCSIBus::AssertREQ() // 通知はイベントにしないといけないので。 uint64 after = 0; - uint64 now = gScheduler->GetVirtTime(); + uint64 now = scheduler->GetVirtTime(); if (now < last_req_time + 1_usec) { after = (last_req_time + 1_usec) - now; }