--- nono/m88xx0/m88200.h 2026/04/29 17:04:44 1.1.1.4 +++ nono/m88xx0/m88200.h 2026/04/29 17:04:49 1.1.1.5 @@ -424,12 +424,16 @@ class m88200 : public Object static const uint32 DESC_WP = 0x00000004; // Write Protect static const uint32 DESC_V = 0x00000001; // Valid + uint32 GetLaddr() const { return acc_laddr; } + uint32 GetPaddr() const { return acc_paddrH | acc_paddrL; } + private: uint32 acc_laddr {}; // Logical Address uint32 acc_paddrH {}; // Physical Address 上位30ビット。 // 下位2ビットは 0 固定。 uint32 acc_paddrL {}; // paddr の下位2ビット // 上位30ビットは 0 固定。 + public: // acc_stat は 4 ビットのみ使用。 // それ以外のビットは代入時にマスクすること。 static const uint32 ACC_STAT_MASK = DESC_WT | DESC_G | DESC_CI | DESC_WP;