Revision d532b26c target-sparc/cpu.h
b/target-sparc/cpu.h | ||
---|---|---|
577 | 577 |
return 0; |
578 | 578 |
} |
579 | 579 |
|
580 |
static inline int cpu_pil_allowed(CPUState *env1, int pil) |
|
581 |
{ |
|
582 |
#if !defined(TARGET_SPARC64) |
|
583 |
/* level 15 is non-maskable on sparc v8 */ |
|
584 |
return pil == 15 || pil > env1->psrpil; |
|
585 |
#else |
|
586 |
return pil > env1->psrpil; |
|
587 |
#endif |
|
588 |
} |
|
589 |
|
|
580 | 590 |
static inline int cpu_fpu_enabled(CPUState *env1) |
581 | 591 |
{ |
582 | 592 |
#if defined(CONFIG_USER_ONLY) |
Also available in: Unified diff