aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-22 10:09:17 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-22 10:09:17 +0000
commit64adab3fcbab7cd3a1d7fff327640f8128de6e86 (patch)
tree776eaefe12bc2fdfcd193a62c7de34697481521b /target-ppc/helper.c
parente2eb279809e0e2e158d65dd7b448c70bd773f6b7 (diff)
target-ppc: convert exceptions generation to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5772 c046a42c-6fe2-441c-8c8c-71466251a162
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)