Revision e96efcfc target-ppc/helper.c
b/target-ppc/helper.c | ||
---|---|---|
38 | 38 |
/* PowerPC MMU emulation */ |
39 | 39 |
|
40 | 40 |
#if defined(CONFIG_USER_ONLY) |
41 |
int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
|
|
41 |
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
|
42 | 42 |
int is_user, int is_softmmu) |
43 | 43 |
{ |
44 | 44 |
int exception, error_code; |
... | ... | |
631 | 631 |
} |
632 | 632 |
|
633 | 633 |
int mmu4xx_get_physical_address (CPUState *env, mmu_ctx_t *ctx, |
634 |
uint32_t address, int rw, int access_type)
|
|
634 |
target_ulong address, int rw, int access_type)
|
|
635 | 635 |
{ |
636 | 636 |
ppcemb_tlb_t *tlb; |
637 | 637 |
target_phys_addr_t raddr; |
... | ... | |
649 | 649 |
} |
650 | 650 |
mask = ~(tlb->size - 1); |
651 | 651 |
if (loglevel) { |
652 |
fprintf(logfile, "%s: TLB %d address %08x PID %04x <=> "
|
|
653 |
"%08x %08x %04x\n",
|
|
652 |
fprintf(logfile, "%s: TLB %d address " ADDRX " PID " ADDRX " <=> "
|
|
653 |
ADDRX " " ADDRX " " ADDRX "\n",
|
|
654 | 654 |
__func__, i, address, env->spr[SPR_40x_PID], |
655 | 655 |
tlb->EPN, mask, tlb->PID); |
656 | 656 |
} |
... | ... | |
832 | 832 |
} |
833 | 833 |
|
834 | 834 |
/* Perform address translation */ |
835 |
int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
|
|
835 |
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
|
836 | 836 |
int is_user, int is_softmmu) |
837 | 837 |
{ |
838 | 838 |
mmu_ctx_t ctx; |
Also available in: Unified diff