Revision 0fa85d43 target-ppc/helper.c

b/target-ppc/helper.c
29 29

  
30 30
/*****************************************************************************/
31 31
/* PPC MMU emulation */
32
int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
33
                              int is_user, int is_softmmu);
34 32

  
35 33
/* Perform BAT hit & translation */
36 34
static int get_bat (CPUState *env, uint32_t *real, int *prot,
......
421 419
   NULL, it means that the function was called in C code (i.e. not
422 420
   from generated code or from helper.c) */
423 421
/* XXX: fix it to restore all registers */
424
void tlb_fill(unsigned long addr, int is_write, int is_user, void *retaddr)
422
void tlb_fill(target_ulong addr, int is_write, int is_user, void *retaddr)
425 423
{
426 424
    TranslationBlock *tb;
427 425
    CPUState *saved_env;
......
782 780
        /* Store exception cause */
783 781
        /* Get rS/rD and rA from faulting opcode */
784 782
        env->spr[DSISR] |=
785
            (ldl_code((void *)(env->nip - 4)) & 0x03FF0000) >> 16;
783
            (ldl_code((env->nip - 4)) & 0x03FF0000) >> 16;
786 784
        /* data location address has been stored
787 785
         * when the fault has been detected
788 786
         */

Also available in: Unified diff