Revision 2df6c2d0 target-sparc/cpu.h

b/target-sparc/cpu.h
564 564
#endif
565 565
}
566 566

  
567
static inline int cpu_interrupts_enabled(CPUState *env1)
568
{
569
#if !defined (TARGET_SPARC64)
570
    if (env1->psret != 0)
571
        return 1;
572
#else
573
    if (env1->pstate & PS_IE)
574
        return 1;
575
#endif
576

  
577
    return 0;
578
}
579

  
567 580
static inline int cpu_fpu_enabled(CPUState *env1)
568 581
{
569 582
#if defined(CONFIG_USER_ONLY)

Also available in: Unified diff