diff options
author | Doug Evans <dje@google.com> | 1998-09-15 22:16:08 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-09-15 22:16:08 +0000 |
commit | ff8c385ab368ea27a54a5f5fb614b4580452cd02 (patch) | |
tree | 7a433c3195625d4e6f1402866f3468cc07a161a6 /sim/m32r/readx.c | |
parent | 5df02296c9e681eced38f4954c70409fd5e243a5 (diff) | |
download | binutils-ff8c385ab368ea27a54a5f5fb614b4580452cd02.zip binutils-ff8c385ab368ea27a54a5f5fb614b4580452cd02.tar.gz binutils-ff8c385ab368ea27a54a5f5fb614b4580452cd02.tar.bz2 |
* m32r-sim.h (GET_H_SM): New macro.
(UART params): Update to msa2000.
* devices.c (device_io_read_buffer): Update to msa2000.
* m32r.c (m32rb_h_cr_get,m32rb_h_cr_set): Handle bbpc,bbpsw.
(m32rb_h_psw_get,m32rb_h_psw_set): New functions.
* arch.c,arch.h,cpu.c,cpu.h,sem-switch.c,sem.c: Regenerate.
* m32rx.c (m32rx_h_cr_get,m32rx_h_cr_set): Handle bbpc,bbpsw.
(m32rx_h_psw_get,m32rx_h_psw_set): New functions.
* cpux.c,cpux.h,readx.c,semx.c: Regenerate.
PR 15938.
Diffstat (limited to 'sim/m32r/readx.c')
-rw-r--r-- | sim/m32r/readx.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sim/m32r/readx.c b/sim/m32r/readx.c index 93fd19c..1669d9c 100644 --- a/sim/m32r/readx.c +++ b/sim/m32r/readx.c @@ -716,10 +716,10 @@ with this program; if not, write to the Free Software Foundation, Inc., EXTRACT_FMT_RTE_VARS /* f-op1 f-r1 f-op2 f-r2 */ EXTRACT_FMT_RTE_CODE /* Fetch the input operands for the semantic handler. */ - OPRND (h_bsm_0) = CPU (h_bsm); - OPRND (h_bie_0) = CPU (h_bie); - OPRND (h_bcond_0) = CPU (h_bcond); - OPRND (h_bpc_0) = CPU (h_bpc); + OPRND (h_cr_6) = m32rx_h_cr_get (current_cpu, ((HOSTUINT) 6)); + OPRND (h_cr_14) = m32rx_h_cr_get (current_cpu, ((HOSTUINT) 14)); + OPRND (h_bpsw_0) = CPU (h_bpsw); + OPRND (h_bbpsw_0) = CPU (h_bbpsw); #undef OPRND } BREAK (read); @@ -852,7 +852,9 @@ with this program; if not, write to the Free Software Foundation, Inc., EXTRACT_FMT_TRAP_VARS /* f-op1 f-r1 f-op2 f-uimm4 */ EXTRACT_FMT_TRAP_CODE /* Fetch the input operands for the semantic handler. */ - OPRND (h_cr_0) = m32rx_h_cr_get (current_cpu, ((HOSTUINT) 0)); + OPRND (h_cr_6) = m32rx_h_cr_get (current_cpu, ((HOSTUINT) 6)); + OPRND (h_bpsw_0) = CPU (h_bpsw); + OPRND (h_psw_0) = m32rx_h_psw_get (current_cpu); OPRND (pc) = CPU (h_pc); OPRND (uimm4) = f_uimm4; #undef OPRND |