diff options
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r-- | target-sparc/op_helper.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 1d3adefe4..3d7f64c12 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -3303,6 +3303,20 @@ void helper_wrpstate(target_ulong new_state) change_pstate(new_state & 0xf3f); } +void helper_wrpil(target_ulong new_pil) +{ +#if !defined(CONFIG_USER_ONLY) + DPRINTF_PSTATE("helper_wrpil old=%x new=%x\n", + env->psrpil, (uint32_t)new_pil); + + env->psrpil = new_pil; + + if (cpu_interrupts_enabled(env)) { + cpu_check_irqs(env); + } +#endif +} + void helper_done(void) { trap_state* tsptr = cpu_tsptr(env); |