aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 2df7f64992..15ff5ccd44 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -40,6 +40,24 @@
//#define FLUSH_ALL_TLBS
/*****************************************************************************/
+/* Exceptions processing */
+
+void raise_exception_err (CPUState *env, int exception, int error_code)
+{
+#if 0
+ printf("Raise exception %3x code : %d\n", exception, error_code);
+#endif
+ env->exception_index = exception;
+ env->error_code = error_code;
+ cpu_loop_exit();
+}
+
+void raise_exception (CPUState *env, int exception)
+{
+ helper_raise_exception_err(exception, 0);
+}
+
+/*****************************************************************************/
/* PowerPC MMU emulation */
#if defined(CONFIG_USER_ONLY)