diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/arm/nwfpe/fpa11.c | 20 | ||||
-rw-r--r-- | linux-user/main.c | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c index 626a87a..beed968 100644 --- a/linux-user/arm/nwfpe/fpa11.c +++ b/linux-user/arm/nwfpe/fpa11.c @@ -54,7 +54,7 @@ void resetFPA11(void) fpa11->fpsr = FP_EMULATOR | BIT_AC; /* FPCR: set SB, AB and DA bits, clear all others */ -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr = MASK_RESET; #endif } @@ -64,7 +64,7 @@ void SetRoundingMode(const unsigned int opcode) int rounding_mode; FPA11 *fpa11 = GET_FPA11(); -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr &= ~MASK_ROUNDING_MODE; #endif switch (opcode & MASK_ROUNDING_MODE) @@ -72,28 +72,28 @@ void SetRoundingMode(const unsigned int opcode) default: case ROUND_TO_NEAREST: rounding_mode = float_round_nearest_even; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_TO_NEAREST; #endif break; case ROUND_TO_PLUS_INFINITY: rounding_mode = float_round_up; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_TO_PLUS_INFINITY; #endif break; case ROUND_TO_MINUS_INFINITY: rounding_mode = float_round_down; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_TO_MINUS_INFINITY; #endif break; case ROUND_TO_ZERO: rounding_mode = float_round_to_zero; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_TO_ZERO; #endif break; @@ -105,28 +105,28 @@ void SetRoundingPrecision(const unsigned int opcode) { int rounding_precision; FPA11 *fpa11 = GET_FPA11(); -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr &= ~MASK_ROUNDING_PRECISION; #endif switch (opcode & MASK_ROUNDING_PRECISION) { case ROUND_SINGLE: rounding_precision = 32; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_SINGLE; #endif break; case ROUND_DOUBLE: rounding_precision = 64; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_DOUBLE; #endif break; case ROUND_EXTENDED: rounding_precision = 80; -#if MAINTAIN_FPCR +#ifdef MAINTAIN_FPCR fpa11->fpcr |= ROUND_EXTENDED; #endif break; diff --git a/linux-user/main.c b/linux-user/main.c index cca696c..2a30519 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -282,7 +282,7 @@ static void write_dt(void *ptr, unsigned long addr, unsigned long limit, p[1] = tswap32(e2); } -#if TARGET_X86_64 +#ifdef TARGET_X86_64 uint64_t idt_table[512]; static void set_gate64(void *ptr, unsigned int type, unsigned int dpl, |