Revision 3c7b48b7 target-sparc/op_helper.c

b/target-sparc/op_helper.c
47 47
#endif
48 48
#endif
49 49

  
50
#if defined(CONFIG_USER_ONLY) && defined(TARGET_SPARC64)
51
static void do_unassigned_access(target_ulong addr, int is_write, int is_exec,
52
                          int is_asi, int size);
53
#endif
54

  
50 55
#if defined(TARGET_SPARC64) && !defined(CONFIG_USER_ONLY)
51 56
// Calculates TSB pointer value for fault page size 8k or 64k
52 57
static uint64_t ultrasparc_tsb_pointer(uint64_t tsb_register,
......
3707 3712
    env = saved_env;
3708 3713
}
3709 3714

  
3710
#endif
3715
#endif /* !CONFIG_USER_ONLY */
3711 3716

  
3712 3717
#ifndef TARGET_SPARC64
3718
#if !defined(CONFIG_USER_ONLY)
3713 3719
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
3714 3720
                          int is_asi, int size)
3715 3721
{
......
3770 3776

  
3771 3777
    env = saved_env;
3772 3778
}
3779
#endif
3780
#else
3781
#if defined(CONFIG_USER_ONLY)
3782
static void do_unassigned_access(target_ulong addr, int is_write, int is_exec,
3783
                          int is_asi, int size)
3773 3784
#else
3774 3785
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
3775 3786
                          int is_asi, int size)
3787
#endif
3776 3788
{
3777 3789
    CPUState *saved_env;
3778 3790

  
......
3795 3807
}
3796 3808
#endif
3797 3809

  
3810

  
3798 3811
#ifdef TARGET_SPARC64
3799 3812
void helper_tick_set_count(void *opaque, uint64_t count)
3800 3813
{

Also available in: Unified diff