diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-05 21:25:26 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-05 21:25:26 +0000 |
commit | 83fb7adf6c653a0285a89d51b746cb642d2859cf (patch) | |
tree | 24791ee7957dae766c687945939ef17291306b32 /target-i386 | |
parent | 1d43a717730346de2c664c0eccf0592eb4ba2cd8 (diff) |
Darwin patch (initial patch by Pierre d'Herbemont)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@980 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/exec.h | 8 | ||||
-rw-r--r-- | target-i386/op.c | 19 |
2 files changed, 4 insertions, 23 deletions
diff --git a/target-i386/exec.h b/target-i386/exec.h index 4410069a30..680e580b7f 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -498,7 +498,7 @@ static inline void helper_fstt(CPU86_LDouble f, uint8_t *ptr) #define FPUC_EM 0x3f -const CPU86_LDouble f15rk[7]; +extern const CPU86_LDouble f15rk[7]; void helper_fldt_ST0_A0(void); void helper_fstt_ST0_A0(void); @@ -528,9 +528,9 @@ void helper_frstor(uint8_t *ptr, int data32); void restore_native_fp_state(CPUState *env); void save_native_fp_state(CPUState *env); -const uint8_t parity_table[256]; -const uint8_t rclw_table[32]; -const uint8_t rclb_table[32]; +extern const uint8_t parity_table[256]; +extern const uint8_t rclw_table[32]; +extern const uint8_t rclb_table[32]; static inline uint32_t compute_eflags(void) { diff --git a/target-i386/op.c b/target-i386/op.c index b9aef6aae2..2438499ec3 100644 --- a/target-i386/op.c +++ b/target-i386/op.c @@ -1955,24 +1955,6 @@ void OPPROTO op_fldcw_A0(void) int rnd_type; env->fpuc = lduw((void *)A0); /* set rounding mode */ -#ifdef _BSD - switch(env->fpuc & RC_MASK) { - default: - case RC_NEAR: - rnd_type = FP_RN; - break; - case RC_DOWN: - rnd_type = FP_RM; - break; - case RC_UP: - rnd_type = FP_RP; - break; - case RC_CHOP: - rnd_type = FP_RZ; - break; - } - fpsetround(rnd_type); -#else switch(env->fpuc & RC_MASK) { default: case RC_NEAR: @@ -1989,7 +1971,6 @@ void OPPROTO op_fldcw_A0(void) break; } fesetround(rnd_type); -#endif } void OPPROTO op_fclex(void) |