aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-11 16:58:33 +0000
committerJeff Law <law@redhat.com>1996-12-11 16:58:33 +0000
commit191c9d73deb47d630e74268cb7eb4646f0071289 (patch)
tree48efe744f29e96a0dc3af41f0e67ad790501cf21 /sim
parent532700fc314085f3f76ae3af89e8a33d3aa98f40 (diff)
downloadgdb-191c9d73deb47d630e74268cb7eb4646f0071289.zip
gdb-191c9d73deb47d630e74268cb7eb4646f0071289.tar.gz
gdb-191c9d73deb47d630e74268cb7eb4646f0071289.tar.bz2
* gencode.c (write_opcodes): Also write out the format of the
opcode. * mn10300_sim.h (simops): Add "format" field. * interp.c (sim_resume): Deal with endianness issues here.
Diffstat (limited to 'sim')
-rw-r--r--sim/mn10300/gencode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/mn10300/gencode.c b/sim/mn10300/gencode.c
index b0ca6e7..bef312c 100644
--- a/sim/mn10300/gencode.c
+++ b/sim/mn10300/gencode.c
@@ -114,8 +114,9 @@ write_opcodes ()
else
size = 7;
- printf (" { 0x%x,0x%x,OP_%X,%d,",
- opcode->opcode, opcode->mask, opcode->opcode, size);
+ printf (" { 0x%x,0x%x,OP_%X,%d,%d,",
+ opcode->opcode, opcode->mask, opcode->opcode,
+ size, opcode->format);
Opcodes[curop++] = opcode->opcode;
@@ -158,5 +159,5 @@ write_opcodes ()
printf ("}},\n");
}
- printf ("{ 0,0,NULL,0,0,{0,0,0,0,0,0}},\n};\n");
+ printf ("{ 0,0,NULL,0,0,0,{0,0,0,0,0,0}},\n};\n");
}