Commit db8d74668856e5bbc6c8fede0bb17c4f83e7debf

Authored by bellard
1 parent 997344f3

comments


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@405 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 9 additions and 2 deletions
cpu-defs.h
@@ -32,8 +32,15 @@ @@ -32,8 +32,15 @@
32 #define CPU_TLB_SIZE 256 32 #define CPU_TLB_SIZE 256
33 33
34 typedef struct CPUTLBEntry { 34 typedef struct CPUTLBEntry {
35 - uint32_t address;  
36 - uint32_t addend; 35 + /* bit 31 to TARGET_PAGE_BITS : virtual address
  36 + 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;
37 } CPUTLBEntry; 44 } CPUTLBEntry;
38 45
39 #endif 46 #endif