diff options
Diffstat (limited to 'sim/mips/sim-main.h')
-rw-r--r-- | sim/mips/sim-main.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h index a1ea1aa..137f08d 100644 --- a/sim/mips/sim-main.h +++ b/sim/mips/sim-main.h @@ -171,6 +171,7 @@ convert (SD, CPU, cia, rm, op, from, to) /* start-sanitize-sky */ #ifdef TARGET_SKY #ifdef SKY_FUNIT +#include <assert.h> #include "wf.h" #endif #endif @@ -669,17 +670,6 @@ enum float_operation unsigned8 acc[3 * 8]; /* end-sanitize-vr5400 */ -/* start-sanitize-sky */ -#ifdef TARGET_SKY -#ifdef SKY_FUNIT - /* Record of option for floating point implementation type. */ - int fp_type_opt; -#define STATE_FP_TYPE_OPT(sd) ((sd)->base.fp_type_opt) -#define STATE_FP_TYPE_OPT_TARGET 0x80000000 -#endif -#endif -/* end-sanitize-sky */ - sim_cpu_base base; }; @@ -707,6 +697,17 @@ struct sim_state { #define STATE_CPU(sd,n) (&(sd)->cpu[0]) #endif +/* start-sanitize-sky */ +#ifdef TARGET_SKY +#ifdef SKY_FUNIT + /* Record of option for floating point implementation type. */ + int fp_type_opt; +#define STATE_FP_TYPE_OPT(sd) ((sd)->fp_type_opt) +#define STATE_FP_TYPE_OPT_TARGET 0x80000000 +#endif +#endif +/* end-sanitize-sky */ + sim_state_base base; }; |