Revision 5fafdf24 cpu-defs.h

b/cpu-defs.h
1 1
/*
2 2
 * common defines for all CPUs
3
 * 
3
 *
4 4
 * Copyright (c) 2003 Fabrice Bellard
5 5
 *
6 6
 * This library is free software; you can redistribute it and/or
......
29 29
#error TARGET_LONG_BITS must be defined before including this header
30 30
#endif
31 31

  
32
#ifndef TARGET_PHYS_ADDR_BITS 
32
#ifndef TARGET_PHYS_ADDR_BITS
33 33
#if TARGET_LONG_BITS >= HOST_LONG_BITS
34 34
#define TARGET_PHYS_ADDR_BITS TARGET_LONG_BITS
35 35
#else
......
97 97
#define CPU_TLB_SIZE (1 << CPU_TLB_BITS)
98 98

  
99 99
typedef struct CPUTLBEntry {
100
    /* bit 31 to TARGET_PAGE_BITS : virtual address 
100
    /* bit 31 to TARGET_PAGE_BITS : virtual address
101 101
       bit TARGET_PAGE_BITS-1..IO_MEM_SHIFT : if non zero, memory io
102 102
                                              zone number
103 103
       bit 3                      : indicates that the entry is invalid
104 104
       bit 2..0                   : zero
105 105
    */
106
    target_ulong addr_read; 
107
    target_ulong addr_write; 
108
    target_ulong addr_code; 
106
    target_ulong addr_read;
107
    target_ulong addr_write;
108
    target_ulong addr_code;
109 109
    /* addend to virtual address to get physical address */
110
    target_phys_addr_t addend; 
110
    target_phys_addr_t addend;
111 111
} CPUTLBEntry;
112 112

  
113 113
/* Alpha has 4 different running levels */

Also available in: Unified diff