aboutsummaryrefslogtreecommitdiff
path: root/target-mips/exec.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-15 21:21:33 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-15 21:21:33 +0000
commit80c27194a7be757ef5a9cec978d1d8faaa4cee81 (patch)
treed70b8fe5bf3574d586a01bf7194f95f65368b741 /target-mips/exec.h
parenta85427b147f3174748a4eed13a7379a769bb05fd (diff)
Fix qemu SIGFPE caused by division-by-zero due to underflow.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2673 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/exec.h')
-rw-r--r--target-mips/exec.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/target-mips/exec.h b/target-mips/exec.h
index 54f4d5a75f..cfe69a3ffa 100644
--- a/target-mips/exec.h
+++ b/target-mips/exec.h
@@ -82,6 +82,9 @@ void do_drotrv (void);
#endif
#endif
+#if HOST_LONG_BITS < 64
+void do_div (void);
+#endif
#if TARGET_LONG_BITS > HOST_LONG_BITS
void do_mult (void);
void do_multu (void);
@@ -89,10 +92,12 @@ void do_madd (void);
void do_maddu (void);
void do_msub (void);
void do_msubu (void);
+#endif
+#ifdef TARGET_MIPS64
void do_ddiv (void);
+#if TARGET_LONG_BITS > HOST_LONG_BITS
void do_ddivu (void);
#endif
-#ifdef TARGET_MIPS64
void do_dmult (void);
void do_dmultu (void);
#endif