From 968519095a3386323bb7ef7f88583e6ed902e691 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 24 Oct 1996 17:39:30 +0000 Subject: * Makefile.in: Get rid of srcroot. Set all INSTALL macros via autoconf. * gencode.c (write_opcodes): Pad operands field to account for MSVC braindamage. * simops.c: Include errno.h. Exclude SYS_chown, since MSVC doesn't support it. (Why is this here in the first place?!?) * v850_sim.h: Get rid of 64 bit defs. Also, get rid of #elif's. Change number of operands in struct simops from 9 to 6. Define SIGTRAP and SIGQUIT for MSVC. --- sim/v850/gencode.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sim/v850/gencode.c') diff --git a/sim/v850/gencode.c b/sim/v850/gencode.c index a637fe2..52146cb 100644 --- a/sim/v850/gencode.c +++ b/sim/v850/gencode.c @@ -86,6 +86,7 @@ write_opcodes () { struct v850_opcode *opcode; int i, j; + int numops; /* write out opcode table */ printf ("#include \"v850_sim.h\"\n"); @@ -111,6 +112,7 @@ write_opcodes () printf ("%d,{",j); j = 0; + numops = 0; for (i = 0; i < 6; i++) { int flags = v850_operands[opcode->operands[i]].flags; @@ -123,9 +125,19 @@ write_opcodes () printf ("%d,%d,%d", shift, v850_operands[opcode->operands[i]].bits,flags); j = 1; + numops++; } } + + switch (numops) + { + case 0: + printf ("0,0,0"); + case 1: + printf (",0,0,0"); + } + printf ("}},\n"); } - printf ("{ 0,0,NULL,0,{ }},\n};\n"); + printf ("{ 0,0,NULL,0,{0,0,0,0,0,0}},\n};\n"); } -- cgit v1.1