diff options
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 3c26526..1d22029 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -24,6 +24,10 @@ #include "remote-sim.h" #include <sys/syscall.h> +/* start-sanitize-sh3e */ +#include <math.h> +/* end-sanitize-sh3e */ + #if !defined (SYS_wait) && defined (SYS_wait4) #define SYS_wait SYS_wait4 /* SunOS 4.1.3 for example */ #endif @@ -120,9 +124,6 @@ typedef union { int regs[16]; -/* start-sanitize-sh3e */ - float fregs[16]; -/* end-sanitize-sh3e */ int pc; int pr; @@ -131,11 +132,6 @@ typedef union int mach; int macl; -/* start-sanitize-sh3e */ - float fpscr; - int fpul; -/* end-sanitize-sh3e */ - union { struct @@ -160,6 +156,11 @@ typedef union int prevlock; int thislock; +/* start-sanitize-sh3e */ + float fregs[16]; + float fpscr; + int fpul; +/* end-sanitize-sh3e */ int exception; int msize; #define PROFILE_FREQ 1 |