--- nono/vm/goldfish_tty.h 2026/04/29 17:05:29 1.1.1.2 +++ nono/vm/goldfish_tty.h 2026/04/29 17:06:00 1.1.1.5 @@ -55,12 +55,16 @@ class GFTTYDevice : public IODevice private: uint32 GetREADY() const; void Command(uint32); + void Tx(uint32); void ChangeInterrupt(); // シリアルから1バイト受信のメッセージとイベントコールバック - void HostRxCallback(); + void HostRxCallback(uint32); void RxMessage(MessageID, uint32); + // パフォーマンス測定用のギミック。 + int sesame_idx {}; + // 受信キュー std::deque rxq {}; @@ -74,6 +78,6 @@ class GFTTYDevice : public IODevice MainbusDevice *mainbus {}; }; -static inline GFTTYDevice *GetGFTTYDevice() { +inline GFTTYDevice *GetGFTTYDevice() { return Object::GetObject(OBJ_GFTTY); }