aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/semx.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-04-20 23:20:22 +0000
committerDoug Evans <dje@google.com>1998-04-20 23:20:22 +0000
commit970a8fd6c356d9029c7b1eeb0cb895c3426fcf6f (patch)
tree20cf58ef855eefc25197b724ed84127e7a8bda62 /sim/m32r/semx.c
parentf61321eaaf040dd9213c5031e41548f7071cd195 (diff)
downloadgdb-970a8fd6c356d9029c7b1eeb0cb895c3426fcf6f.zip
gdb-970a8fd6c356d9029c7b1eeb0cb895c3426fcf6f.tar.gz
gdb-970a8fd6c356d9029c7b1eeb0cb895c3426fcf6f.tar.bz2
* cpu.c,sem.c,sem-switch.c: Regenerate. From
- cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS. * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions. #include cgen-ops.h. * cpux.c,readx.c,semx.c: Regenerate. * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions. #include cgen-ops.h. Delete inclusion of several unnecessary headers. (m32r_h_accums_get): Sign extend top 8 bits.
Diffstat (limited to 'sim/m32r/semx.c')
-rw-r--r--sim/m32r/semx.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sim/m32r/semx.c b/sim/m32r/semx.c
index ead6ca9..864c05f 100644
--- a/sim/m32r/semx.c
+++ b/sim/m32r/semx.c
@@ -1867,8 +1867,8 @@ SEM_FN_NAME (m32rx,macwhi) (SIM_CPU *current_cpu, SEM_ARG sem_arg, PAREXEC *par_
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
- CPU (h_accum) = SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8);
- TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
+m32rx_h_accum_set (current_cpu, SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8));
+ TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
#if WITH_PROFILE_MODEL_P
if (PROFILE_MODEL_P (current_cpu))
@@ -1893,8 +1893,8 @@ SEM_FN_NAME (m32rx,macwlo) (SIM_CPU *current_cpu, SEM_ARG sem_arg, PAREXEC *par_
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
- CPU (h_accum) = SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8);
- TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
+m32rx_h_accum_set (current_cpu, SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8));
+ TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
#if WITH_PROFILE_MODEL_P
if (PROFILE_MODEL_P (current_cpu))
@@ -1998,8 +1998,8 @@ SEM_FN_NAME (m32rx,mulwhi) (SIM_CPU *current_cpu, SEM_ARG sem_arg, PAREXEC *par_
EXTRACT_FMT_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWHI_CODE
- CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 8), 8);
- TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
+m32rx_h_accum_set (current_cpu, SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 8), 8));
+ TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
#if WITH_PROFILE_MODEL_P
if (PROFILE_MODEL_P (current_cpu))
@@ -2024,8 +2024,8 @@ SEM_FN_NAME (m32rx,mulwlo) (SIM_CPU *current_cpu, SEM_ARG sem_arg, PAREXEC *par_
EXTRACT_FMT_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWHI_CODE
- CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 8), 8);
- TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
+m32rx_h_accum_set (current_cpu, SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 8), 8));
+ TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
#if WITH_PROFILE_MODEL_P
if (PROFILE_MODEL_P (current_cpu))
@@ -3239,8 +3239,8 @@ SEM_FN_NAME (m32rx,msblo) (SIM_CPU *current_cpu, SEM_ARG sem_arg, PAREXEC *par_e
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
- CPU (h_accum) = SRADI (SLLDI (SUBDI (OPRND (accum), SRADI (SLLDI (MULDI (EXTHIDI (TRUNCSIHI (OPRND (src1))), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 32), 16)), 8), 8);
- TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
+m32rx_h_accum_set (current_cpu, SRADI (SLLDI (SUBDI (OPRND (accum), SRADI (SLLDI (MULDI (EXTHIDI (TRUNCSIHI (OPRND (src1))), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 32), 16)), 8), 8));
+ TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
#if WITH_PROFILE_MODEL_P
if (PROFILE_MODEL_P (current_cpu))