--- nono/vm/goldfish_timer.h 2026/04/29 17:05:50 1.1.1.4 +++ nono/vm/goldfish_timer.h 2026/04/29 17:06:00 1.1.1.5 @@ -33,7 +33,7 @@ class GFTimerDevice : public IODevice busdata PeekPort(uint32 offset); private: - DECLARE_MONITOR_CALLBACK(MonitorUpdate); + DECLARE_MONITOR_SCREEN(MonitorScreen); void CallbackVT(Event *); void CallbackRT(Event *); @@ -46,13 +46,13 @@ class GFTimerDevice : public IODevice uint64 Now() const; // TIMER レジスタ読み出し値。(アラームの基準点としても使う) - uint64 elapsed {}; + union64 elapsed {}; // アラーム予定時刻 (0 ならアラームなし) - uint64 alarm {}; + union64 alarm {}; // 先に書き込まれた上位側を一旦保持しておくところ。 - uint64 alarm_high {}; + uint32 alarm_high {}; bool sync_rt {}; @@ -72,6 +72,6 @@ class GFTimerDevice : public IODevice Syncer *syncer {}; }; -static inline GFTimerDevice *GetGFTimerDevice() { +inline GFTimerDevice *GetGFTimerDevice() { return Object::GetObject(OBJ_GFTIMER); }