From 721478d51bd4574ab5de91fb09003325c6f15b69 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 16 Sep 1997 02:15:55 +0000 Subject: [PATCH] Add v850e version of breakpoint instruction. --- sim/v850/ChangeLog | 9 +++++++++ sim/v850/Makefile.in | 2 ++ sim/v850/v850-dc | 7 +++++++ sim/v850/v850.igen | 21 ++++++++++++++++----- 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index 0bb4d55217..cdf2076817 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,12 @@ +Tue Sep 16 10:20:00 1997 Andrew Cagney + +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 diff --git a/sim/v850/Makefile.in b/sim/v850/Makefile.in index c7125a666c..ad3355b27b 100644 --- a/sim/v850/Makefile.in +++ b/sim/v850/Makefile.in @@ -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) \ diff --git a/sim/v850/v850-dc b/sim/v850/v850-dc index 91b0898a20..81a36df957 100644 --- a/sim/v850/v850-dc +++ b/sim/v850/v850-dc @@ -30,3 +30,10 @@ # 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 diff --git a/sim/v850/v850.igen b/sim/v850/v850.igen index b938b0aa85..93bf0b7652 100644 --- a/sim/v850/v850.igen +++ b/sim/v850/v850.igen @@ -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