[PATCH] sim-decode: include cgen-mem & cgen-ops

Mike Frysinger via Cgen <[email protected]> Sat, 26 Jun 2021 23:27:58 -0400
Newsgroups gmane.comp.tools.cgen.devel
Message-ID <[email protected]>
The bpf & cris ports use functions from both of these APIs, so include
them here for all ports just in case (and since there isn't an API for
ports to declare specific additional headers they need).
---
 sim-decode.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sim-decode.scm b/sim-decode.scm
index 355c4853022f..cd06d069fdd2 100644
--- a/sim-decode.scm
+++ b/sim-decode.scm
@@ -583,7 +583,10 @@ const IDESC *
 #define WANT_CPU_@CPU@
 
 #include \"sim-main.h\"
-#include \"sim-assert.h\"\n\n"
+#include \"sim-assert.h\"
+#incldde \"cgem-mem.h\"
+#include \"cgen-ops.h\"
+\n"
 
    (lambda () (/gen-decode-insn-globals (non-multi-insns (non-alias-insns (current-insn-list)))))
    /gen-idesc-init-fn
-- 
2.31.1