32 |
#define CPU_TLB_SIZE 256 |
#define CPU_TLB_SIZE 256 |
33 |
|
|
34 |
typedef struct CPUTLBEntry { |
typedef struct CPUTLBEntry { |
35 |
uint32_t address; |
/* bit 31 to TARGET_PAGE_BITS : virtual address |
36 |
uint32_t addend; |
bit TARGET_PAGE_BITS-1..IO_MEM_SHIFT : if non zero, memory io |
37 |
|
zone number |
38 |
|
bit 3 : indicates that the entry is invalid |
39 |
|
bit 2..0 : zero |
40 |
|
*/ |
41 |
|
uint32_t address; |
42 |
|
/* addend to virtual address to get physical address */ |
43 |
|
uint32_t addend; |
44 |
} CPUTLBEntry; |
} CPUTLBEntry; |
45 |
|
|
46 |
#endif |
#endif |