and patterns.
* interp.c (sim_resume): Save and restore PC from the appropriate
register.
* (sim_fetch_register sim_store_register): Fix byte-order problem
with reading and writing registers.
* simops.c (OP_FFFF): Implement pseudo-breakpoint insn.
+Fri Sep 27 18:34:09 1996 Stu Grossman (grossman@critters.cygnus.com)
+
+ * gencode.c (write_opcodes): Output hex values for opcode mask
+ and patterns.
+ * interp.c (sim_resume): Save and restore PC from the appropriate
+ register.
+ * (sim_fetch_register sim_store_register): Fix byte-order problem
+ with reading and writing registers.
+ * simops.c (OP_FFFF): Implement pseudo-breakpoint insn.
+
Fri Sep 27 17:42:37 1996 Jeffrey A Law (law@cygnus.com)
* simops.c (trace_input): Fix thinko.
for (opcode = (struct v850_opcode *)v850_opcodes; opcode->name; opcode++)
{
- printf (" { %ld,%ld,OP_%X,",
+ printf (" { 0x%x,0x%x,OP_%X,",
opcode->opcode, opcode->mask, opcode->opcode);
Opcodes[curop++] = opcode->opcode;
{
#ifdef DEBUG
if (strcmp (args, "-t") == 0)
- d10v_debug = DEBUG;
+ v850_debug = DEBUG;
else
#endif
- (*d10v_callback->printf_filtered) (d10v_callback, "ERROR: unsupported option(s): %s\n",args);
+ (*v850_callback->printf_filtered) (v850_callback, "ERROR: unsupported option(s): %s\n",args);
}
/* put all the opcodes in the hash table */
uint32 inst, opcode;
reg_t oldpc;
+ PC = State.sregs[0];
+
if (step)
State.exception = SIGTRAP;
else
}
}
while (!State.exception);
+
+ State.sregs[0] = PC;
}
int
int rn;
unsigned char *memory;
{
- *(uint32 *)memory = State.regs[rn];
+ put_word (memory, State.regs[rn]);
}
void
int rn;
unsigned char *memory;
{
- State.regs[rn]= *(uint32 *)memory;
+ State.regs[rn] = get_word (memory);
}
int
trace_output (OP_BIT);
}
+/* breakpoint */
+void
+OP_FFFF ()
+{
+ State.exception = SIGTRAP;
+ PC -= 4;
+}
+
/* di */
void
OP_16007E0 ()