aboutsummaryrefslogtreecommitdiff
path: root/target-mips/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r--target-mips/helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index a222d6b0ec..a0a56d8f04 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -243,6 +243,12 @@ int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
return ret;
}
+#if defined(CONFIG_USER_ONLY)
+void do_interrupt (CPUState *env)
+{
+ env->exception_index = EXCP_NONE;
+}
+#else
void do_interrupt (CPUState *env)
{
target_ulong offset;
@@ -409,3 +415,4 @@ void do_interrupt (CPUState *env)
}
env->exception_index = EXCP_NONE;
}
+#endif /* !defined(CONFIG_USER_ONLY) */