--- nono/vm/ram.h 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/ram.h 2026/04/29 17:04:42 1.1.1.4 @@ -17,6 +17,7 @@ class RAMDevice ~RAMDevice() override; bool Init() override; + void ResetHard() override; uint64 Read8(uint32 addr) override; uint64 Read16(uint32 addr) override; @@ -26,6 +27,9 @@ class RAMDevice uint64 Write32(uint32 addr, uint32 data) override; uint64 Peek8(uint32 addr) override; + // アクセスウェイトを設定 + void SetWait(uint32 wait); + // ホストの filepath をロードする uint32 LoadFile(const char *filepath, uint32 mid); // file, filesize で示されるバッファをロードする @@ -38,6 +42,9 @@ class RAMDevice uint32 mid); uint32 Load_elf32(const char *name, const uint8 *file, size_t filesize, uint32 mid); + + uint32 read_wait {}; + uint32 write_wait {}; }; extern std::unique_ptr ram;