diff options
Diffstat (limited to 'cpu-defs.h')
-rw-r--r-- | cpu-defs.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpu-defs.h b/cpu-defs.h index 3ec866fa7b..84b5e280e0 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -32,8 +32,15 @@ #define CPU_TLB_SIZE 256 typedef struct CPUTLBEntry { - uint32_t address; - uint32_t addend; + /* bit 31 to TARGET_PAGE_BITS : virtual address + bit TARGET_PAGE_BITS-1..IO_MEM_SHIFT : if non zero, memory io + zone number + bit 3 : indicates that the entry is invalid + bit 2..0 : zero + */ + uint32_t address; + /* addend to virtual address to get physical address */ + uint32_t addend; } CPUTLBEntry; #endif |