* 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.
This commit is contained in:
parent
532700fc31
commit
191c9d73de
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user