aboutsummaryrefslogtreecommitdiff
path: root/target-i386/exec.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-08 21:08:41 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-08 21:08:41 +0000
commit2ee73ac3a855fb0cfba3db91fdd1ecebdbc6f971 (patch)
tree9759c191fd2b12e00749c4ea4b45298c9336c35c /target-i386/exec.h
parent28c3ee3fed3bb51c45320bec1ede3585cd36f8a4 (diff)
downloadqemu-2ee73ac3a855fb0cfba3db91fdd1ecebdbc6f971.zip
qemu-2ee73ac3a855fb0cfba3db91fdd1ecebdbc6f971.tar.gz
qemu-2ee73ac3a855fb0cfba3db91fdd1ecebdbc6f971.tar.bz2
division by zero FPU exception support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@795 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/exec.h')
-rw-r--r--target-i386/exec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/target-i386/exec.h b/target-i386/exec.h
index 63010f7..fb9cc77 100644
--- a/target-i386/exec.h
+++ b/target-i386/exec.h
@@ -478,10 +478,24 @@ static inline void helper_fstt(CPU86_LDouble f, uint8_t *ptr)
#endif /* USE_X86LDOUBLE */
+#define FPUS_IE (1 << 0)
+#define FPUS_DE (1 << 1)
+#define FPUS_ZE (1 << 2)
+#define FPUS_OE (1 << 3)
+#define FPUS_UE (1 << 4)
+#define FPUS_PE (1 << 5)
+#define FPUS_SF (1 << 6)
+#define FPUS_SE (1 << 7)
+#define FPUS_B (1 << 15)
+
+#define FPUC_EM 0x3f
+
const CPU86_LDouble f15rk[7];
void helper_fldt_ST0_A0(void);
void helper_fstt_ST0_A0(void);
+void fpu_raise_exception(void);
+CPU86_LDouble helper_fdiv(CPU86_LDouble a, CPU86_LDouble b);
void helper_fbld_ST0_A0(void);
void helper_fbst_ST0_A0(void);
void helper_f2xm1(void);