diff options
Diffstat (limited to 'sim/sh64/sem-media.c')
-rw-r--r-- | sim/sh64/sem-media.c | 474 |
1 files changed, 237 insertions, 237 deletions
diff --git a/sim/sh64/sem-media.c b/sim/sh64/sem-media.c index ba20a81..2e0e25a 100644 --- a/sim/sh64/sem-media.c +++ b/sim/sh64/sem-media.c @@ -36,8 +36,8 @@ This file is part of the GNU simulators. FAST_P, when desired, is defined on the command line, -DFAST_P=1. */ #if FAST_P #define SEM_FN_NAME(cpu,fn) XCONCAT3 (cpu,_semf_,fn) -#undef TRACE_RESULT -#define TRACE_RESULT(cpu, abuf, name, type, val) +#undef CGEN_TRACE_RESULT +#define CGEN_TRACE_RESULT(cpu, abuf, name, type, val) #else #define SEM_FN_NAME(cpu,fn) XCONCAT3 (cpu,_sem_,fn) #endif @@ -210,7 +210,7 @@ SEM_FN_NAME (sh64_media,add) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -231,7 +231,7 @@ SEM_FN_NAME (sh64_media,addl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), SUBWORDDISI (GET_H_GR (FLD (f_right)), 1)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -252,7 +252,7 @@ SEM_FN_NAME (sh64_media,addi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -273,7 +273,7 @@ SEM_FN_NAME (sh64_media,addil) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (ADDSI (EXTSISI (FLD (f_disp10)), SUBWORDDISI (GET_H_GR (FLD (f_left)), 1))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -294,7 +294,7 @@ SEM_FN_NAME (sh64_media,addzl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTSIDI (ADDSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), SUBWORDDISI (GET_H_GR (FLD (f_right)), 1))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -316,7 +316,7 @@ SEM_FN_NAME (sh64_media,alloco) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -339,7 +339,7 @@ SEM_FN_NAME (sh64_media,and) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ANDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -360,7 +360,7 @@ SEM_FN_NAME (sh64_media,andc) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ANDDI (GET_H_GR (FLD (f_left)), INVDI (GET_H_GR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -381,7 +381,7 @@ SEM_FN_NAME (sh64_media,andi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ANDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -407,7 +407,7 @@ if (EQDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -437,7 +437,7 @@ if (EQDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_imm6)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -467,7 +467,7 @@ if (GEDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -497,7 +497,7 @@ if (GEUDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -527,7 +527,7 @@ if (GTDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -557,7 +557,7 @@ if (GTUDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -584,12 +584,12 @@ SEM_FN_NAME (sh64_media,blink) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (ADDDI (pc, 4), 1); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } { UDI opval = CPU (h_tr[FLD (f_trb)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } if (EQSI (FLD (f_dest), 63)) { ((void) 0); /*nop*/ @@ -622,7 +622,7 @@ if (NEDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -652,7 +652,7 @@ if (NEDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_imm6)))) { UDI opval = CPU (h_tr[FLD (f_tra)]); SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc); written |= (1 << 3); - TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "pc", 'D', opval); } } } @@ -731,7 +731,7 @@ SEM_FN_NAME (sh64_media,byterev) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = tmp_result; SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -753,7 +753,7 @@ SEM_FN_NAME (sh64_media,cmpeq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ((EQDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) ? (1) : (0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -774,7 +774,7 @@ SEM_FN_NAME (sh64_media,cmpgt) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ((GTDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) ? (1) : (0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -795,7 +795,7 @@ SEM_FN_NAME (sh64_media,cmpgtu) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ((GTUDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))) ? (1) : (0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -818,7 +818,7 @@ if (EQDI (GET_H_GR (FLD (f_left)), 0)) { DI opval = GET_H_GR (FLD (f_right)); SET_H_GR (FLD (f_dest), opval); written |= (1 << 2); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -843,7 +843,7 @@ if (NEDI (GET_H_GR (FLD (f_left)), 0)) { DI opval = GET_H_GR (FLD (f_right)); SET_H_GR (FLD (f_dest), opval); written |= (1 << 2); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -866,7 +866,7 @@ SEM_FN_NAME (sh64_media,fabsd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fabsd (current_cpu, GET_H_DR (FLD (f_left_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -887,7 +887,7 @@ SEM_FN_NAME (sh64_media,fabss) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fabss (current_cpu, CPU (h_fr[FLD (f_left_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -908,7 +908,7 @@ SEM_FN_NAME (sh64_media,faddd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_faddd (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -929,7 +929,7 @@ SEM_FN_NAME (sh64_media,fadds) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fadds (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -950,7 +950,7 @@ SEM_FN_NAME (sh64_media,fcmpeqd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpeqd (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -971,7 +971,7 @@ SEM_FN_NAME (sh64_media,fcmpeqs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpeqs (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)]))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -992,7 +992,7 @@ SEM_FN_NAME (sh64_media,fcmpged) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpged (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1013,7 +1013,7 @@ SEM_FN_NAME (sh64_media,fcmpges) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpges (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)]))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1034,7 +1034,7 @@ SEM_FN_NAME (sh64_media,fcmpgtd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpgtd (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1055,7 +1055,7 @@ SEM_FN_NAME (sh64_media,fcmpgts) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpgts (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)]))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1076,7 +1076,7 @@ SEM_FN_NAME (sh64_media,fcmpund) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpund (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1097,7 +1097,7 @@ SEM_FN_NAME (sh64_media,fcmpuns) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTBIDI (sh64_fcmpuns (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)]))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1118,7 +1118,7 @@ SEM_FN_NAME (sh64_media,fcnvds) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fcnvds (current_cpu, GET_H_DR (FLD (f_left_right))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1139,7 +1139,7 @@ SEM_FN_NAME (sh64_media,fcnvsd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fcnvsd (current_cpu, CPU (h_fr[FLD (f_left_right)])); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1160,7 +1160,7 @@ SEM_FN_NAME (sh64_media,fdivd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fdivd (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1181,7 +1181,7 @@ SEM_FN_NAME (sh64_media,fdivs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fdivs (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1202,7 +1202,7 @@ SEM_FN_NAME (sh64_media,fgetscr) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = SUBWORDSISF (CPU (h_fpscr)); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1224,17 +1224,17 @@ SEM_FN_NAME (sh64_media,fiprs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FV (FLD (f_left)); SET_H_FV (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); } { SF opval = GET_H_FV (FLD (f_right)); SET_H_FV (FLD (f_right), opval); - TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); } { SF opval = sh64_fiprs (current_cpu, FLD (f_left), FLD (f_right)); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } } @@ -1256,7 +1256,7 @@ SEM_FN_NAME (sh64_media,fldd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = GETMEMDF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), FLD (f_disp10x8))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1278,7 +1278,7 @@ SEM_FN_NAME (sh64_media,fldp) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FP (FLD (f_dest)); SET_H_FP (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); } sh64_fldp (current_cpu, pc, GET_H_GR (FLD (f_left)), FLD (f_disp10x8), FLD (f_dest)); } @@ -1301,7 +1301,7 @@ SEM_FN_NAME (sh64_media,flds) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GETMEMSF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), FLD (f_disp10x4))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1322,7 +1322,7 @@ SEM_FN_NAME (sh64_media,fldxd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = GETMEMDF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1344,7 +1344,7 @@ SEM_FN_NAME (sh64_media,fldxp) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FP (FLD (f_dest)); SET_H_FP (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); } sh64_fldp (current_cpu, pc, GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)), FLD (f_dest)); } @@ -1367,7 +1367,7 @@ SEM_FN_NAME (sh64_media,fldxs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GETMEMSF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1388,7 +1388,7 @@ SEM_FN_NAME (sh64_media,floatld) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_floatld (current_cpu, CPU (h_fr[FLD (f_left_right)])); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1409,7 +1409,7 @@ SEM_FN_NAME (sh64_media,floatls) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_floatls (current_cpu, CPU (h_fr[FLD (f_left_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1430,7 +1430,7 @@ SEM_FN_NAME (sh64_media,floatqd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_floatqd (current_cpu, GET_H_DR (FLD (f_left_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1451,7 +1451,7 @@ SEM_FN_NAME (sh64_media,floatqs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_floatqs (current_cpu, GET_H_DR (FLD (f_left_right))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1472,7 +1472,7 @@ SEM_FN_NAME (sh64_media,fmacs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fadds (current_cpu, CPU (h_fr[FLD (f_dest)]), sh64_fmuls (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)]))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1493,7 +1493,7 @@ SEM_FN_NAME (sh64_media,fmovd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = GET_H_DR (FLD (f_left_right)); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1514,7 +1514,7 @@ SEM_FN_NAME (sh64_media,fmovdq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SUBWORDDFDI (GET_H_DR (FLD (f_left_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1535,7 +1535,7 @@ SEM_FN_NAME (sh64_media,fmovls) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = SUBWORDSISF (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1)); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1556,7 +1556,7 @@ SEM_FN_NAME (sh64_media,fmovqd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = SUBWORDDIDF (GET_H_GR (FLD (f_left))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1577,7 +1577,7 @@ SEM_FN_NAME (sh64_media,fmovs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = CPU (h_fr[FLD (f_left_right)]); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1598,7 +1598,7 @@ SEM_FN_NAME (sh64_media,fmovsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SUBWORDSFSI (CPU (h_fr[FLD (f_left_right)]))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -1619,7 +1619,7 @@ SEM_FN_NAME (sh64_media,fmuld) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fmuld (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1640,7 +1640,7 @@ SEM_FN_NAME (sh64_media,fmuls) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fmuls (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1661,7 +1661,7 @@ SEM_FN_NAME (sh64_media,fnegd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fnegd (current_cpu, GET_H_DR (FLD (f_left_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1682,7 +1682,7 @@ SEM_FN_NAME (sh64_media,fnegs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fnegs (current_cpu, CPU (h_fr[FLD (f_left_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1703,7 +1703,7 @@ SEM_FN_NAME (sh64_media,fputscr) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SI opval = SUBWORDSFSI (CPU (h_fr[FLD (f_left_right)])); CPU (h_fpscr) = opval; - TRACE_RESULT (current_cpu, abuf, "fpscr", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fpscr", 'x', opval); } return vpc; @@ -1724,7 +1724,7 @@ SEM_FN_NAME (sh64_media,fsqrtd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fsqrtd (current_cpu, GET_H_DR (FLD (f_left_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1745,7 +1745,7 @@ SEM_FN_NAME (sh64_media,fsqrts) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fsqrts (current_cpu, CPU (h_fr[FLD (f_left_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1766,7 +1766,7 @@ SEM_FN_NAME (sh64_media,fstd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = GET_H_DR (FLD (f_dest)); SETMEMDF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), FLD (f_disp10x8)), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); } return vpc; @@ -1788,7 +1788,7 @@ SEM_FN_NAME (sh64_media,fstp) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FP (FLD (f_dest)); SET_H_FP (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); } sh64_fstp (current_cpu, pc, GET_H_GR (FLD (f_left)), FLD (f_disp10x8), FLD (f_dest)); } @@ -1811,7 +1811,7 @@ SEM_FN_NAME (sh64_media,fsts) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = CPU (h_fr[FLD (f_dest)]); SETMEMSF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), FLD (f_disp10x4)), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); } return vpc; @@ -1832,7 +1832,7 @@ SEM_FN_NAME (sh64_media,fstxd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = GET_H_DR (FLD (f_dest)); SETMEMDF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); } return vpc; @@ -1854,7 +1854,7 @@ SEM_FN_NAME (sh64_media,fstxp) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FP (FLD (f_dest)); SET_H_FP (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fp", 'f', opval); } sh64_fstp (current_cpu, pc, GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)), FLD (f_dest)); } @@ -1877,7 +1877,7 @@ SEM_FN_NAME (sh64_media,fstxs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = CPU (h_fr[FLD (f_dest)]); SETMEMSF (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'f', opval); } return vpc; @@ -1898,7 +1898,7 @@ SEM_FN_NAME (sh64_media,fsubd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_fsubd (current_cpu, GET_H_DR (FLD (f_left)), GET_H_DR (FLD (f_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -1919,7 +1919,7 @@ SEM_FN_NAME (sh64_media,fsubs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_fsubs (current_cpu, CPU (h_fr[FLD (f_left)]), CPU (h_fr[FLD (f_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1940,7 +1940,7 @@ SEM_FN_NAME (sh64_media,ftrcdl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_ftrcdl (current_cpu, GET_H_DR (FLD (f_left_right))); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1961,7 +1961,7 @@ SEM_FN_NAME (sh64_media,ftrcsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = sh64_ftrcsl (current_cpu, CPU (h_fr[FLD (f_left_right)])); CPU (h_fr[FLD (f_dest)]) = opval; - TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fr", 'f', opval); } return vpc; @@ -1982,7 +1982,7 @@ SEM_FN_NAME (sh64_media,ftrcdq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_ftrcdq (current_cpu, GET_H_DR (FLD (f_left_right))); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -2003,7 +2003,7 @@ SEM_FN_NAME (sh64_media,ftrcsq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DF opval = sh64_ftrcsq (current_cpu, CPU (h_fr[FLD (f_left_right)])); SET_H_DR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "dr", 'f', opval); } return vpc; @@ -2025,17 +2025,17 @@ SEM_FN_NAME (sh64_media,ftrvs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SF opval = GET_H_FMTX (FLD (f_left)); SET_H_FMTX (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "fmtx", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fmtx", 'f', opval); } { SF opval = GET_H_FV (FLD (f_right)); SET_H_FV (FLD (f_right), opval); - TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); } { SF opval = GET_H_FV (FLD (f_dest)); SET_H_FV (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "fv", 'f', opval); } sh64_ftrvs (current_cpu, FLD (f_left), FLD (f_right), FLD (f_dest)); } @@ -2062,7 +2062,7 @@ SEM_FN_NAME (sh64_media,getcfg) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GETMEMSI (current_cpu, pc, tmp_address); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2084,7 +2084,7 @@ SEM_FN_NAME (sh64_media,getcon) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_CR (FLD (f_left)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2105,7 +2105,7 @@ SEM_FN_NAME (sh64_media,gettr) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = CPU (h_tr[FLD (f_trb)]); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2127,7 +2127,7 @@ SEM_FN_NAME (sh64_media,icbi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -2150,7 +2150,7 @@ SEM_FN_NAME (sh64_media,ldb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTQIDI (GETMEMQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2171,7 +2171,7 @@ SEM_FN_NAME (sh64_media,ldl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (GETMEMSI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x4))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2192,7 +2192,7 @@ SEM_FN_NAME (sh64_media,ldq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GETMEMDI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x8)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2213,7 +2213,7 @@ SEM_FN_NAME (sh64_media,ldub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTQIDI (GETMEMQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2234,7 +2234,7 @@ SEM_FN_NAME (sh64_media,lduw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTHIDI (GETMEMHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x2))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2255,7 +2255,7 @@ SEM_FN_NAME (sh64_media,ldw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTHIDI (GETMEMHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x2))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2285,7 +2285,7 @@ if (ANDQI (tmp_bytecount, 4)) { DI opval = EXTSIDI (GETMEMSI (current_cpu, pc, ANDDI (tmp_addr, -4))); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -2300,7 +2300,7 @@ if (ANDQI (tmp_bytecount, 1)) { DI opval = EXTSIDI (tmp_val); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } else { @@ -2315,7 +2315,7 @@ if (ANDQI (tmp_bytecount, 2)) { DI opval = EXTSIDI (SLLSI (tmp_val, SUBSI (32, MULSI (8, tmp_bytecount)))); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } @@ -2350,7 +2350,7 @@ if (ANDQI (tmp_bytecount, 8)) { DI opval = GETMEMDI (current_cpu, pc, ANDDI (tmp_addr, -8)); SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -2368,7 +2368,7 @@ if (ANDQI (tmp_bytecount, 1)) { DI opval = tmp_val; SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } else { @@ -2386,7 +2386,7 @@ if (ANDQI (tmp_bytecount, 4)) { DI opval = SLLDI (tmp_val, SUBSI (64, MULSI (8, tmp_bytecount))); SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } @@ -2421,7 +2421,7 @@ if (ANDQI (tmp_bytecount, 4)) { DI opval = EXTSIDI (GETMEMSI (current_cpu, pc, tmp_addr)); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -2436,7 +2436,7 @@ if (ANDQI (tmp_bytecount, 2)) { DI opval = EXTSIDI (SLLSI (tmp_val, SUBSI (32, MULSI (8, tmp_bytecount)))); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } else { @@ -2451,7 +2451,7 @@ if (ANDQI (tmp_bytecount, 1)) { DI opval = EXTSIDI (tmp_val); SET_H_GR (FLD (f_dest), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } @@ -2486,7 +2486,7 @@ if (ANDQI (tmp_bytecount, 8)) { DI opval = GETMEMDI (current_cpu, pc, tmp_addr); SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -2504,7 +2504,7 @@ if (ANDQI (tmp_bytecount, 4)) { DI opval = SLLDI (tmp_val, SUBSI (64, MULSI (8, tmp_bytecount))); SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } else { @@ -2522,7 +2522,7 @@ if (ANDQI (tmp_bytecount, 1)) { DI opval = tmp_val; SET_H_GR (FLD (f_dest), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } } @@ -2548,7 +2548,7 @@ SEM_FN_NAME (sh64_media,ldxb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTQIDI (GETMEMQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2569,7 +2569,7 @@ SEM_FN_NAME (sh64_media,ldxl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (GETMEMSI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2590,7 +2590,7 @@ SEM_FN_NAME (sh64_media,ldxq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GETMEMDI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2611,7 +2611,7 @@ SEM_FN_NAME (sh64_media,ldxub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTQIDI (GETMEMUQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2632,7 +2632,7 @@ SEM_FN_NAME (sh64_media,ldxuw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ZEXTHIDI (GETMEMUHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2653,7 +2653,7 @@ SEM_FN_NAME (sh64_media,ldxw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTHIDI (GETMEMHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -2679,7 +2679,7 @@ SEM_FN_NAME (sh64_media,mabsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2710,7 +2710,7 @@ SEM_FN_NAME (sh64_media,mabsw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2737,7 +2737,7 @@ SEM_FN_NAME (sh64_media,maddl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2768,7 +2768,7 @@ SEM_FN_NAME (sh64_media,maddw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2795,7 +2795,7 @@ SEM_FN_NAME (sh64_media,maddsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2834,7 +2834,7 @@ SEM_FN_NAME (sh64_media,maddsub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2865,7 +2865,7 @@ SEM_FN_NAME (sh64_media,maddsw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2904,7 +2904,7 @@ SEM_FN_NAME (sh64_media,mcmpeqb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2931,7 +2931,7 @@ SEM_FN_NAME (sh64_media,mcmpeql) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2962,7 +2962,7 @@ SEM_FN_NAME (sh64_media,mcmpeqw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -2989,7 +2989,7 @@ SEM_FN_NAME (sh64_media,mcmpgtl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3028,7 +3028,7 @@ SEM_FN_NAME (sh64_media,mcmpgtub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3059,7 +3059,7 @@ SEM_FN_NAME (sh64_media,mcmpgtw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3081,7 +3081,7 @@ SEM_FN_NAME (sh64_media,mcmv) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (ANDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), ANDDI (GET_H_GR (FLD (f_dest)), INVDI (GET_H_GR (FLD (f_right))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -3111,7 +3111,7 @@ SEM_FN_NAME (sh64_media,mcnvslw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3150,7 +3150,7 @@ SEM_FN_NAME (sh64_media,mcnvswb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3189,7 +3189,7 @@ SEM_FN_NAME (sh64_media,mcnvswub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3220,7 +3220,7 @@ SEM_FN_NAME (sh64_media,mextr1) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3251,7 +3251,7 @@ SEM_FN_NAME (sh64_media,mextr2) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3282,7 +3282,7 @@ SEM_FN_NAME (sh64_media,mextr3) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3313,7 +3313,7 @@ SEM_FN_NAME (sh64_media,mextr4) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3344,7 +3344,7 @@ SEM_FN_NAME (sh64_media,mextr5) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3375,7 +3375,7 @@ SEM_FN_NAME (sh64_media,mextr6) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3406,7 +3406,7 @@ SEM_FN_NAME (sh64_media,mextr7) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (tmp_rhs, SLLDI (ANDDI (GET_H_GR (FLD (f_right)), tmp_mask), tmp_count)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3440,7 +3440,7 @@ SEM_FN_NAME (sh64_media,mmacfxwl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3474,7 +3474,7 @@ SEM_FN_NAME (sh64_media,mmacnfx_wl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3501,7 +3501,7 @@ SEM_FN_NAME (sh64_media,mmull) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3532,7 +3532,7 @@ SEM_FN_NAME (sh64_media,mmulw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3562,7 +3562,7 @@ SEM_FN_NAME (sh64_media,mmulfxl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3598,7 +3598,7 @@ SEM_FN_NAME (sh64_media,mmulfxw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3636,7 +3636,7 @@ SEM_FN_NAME (sh64_media,mmulfxrpw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3663,7 +3663,7 @@ SEM_FN_NAME (sh64_media,mmulhiwl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3690,7 +3690,7 @@ SEM_FN_NAME (sh64_media,mmullowl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3718,7 +3718,7 @@ SEM_FN_NAME (sh64_media,mmulsumwq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDDI (GET_H_GR (FLD (f_dest)), tmp_acc); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3740,7 +3740,7 @@ SEM_FN_NAME (sh64_media,movi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (FLD (f_imm16)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -3772,7 +3772,7 @@ SEM_FN_NAME (sh64_media,mpermw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3804,7 +3804,7 @@ SEM_FN_NAME (sh64_media,msadubq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDDI (GET_H_GR (FLD (f_dest)), tmp_acc); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3831,7 +3831,7 @@ SEM_FN_NAME (sh64_media,mshaldsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3862,7 +3862,7 @@ SEM_FN_NAME (sh64_media,mshaldsw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3889,7 +3889,7 @@ SEM_FN_NAME (sh64_media,mshardl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3920,7 +3920,7 @@ SEM_FN_NAME (sh64_media,mshardw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -3942,7 +3942,7 @@ SEM_FN_NAME (sh64_media,mshardsq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ((LTDI (SRADI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63)), NEGDI (SLLDI (1, SUBSI (16, 1))))) ? (NEGDI (SLLDI (1, SUBSI (16, 1)))) : (((LTDI (SRADI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63)), SLLDI (1, SUBSI (16, 1)))) ? (SRADI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63))) : (SUBDI (SLLDI (1, SUBSI (16, 1)), 1))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -3980,7 +3980,7 @@ SEM_FN_NAME (sh64_media,mshfhib) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4007,7 +4007,7 @@ SEM_FN_NAME (sh64_media,mshfhil) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4038,7 +4038,7 @@ SEM_FN_NAME (sh64_media,mshfhiw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4077,7 +4077,7 @@ SEM_FN_NAME (sh64_media,mshflob) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4104,7 +4104,7 @@ SEM_FN_NAME (sh64_media,mshflol) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4135,7 +4135,7 @@ SEM_FN_NAME (sh64_media,mshflow) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4162,7 +4162,7 @@ SEM_FN_NAME (sh64_media,mshlldl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4193,7 +4193,7 @@ SEM_FN_NAME (sh64_media,mshlldw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4220,7 +4220,7 @@ SEM_FN_NAME (sh64_media,mshlrdl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4251,7 +4251,7 @@ SEM_FN_NAME (sh64_media,mshlrdw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4278,7 +4278,7 @@ SEM_FN_NAME (sh64_media,msubl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4309,7 +4309,7 @@ SEM_FN_NAME (sh64_media,msubw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTHIDI (tmp_result3), 48), ORDI (SLLDI (ZEXTHIDI (tmp_result2), 32), ORDI (SLLDI (ZEXTHIDI (tmp_result1), 16), ZEXTHIDI (tmp_result0)))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4336,7 +4336,7 @@ SEM_FN_NAME (sh64_media,msubsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTSIDI (tmp_result1), 32), ZEXTSIDI (tmp_result0)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4375,7 +4375,7 @@ SEM_FN_NAME (sh64_media,msubsub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4414,7 +4414,7 @@ SEM_FN_NAME (sh64_media,msubsw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (ZEXTQIDI (tmp_result7), 56), ORDI (SLLDI (ZEXTQIDI (tmp_result6), 48), ORDI (SLLDI (ZEXTQIDI (tmp_result5), 40), ORDI (SLLDI (ZEXTQIDI (tmp_result4), 32), ORDI (SLLDI (ZEXTQIDI (tmp_result3), 24), ORDI (SLLDI (ZEXTQIDI (tmp_result2), 16), ORDI (SLLDI (ZEXTQIDI (tmp_result1), 8), ZEXTQIDI (tmp_result0)))))))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -4436,7 +4436,7 @@ SEM_FN_NAME (sh64_media,mulsl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = MULDI (EXTSIDI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1)), EXTSIDI (SUBWORDDISI (GET_H_GR (FLD (f_right)), 1))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4457,7 +4457,7 @@ SEM_FN_NAME (sh64_media,mulul) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = MULDI (ZEXTSIDI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1)), ZEXTSIDI (SUBWORDDISI (GET_H_GR (FLD (f_right)), 1))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4495,7 +4495,7 @@ SEM_FN_NAME (sh64_media,nsb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = sh64_nsb (current_cpu, GET_H_GR (FLD (f_left))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4517,7 +4517,7 @@ SEM_FN_NAME (sh64_media,ocbi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -4541,7 +4541,7 @@ SEM_FN_NAME (sh64_media,ocbp) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -4565,7 +4565,7 @@ SEM_FN_NAME (sh64_media,ocbwb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -4588,7 +4588,7 @@ SEM_FN_NAME (sh64_media,or) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4609,7 +4609,7 @@ SEM_FN_NAME (sh64_media,ori) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_imm10))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4631,7 +4631,7 @@ SEM_FN_NAME (sh64_media,prefi) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_GR (FLD (f_left), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } ((void) 0); /*nop*/ } @@ -4656,7 +4656,7 @@ SEM_FN_NAME (sh64_media,pta) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDSI (FLD (f_disp16), 1); CPU (h_tr[FLD (f_tra)]) = opval; - TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); } } @@ -4680,7 +4680,7 @@ SEM_FN_NAME (sh64_media,ptabs) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_right)); CPU (h_tr[FLD (f_tra)]) = opval; - TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); } } @@ -4704,7 +4704,7 @@ SEM_FN_NAME (sh64_media,ptb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = FLD (f_disp16); CPU (h_tr[FLD (f_tra)]) = opval; - TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); } } @@ -4728,7 +4728,7 @@ SEM_FN_NAME (sh64_media,ptrel) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ADDDI (pc, GET_H_GR (FLD (f_right))); CPU (h_tr[FLD (f_tra)]) = opval; - TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "tr", 'D', opval); } } @@ -4754,7 +4754,7 @@ SEM_FN_NAME (sh64_media,putcfg) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SI opval = GET_H_GR (FLD (f_dest)); SETMEMSI (current_cpu, pc, tmp_address, opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } } @@ -4776,7 +4776,7 @@ SEM_FN_NAME (sh64_media,putcon) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_left)); SET_H_CR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "cr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "cr", 'D', opval); } return vpc; @@ -4814,7 +4814,7 @@ SEM_FN_NAME (sh64_media,shard) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SRADI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4835,7 +4835,7 @@ SEM_FN_NAME (sh64_media,shardl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SRASI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDDI (GET_H_GR (FLD (f_right)), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4856,7 +4856,7 @@ SEM_FN_NAME (sh64_media,shari) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SRADI (GET_H_GR (FLD (f_left)), FLD (f_uimm6)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4877,7 +4877,7 @@ SEM_FN_NAME (sh64_media,sharil) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SRASI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDSI (FLD (f_uimm6), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4898,7 +4898,7 @@ SEM_FN_NAME (sh64_media,shlld) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SLLDI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4919,7 +4919,7 @@ SEM_FN_NAME (sh64_media,shlldl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SLLSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDDI (GET_H_GR (FLD (f_right)), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4940,7 +4940,7 @@ SEM_FN_NAME (sh64_media,shlli) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SLLDI (GET_H_GR (FLD (f_left)), FLD (f_uimm6)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4961,7 +4961,7 @@ SEM_FN_NAME (sh64_media,shllil) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SLLSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDSI (FLD (f_uimm6), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -4982,7 +4982,7 @@ SEM_FN_NAME (sh64_media,shlrd) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SRLDI (GET_H_GR (FLD (f_left)), ANDDI (GET_H_GR (FLD (f_right)), 63)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5003,7 +5003,7 @@ SEM_FN_NAME (sh64_media,shlrdl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SRLSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDDI (GET_H_GR (FLD (f_right)), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5024,7 +5024,7 @@ SEM_FN_NAME (sh64_media,shlri) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SRLDI (GET_H_GR (FLD (f_left)), FLD (f_uimm6)); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5045,7 +5045,7 @@ SEM_FN_NAME (sh64_media,shlril) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SRLSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), ANDSI (FLD (f_uimm6), 63))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5066,7 +5066,7 @@ SEM_FN_NAME (sh64_media,shori) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = ORDI (SLLDI (GET_H_GR (FLD (f_dest)), 16), ZEXTSIDI (FLD (f_uimm16))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5104,7 +5104,7 @@ SEM_FN_NAME (sh64_media,stb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { UQI opval = ANDQI (GET_H_GR (FLD (f_dest)), 255); SETMEMUQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5125,7 +5125,7 @@ SEM_FN_NAME (sh64_media,stl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SI opval = ANDSI (GET_H_GR (FLD (f_dest)), 0xffffffff); SETMEMSI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x4))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5146,7 +5146,7 @@ SEM_FN_NAME (sh64_media,stq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_dest)); SETMEMDI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x8))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); } return vpc; @@ -5167,7 +5167,7 @@ SEM_FN_NAME (sh64_media,stw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { HI opval = ANDHI (GET_H_GR (FLD (f_dest)), 65535); SETMEMHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_disp10x2))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5196,7 +5196,7 @@ if (ANDQI (tmp_bytecount, 4)) { SI opval = GET_H_GR (FLD (f_dest)); SETMEMSI (current_cpu, pc, ANDDI (tmp_addr, -4), opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } } else { if (GET_H_ENDIAN ()) { @@ -5208,7 +5208,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5219,7 +5219,7 @@ if (ANDQI (tmp_bytecount, 2)) { HI opval = ANDHI (tmp_val, 65535); SETMEMHI (current_cpu, pc, ANDDI (tmp_addr, -4), opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5234,7 +5234,7 @@ if (ANDQI (tmp_bytecount, 2)) { HI opval = ANDHI (tmp_val, 65535); SETMEMHI (current_cpu, pc, ANDDI (tmp_addr, -4), opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5245,7 +5245,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5282,7 +5282,7 @@ if (ANDQI (tmp_bytecount, 8)) { DI opval = GET_H_GR (FLD (f_dest)); SETMEMDI (current_cpu, pc, ANDDI (tmp_addr, -8), opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -5294,7 +5294,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5305,7 +5305,7 @@ if (ANDQI (tmp_bytecount, 2)) { HI opval = ANDHI (tmp_val, 65535); SETMEMHI (current_cpu, pc, ANDDI (tmp_addr, -4), opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5316,7 +5316,7 @@ if (ANDQI (tmp_bytecount, 4)) { SI opval = ANDSI (tmp_val, 0xffffffff); SETMEMSI (current_cpu, pc, ANDDI (tmp_addr, -8), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 32); } @@ -5331,7 +5331,7 @@ if (ANDQI (tmp_bytecount, 4)) { SI opval = ANDSI (tmp_val, 0xffffffff); SETMEMSI (current_cpu, pc, ANDDI (tmp_addr, -8), opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 32); } @@ -5342,7 +5342,7 @@ if (ANDQI (tmp_bytecount, 2)) { HI opval = ANDHI (tmp_val, 65535); SETMEMHI (current_cpu, pc, ANDDI (tmp_addr, -4), opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5353,7 +5353,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5390,7 +5390,7 @@ if (ANDQI (tmp_bytecount, 4)) { USI opval = GET_H_GR (FLD (f_dest)); SETMEMUSI (current_cpu, pc, tmp_addr, opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } } else { if (GET_H_ENDIAN ()) { @@ -5402,7 +5402,7 @@ if (ANDQI (tmp_bytecount, 2)) { UHI opval = ANDHI (tmp_val, 65535); SETMEMUHI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 1), -2), opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5413,7 +5413,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5428,7 +5428,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5439,7 +5439,7 @@ if (ANDQI (tmp_bytecount, 2)) { UHI opval = ANDHI (tmp_val, 65535); SETMEMUHI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 1), -2), opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5476,7 +5476,7 @@ if (ANDQI (tmp_bytecount, 8)) { UDI opval = GET_H_GR (FLD (f_dest)); SETMEMUDI (current_cpu, pc, tmp_addr, opval); written |= (1 << 4); - TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); } } else { if (GET_H_ENDIAN ()) { @@ -5488,7 +5488,7 @@ if (ANDQI (tmp_bytecount, 4)) { USI opval = ANDSI (tmp_val, 0xffffffff); SETMEMUSI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 3), -4), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 32); } @@ -5499,7 +5499,7 @@ if (ANDQI (tmp_bytecount, 2)) { UHI opval = ANDHI (tmp_val, 65535); SETMEMUHI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 1), -2), opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5510,7 +5510,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5525,7 +5525,7 @@ if (ANDQI (tmp_bytecount, 1)) { UQI opval = ANDQI (tmp_val, 255); SETMEMUQI (current_cpu, pc, tmp_addr, opval); written |= (1 << 6); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 8); } @@ -5536,7 +5536,7 @@ if (ANDQI (tmp_bytecount, 2)) { UHI opval = ANDHI (tmp_val, 65535); SETMEMUHI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 1), -2), opval); written |= (1 << 5); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 16); } @@ -5547,7 +5547,7 @@ if (ANDQI (tmp_bytecount, 4)) { USI opval = ANDSI (tmp_val, 0xffffffff); SETMEMUSI (current_cpu, pc, ANDDI (ADDDI (tmp_addr, 3), -4), opval); written |= (1 << 7); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } tmp_val = SRLDI (tmp_val, 32); } @@ -5576,7 +5576,7 @@ SEM_FN_NAME (sh64_media,stxb) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { UQI opval = SUBWORDDIQI (GET_H_GR (FLD (f_dest)), 7); SETMEMUQI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5597,7 +5597,7 @@ SEM_FN_NAME (sh64_media,stxl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { SI opval = SUBWORDDISI (GET_H_GR (FLD (f_dest)), 1); SETMEMSI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5618,7 +5618,7 @@ SEM_FN_NAME (sh64_media,stxq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_dest)); SETMEMDI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); } return vpc; @@ -5639,7 +5639,7 @@ SEM_FN_NAME (sh64_media,stxw) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { HI opval = SUBWORDDIHI (GET_H_GR (FLD (f_dest)), 3); SETMEMHI (current_cpu, pc, ADDDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))), opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval); } return vpc; @@ -5660,7 +5660,7 @@ SEM_FN_NAME (sh64_media,sub) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = SUBDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5681,7 +5681,7 @@ SEM_FN_NAME (sh64_media,subl) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = EXTSIDI (SUBSI (SUBWORDDISI (GET_H_GR (FLD (f_left)), 1), SUBWORDDISI (GET_H_GR (FLD (f_right)), 1))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5707,12 +5707,12 @@ SEM_FN_NAME (sh64_media,swapq) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = GET_H_GR (FLD (f_dest)); SETMEMDI (current_cpu, pc, tmp_addr, opval); - TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "memory", 'D', opval); } { DI opval = tmp_temp; SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } } @@ -5785,7 +5785,7 @@ SEM_FN_NAME (sh64_media,xor) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = XORDI (GET_H_GR (FLD (f_left)), GET_H_GR (FLD (f_right))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; @@ -5806,7 +5806,7 @@ SEM_FN_NAME (sh64_media,xori) (SIM_CPU *current_cpu, SEM_ARG sem_arg) { DI opval = XORDI (GET_H_GR (FLD (f_left)), EXTSIDI (FLD (f_imm6))); SET_H_GR (FLD (f_dest), opval); - TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); + CGEN_TRACE_RESULT (current_cpu, abuf, "gr", 'D', opval); } return vpc; |