aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-09-28 01:38:45 +0000
committerStu Grossman <grossman@cygnus>1996-09-28 01:38:45 +0000
commit88777ce2a6681104eed8c7a15df49acf03935134 (patch)
tree09c0aa03669c7dd8b87bf117e7f84ed5f7b92131 /sim/v850/simops.c
parent8d622d4c7c24d005fa3b0affd6d8386171769e9e (diff)
downloadgdb-88777ce2a6681104eed8c7a15df49acf03935134.zip
gdb-88777ce2a6681104eed8c7a15df49acf03935134.tar.gz
gdb-88777ce2a6681104eed8c7a15df49acf03935134.tar.bz2
* 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.
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 07d9ae2..0b92c89 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -1898,6 +1898,14 @@ OP_C7C0 ()
trace_output (OP_BIT);
}
+/* breakpoint */
+void
+OP_FFFF ()
+{
+ State.exception = SIGTRAP;
+ PC -= 4;
+}
+
/* di */
void
OP_16007E0 ()