Revision a8170e5e target-openrisc/mmu.c

b/target-openrisc/mmu.c
28 28

  
29 29
#ifndef CONFIG_USER_ONLY
30 30
int cpu_openrisc_get_phys_nommu(OpenRISCCPU *cpu,
31
                                target_phys_addr_t *physical,
31
                                hwaddr *physical,
32 32
                                int *prot, target_ulong address, int rw)
33 33
{
34 34
    *physical = address;
......
37 37
}
38 38

  
39 39
int cpu_openrisc_get_phys_code(OpenRISCCPU *cpu,
40
                               target_phys_addr_t *physical,
40
                               hwaddr *physical,
41 41
                               int *prot, target_ulong address, int rw)
42 42
{
43 43
    int vpn = address >> TARGET_PAGE_BITS;
......
72 72
}
73 73

  
74 74
int cpu_openrisc_get_phys_data(OpenRISCCPU *cpu,
75
                               target_phys_addr_t *physical,
75
                               hwaddr *physical,
76 76
                               int *prot, target_ulong address, int rw)
77 77
{
78 78
    int vpn = address >> TARGET_PAGE_BITS;
......
116 116
}
117 117

  
118 118
static int cpu_openrisc_get_phys_addr(OpenRISCCPU *cpu,
119
                                      target_phys_addr_t *physical,
119
                                      hwaddr *physical,
120 120
                                      int *prot, target_ulong address,
121 121
                                      int rw)
122 122
{
......
185 185
                                  target_ulong address, int rw, int mmu_idx)
186 186
{
187 187
    int ret = 0;
188
    target_phys_addr_t physical = 0;
188
    hwaddr physical = 0;
189 189
    int prot = 0;
190 190
    OpenRISCCPU *cpu = OPENRISC_CPU(ENV_GET_CPU(env));
191 191

  
......
219 219
#endif
220 220

  
221 221
#ifndef CONFIG_USER_ONLY
222
target_phys_addr_t cpu_get_phys_page_debug(CPUOpenRISCState *env,
222
hwaddr cpu_get_phys_page_debug(CPUOpenRISCState *env,
223 223
                                           target_ulong addr)
224 224
{
225
    target_phys_addr_t phys_addr;
225
    hwaddr phys_addr;
226 226
    int prot;
227 227
    OpenRISCCPU *cpu = OPENRISC_CPU(ENV_GET_CPU(env));
228 228

  

Also available in: Unified diff