--- nono/vm/syncer.h 2026/04/29 17:05:17 1.1.1.1 +++ nono/vm/syncer.h 2026/04/29 17:05:29 1.1.1.3 @@ -16,8 +16,7 @@ #include "monitor.h" #include "stopwatch.h" -class MainbusDevice; -class MainRAMDevice; +class MPU680x0Device; class Syncer : public Device { @@ -95,7 +94,7 @@ class Syncer : public Device void PutlogRealtime(); // パフォーマンスカウンタの値取得 (UI 表示用) - int GetPerfCounter() const { return perf_counter; } + uint GetPerfCounter() const { return perf_counter; } // モニタ更新の下請け int MonitorUpdateSub(TextScreen& screen, uint64 vtime); @@ -107,7 +106,7 @@ class Syncer : public Device void SyncCallback(Event& ev); // 動作モード変更メッセージ - void ChangeModeCallback(MessageID, uint32); + void ChangeModeMessage(MessageID, uint32); // 同期処理 void DoSync(); @@ -138,14 +137,13 @@ class Syncer : public Device // perfq が移動平均用のバッファ。四捨五入用に10倍値を持っておく // (100% なら 1000)。perf_counter は perfq から求めた実行率で // 小数以下を四捨五入する (のでこっちは 100% なら 100)。 - int perf_counter {}; // 実行率 [%] + uint perf_counter {}; // 実行率 [%] FixedQueue perfq {}; // 移動平均用のバッファ uint64 next_perf_rtime {}; // 次回測定予定の実経過時間 uint64 last_perf_rtime {}; // 前回測定時の実経過時間 uint64 last_perf_vtime {}; // 前回測定時の仮想経過時間 - MainbusDevice *mainbus {}; - MainRAMDevice *mainram {}; + MPU680x0Device *mpu680x0 {}; // 同期イベント Event sync_event { this };