diff options
-rw-r--r-- | sim/common/sim-utils.c | 5 | ||||
-rw-r--r-- | sim/ppc/emul_netbsd.c | 6 | ||||
-rw-r--r-- | sim/ppc/emul_unix.c | 6 | ||||
-rw-r--r-- | sim/ppc/mon.c | 9 |
4 files changed, 16 insertions, 10 deletions
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index 380afd0..88fd20e 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -20,9 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" -#include "sim-main.h" -#include "sim-assert.h" - #include <stdlib.h> #include <time.h> #include <sys/time.h> /* needed by sys/resource.h */ @@ -34,6 +31,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "libiberty.h" #include "bfd.h" +#include "sim-main.h" +#include "sim-assert.h" #include "sim-utils.h" /* Allocate zero filled memory with xcalloc - xcalloc aborts if the diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index a97fc3b..d1595c5 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -25,8 +25,7 @@ /* Note: this module is called via a table. There is no benefit in making it inline */ -#include "emul_generic.h" -#include "emul_netbsd.h" +#include "defs.h" #include <string.h> #include <sys/types.h> @@ -38,6 +37,9 @@ #include <sys/param.h> #include <sys/time.h> +#include "emul_generic.h" +#include "emul_netbsd.h" + #ifdef HAVE_GETRUSAGE #ifndef HAVE_SYS_RESOURCE_H #undef HAVE_GETRUSAGE diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index cfcb469..191e26a 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -25,8 +25,7 @@ /* Note: this module is called via a table. There is no benefit in making it inline */ -#include "emul_generic.h" -#include "emul_unix.h" +#include "defs.h" #include <string.h> #ifdef HAVE_SYS_TYPES_H @@ -124,6 +123,9 @@ int getrusage(); #include <stdlib.h> #include <time.h> +#include "emul_generic.h" +#include "emul_unix.h" + #ifndef STATIC_INLINE_EMUL_UNIX #define STATIC_INLINE_EMUL_UNIX STATIC_INLINE #endif diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c index 966f86c..4e29ec9 100644 --- a/sim/ppc/mon.c +++ b/sim/ppc/mon.c @@ -21,9 +21,8 @@ #ifndef _MON_C_ #define _MON_C_ -#include "basics.h" -#include "cpu.h" -#include "mon.h" +#include "defs.h" + #include <stdio.h> #include <string.h> @@ -42,6 +41,10 @@ int getrusage(); #endif +#include "basics.h" +#include "cpu.h" +#include "mon.h" + #define MAX_BYTE_READWRITE 9 #define MAX_SHIFT_READWRITE 3 |