sim: fix aarch64 sim build
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Mar 2019 13:42:07 +0000 (13:42 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Mar 2019 13:46:09 +0000 (13:46 +0000)
This commit:

  commit ef9866970ce6683d40465fb7c3168f87a1dcd1b7
  Date:   Thu Mar 28 06:40:30 2019 +0900

      sim/common: convert sim-arange to use sim-inline

Broke the simulator build for aarch64 - some required macros are no
longer included where needed, fixed in this commit.

sim/aarch64/ChangeLog:

* cpustate.c: Add 'libiberty.h' include.
* interp.c: Add 'sim-assert.h' include.

sim/aarch64/ChangeLog
sim/aarch64/cpustate.c
sim/aarch64/interp.c

index a634fd3..9ab81ad 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-28  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * cpustate.c: Add 'libiberty.h' include.
+       * interp.c: Add 'sim-assert.h' include.
+
 2017-09-06  John Baldwin  <jhb@FreeBSD.org>
 
        * configure: Regenerate.
index 6f5121a..f90b7ad 100644 (file)
@@ -25,6 +25,7 @@
 #include "sim-main.h"
 #include "cpustate.h"
 #include "simulator.h"
+#include "libiberty.h"
 
 /* Some operands are allowed to access the stack pointer (reg 31).
    For others a read from r31 always returns 0, and a write to r31 is ignored.  */
index c8a3c28..c5cfc4a 100644 (file)
@@ -38,6 +38,7 @@
 #include "sim-options.h"
 #include "memory.h"
 #include "simulator.h"
+#include "sim-assert.h"
 
 /* Filter out (in place) symbols that are useless for disassembly.
    COUNT is the number of elements in SYMBOLS.