aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/exec.h8
-rw-r--r--target-i386/op.c19
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)