Add v850e version of breakpoint instruction.
authorAndrew Cagney <cagney@redhat.com>
Tue, 16 Sep 1997 02:15:55 +0000 (02:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 16 Sep 1997 02:15:55 +0000 (02:15 +0000)
sim/v850/ChangeLog
sim/v850/Makefile.in
sim/v850/v850-dc
sim/v850/v850.igen

index 0bb4d55..cdf2076 100644 (file)
@@ -1,3 +1,12 @@
+Tue Sep 16 10:20:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+start-sanitize-v850e
+       * v850-dc: Add rule to diferentiate between breakpoint and divh.
+       * v850.igen (break): New instruction, breakpoint simulator.
+
+end-sanitize-v850e
+       * v850.igen (breakpoint): Enable.  Change to a 32bit instruction.
+
 start-sanitize-v850e
 Mon Sep 15 18:44:05 1997  Jim Wilson  <wilson@cygnus.com>
 
index c7125a6..ad3355b 100644 (file)
@@ -108,11 +108,13 @@ clean-igen:
 ../igen/igen:
        cd ../igen && $(MAKE)
 
+IGEN_TRACE= # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
 IGEN_INSN=$(srcdir)/v850.igen
 IGEN_DC=$(srcdir)/v850-dc
 tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
        cd ../igen && $(MAKE)
        ../igen/igen \
+               $(IGEN_TRACE) \
                -G gen-direct-access \
                -i $(IGEN_INSN) \
                -o $(IGEN_DC) \
index 91b0898..81a36df 100644 (file)
 # start-sanitize-v850eq
   switch,combine        :   4 :   0 :    :    :    :    0 : III,IV,XIV  : v850eq
 # end-sanitize-v850eq
+# start-sanitize-v850e
+
+
+# for opcode 66
+
+  switch,combine        :   4 :   0 :    :    :    :    0 : I           :
+# end-sanitize-v850e
index b938b0a..93bf0b7 100644 (file)
@@ -1214,11 +1214,22 @@ rrrrr,110101,RRRRR + iiiiiiiiiiiiiiii:VI:::xori
 
 
 // end-sanitize-v850e
-// Special - breakpoint
-// 1111111111111111:Z:::breakpoint
-// {
-//   COMPAT_2 (OP_FFFF ());
-// }
+// Special - breakpoint - illegal
+// Hopefully, in the future, this instruction will go away
+1111111111111111 + 1111111111111111:Z:::breakpoint
+*v850
+{
+  sim_engine_halt (SD, CPU, NULL, cia, sim_stopped, SIGTRAP);
+}
+
+// start-sanitize-v850e
+// First field could be any nonzero value.
+11111,000010,00000:I:::break
+{
+  sim_engine_halt (SD, CPU, NULL, cia, sim_stopped, SIGTRAP);
+}
+
+// end-sanitize-v850e
 
 
 // start-sanitize-v850eq