--- nono/m680x0/m68040mmu.h 2026/04/29 17:05:30 1.1.1.1 +++ nono/m680x0/m68040mmu.h 2026/04/29 17:05:40 1.1.1.2 @@ -24,6 +24,9 @@ struct m68040MMU static const uint32 DESC_W = 0x00000004; static const uint32 DESC_DT = 0x00000003; + // ATCEntry.desc は PDT/UDT どちらから作られても bit0 を Resident とする。 + static const uint32 DESC_R = 0x00000001; + // PDT は // %00 無効 // %01 常駐 @@ -171,7 +174,7 @@ class m68040ATCEntry bool IsGlobal() const { return (desc & m68040MMU::DESC_G); } bool IsSuperProtected() const { return (desc & m68040MMU::DESC_S); } bool IsWriteProtected() const { return (desc & m68040MMU::DESC_W); } - bool IsResident() const { return (desc & 0x0001); } + bool IsResident() const { return (desc & m68040MMU::DESC_R); } bool MatchStatus(busaddr laddr) const; };