Revision a8170e5e target-sh4/helper.c

b/target-sh4/helper.c
503 503
    return 0;
504 504
}
505 505

  
506
target_phys_addr_t cpu_get_phys_page_debug(CPUSH4State * env, target_ulong addr)
506
hwaddr cpu_get_phys_page_debug(CPUSH4State * env, target_ulong addr)
507 507
{
508 508
    target_ulong physical;
509 509
    int prot;
......
574 574
}
575 575

  
576 576
uint32_t cpu_sh4_read_mmaped_itlb_addr(CPUSH4State *s,
577
                                       target_phys_addr_t addr)
577
                                       hwaddr addr)
578 578
{
579 579
    int index = (addr & 0x00000300) >> 8;
580 580
    tlb_t * entry = &s->itlb[index];
......
584 584
           (entry->asid);
585 585
}
586 586

  
587
void cpu_sh4_write_mmaped_itlb_addr(CPUSH4State *s, target_phys_addr_t addr,
587
void cpu_sh4_write_mmaped_itlb_addr(CPUSH4State *s, hwaddr addr,
588 588
				    uint32_t mem_value)
589 589
{
590 590
    uint32_t vpn = (mem_value & 0xfffffc00) >> 10;
......
604 604
}
605 605

  
606 606
uint32_t cpu_sh4_read_mmaped_itlb_data(CPUSH4State *s,
607
                                       target_phys_addr_t addr)
607
                                       hwaddr addr)
608 608
{
609 609
    int array = (addr & 0x00800000) >> 23;
610 610
    int index = (addr & 0x00000300) >> 8;
......
626 626
    }
627 627
}
628 628

  
629
void cpu_sh4_write_mmaped_itlb_data(CPUSH4State *s, target_phys_addr_t addr,
629
void cpu_sh4_write_mmaped_itlb_data(CPUSH4State *s, hwaddr addr,
630 630
                                    uint32_t mem_value)
631 631
{
632 632
    int array = (addr & 0x00800000) >> 23;
......
655 655
}
656 656

  
657 657
uint32_t cpu_sh4_read_mmaped_utlb_addr(CPUSH4State *s,
658
                                       target_phys_addr_t addr)
658
                                       hwaddr addr)
659 659
{
660 660
    int index = (addr & 0x00003f00) >> 8;
661 661
    tlb_t * entry = &s->utlb[index];
......
667 667
           (entry->asid);
668 668
}
669 669

  
670
void cpu_sh4_write_mmaped_utlb_addr(CPUSH4State *s, target_phys_addr_t addr,
670
void cpu_sh4_write_mmaped_utlb_addr(CPUSH4State *s, hwaddr addr,
671 671
				    uint32_t mem_value)
672 672
{
673 673
    int associate = addr & 0x0000080;
......
740 740
}
741 741

  
742 742
uint32_t cpu_sh4_read_mmaped_utlb_data(CPUSH4State *s,
743
                                       target_phys_addr_t addr)
743
                                       hwaddr addr)
744 744
{
745 745
    int array = (addr & 0x00800000) >> 23;
746 746
    int index = (addr & 0x00003f00) >> 8;
......
766 766
    }
767 767
}
768 768

  
769
void cpu_sh4_write_mmaped_utlb_data(CPUSH4State *s, target_phys_addr_t addr,
769
void cpu_sh4_write_mmaped_utlb_data(CPUSH4State *s, hwaddr addr,
770 770
                                    uint32_t mem_value)
771 771
{
772 772
    int array = (addr & 0x00800000) >> 23;

Also available in: Unified diff