46#ifndef LIBCPU_POWERPC_MPC55XX_REGS_MMU_H
47#define LIBCPU_POWERPC_MPC55XX_REGS_MMU_H
123 uint32_t TLBSELD : 2;
125 uint32_t TIDSELD : 2;
147#define MPC55XX_MMU_TAG_TRANSLATE_INITIALIZER(idx, addreff, addrreal, size, x, w, r, io) \
149 .MAS0 = { .B = { .TLBSEL = 1, .ESEL = (idx) } }, \
151 .VALID = 1, .IPROT = 1, .TID = 0, .TS = 0, .TSIZE = (size) } \
154 .EPN = (addreff) >> 10, .VLE = 0, \
155 .W = (io) == 2, .I = (io) == 1, .M = 0, .G = (io) == 1, .E = 0 } \
158 .RPN = (addrreal) >> 10, .U0 = 0, .U1 = 0, .U2 = 0, .U3 = 0, .UX = 0, \
159 .SX = (x), .UW = 0, .SW = (w), .UR = 0, .SR = (r) } \
163#define MPC55XX_MMU_TAG_INITIALIZER(idx, addr, size, x, w, r, io) \
164 MPC55XX_MMU_TAG_TRANSLATE_INITIALIZER(idx, addr, addr, size, x, w, r, io)
166#define MPC55XX_MMU_1K 0
167#define MPC55XX_MMU_2K 1
168#define MPC55XX_MMU_4K 2
169#define MPC55XX_MMU_8K 3
170#define MPC55XX_MMU_16K 4
171#define MPC55XX_MMU_32K 5
172#define MPC55XX_MMU_64K 6
173#define MPC55XX_MMU_128K 7
174#define MPC55XX_MMU_256K 8
175#define MPC55XX_MMU_512K 9
176#define MPC55XX_MMU_1M 10
177#define MPC55XX_MMU_2M 11
178#define MPC55XX_MMU_4M 12
179#define MPC55XX_MMU_8M 13
180#define MPC55XX_MMU_16M 14
181#define MPC55XX_MMU_32M 15
182#define MPC55XX_MMU_64M 16
183#define MPC55XX_MMU_128M 17
184#define MPC55XX_MMU_256M 18
185#define MPC55XX_MMU_512M 19
186#define MPC55XX_MMU_1G 20
187#define MPC55XX_MMU_2G 21
188#define MPC55XX_MMU_4G 22
Definition: regs-mmu.h:60
Definition: regs-mmu.h:119
Definition: regs-mmu.h:137