aboutsummaryrefslogtreecommitdiff
path: root/sim/cr16/gencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/cr16/gencode.c')
-rw-r--r--sim/cr16/gencode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/cr16/gencode.c b/sim/cr16/gencode.c
index 335ab26..30fda93 100644
--- a/sim/cr16/gencode.c
+++ b/sim/cr16/gencode.c
@@ -17,8 +17,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+/* This must come before any other includes. */
+#include "defs.h"
-#include "config.h"
#include <stdio.h>
#include <ctype.h>
#include <limits.h>
@@ -67,6 +68,7 @@ write_template (void)
{
int i = 0,j, k, flags;
+ printf ("#include \"defs.h\"\n");
printf ("#include \"sim-main.h\"\n");
printf ("#include \"simops.h\"\n\n");
@@ -131,6 +133,7 @@ write_opcodes (void)
int i = 0, j = 0, k;
/* write out opcode table. */
+ printf ("#include \"defs.h\"\n");
printf ("#include \"sim-main.h\"\n");
printf ("#include \"simops.h\"\n\n");
printf ("struct simops Simops[] = {\n");