diff options
author | Stu Grossman <grossman@cygnus> | 1996-10-24 17:39:30 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1996-10-24 17:39:30 +0000 |
commit | 968519095a3386323bb7ef7f88583e6ed902e691 (patch) | |
tree | 9d68fdba03f4a9d8de08e5361f9b5655c43e8437 /sim/v850/gencode.c | |
parent | 139e2c0f92e06fcca01a815614c46a53e93a2f55 (diff) | |
download | gdb-968519095a3386323bb7ef7f88583e6ed902e691.zip gdb-968519095a3386323bb7ef7f88583e6ed902e691.tar.gz gdb-968519095a3386323bb7ef7f88583e6ed902e691.tar.bz2 |
* 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.
Diffstat (limited to 'sim/v850/gencode.c')
-rw-r--r-- | sim/v850/gencode.c | 14 |
1 files changed, 13 insertions, 1 deletions
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"); } |