summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/sparc/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h
index f65d8b5c1e..21fe0d1d3e 100644
--- a/target/sparc/cpu.h
+++ b/target/sparc/cpu.h
@@ -736,8 +736,9 @@ static inline int cpu_interrupts_enabled(CPUSPARCState *env1)
if (env1->psret != 0)
return 1;
#else
- if (env1->pstate & PS_IE)
+ if ((env1->pstate & PS_IE) && !cpu_hypervisor_mode(env1)) {
return 1;
+ }
#endif
return 0;