aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/sem-switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32r/sem-switch.c')
-rw-r--r--sim/m32r/sem-switch.c240
1 files changed, 120 insertions, 120 deletions
diff --git a/sim/m32r/sem-switch.c b/sim/m32r/sem-switch.c
index 3cb0f7e..dce64a6 100644
--- a/sim/m32r/sem-switch.c
+++ b/sim/m32r/sem-switch.c
@@ -161,7 +161,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#if FAST_P
#undef TRACE_RESULT
-#define TRACE_RESULT(cpu, name, type, val)
+#define TRACE_RESULT(cpu, abuf, name, type, val)
#endif
#undef GET_ATTR
@@ -340,7 +340,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ADDSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -359,7 +359,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ADDSI (* FLD (i_sr), FLD (f_simm16));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -378,7 +378,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ANDSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -397,7 +397,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ANDSI (* FLD (i_sr), FLD (f_uimm16));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -416,7 +416,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ORSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -435,7 +435,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ORSI (* FLD (i_sr), FLD (f_uimm16));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -454,7 +454,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = XORSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -473,7 +473,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = XORSI (* FLD (i_sr), FLD (f_uimm16));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -492,7 +492,7 @@ SWITCH (sem, SEM_ARGBUF (vpc) -> semantic.sem_case)
{
SI opval = ADDSI (* FLD (i_dr), FLD (f_simm8));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -515,12 +515,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
BI opval = temp1;
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
} while (0);
@@ -544,12 +544,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
BI opval = temp1;
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
} while (0);
@@ -573,12 +573,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
BI opval = temp1;
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
} while (0);
@@ -601,7 +601,7 @@ if (CPU (h_cond)) {
USI opval = FLD (f_disp8);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -626,7 +626,7 @@ if (CPU (h_cond)) {
USI opval = FLD (f_disp24);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -651,7 +651,7 @@ if (EQSI (* FLD (i_src1), * FLD (i_src2))) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 3);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -676,7 +676,7 @@ if (EQSI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -701,7 +701,7 @@ if (GESI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -726,7 +726,7 @@ if (GTSI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -751,7 +751,7 @@ if (LESI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -776,7 +776,7 @@ if (LTSI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -801,7 +801,7 @@ if (NESI (* FLD (i_src2), 0)) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -825,12 +825,12 @@ do {
{
SI opval = ADDSI (ANDSI (pc, -4), 4);
CPU (h_gr[((UINT) 14)]) = opval;
- TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "gr-14", 'x', opval);
}
{
USI opval = FLD (f_disp8);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
} while (0);
@@ -853,12 +853,12 @@ do {
{
SI opval = ADDSI (pc, 4);
CPU (h_gr[((UINT) 14)]) = opval;
- TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "gr-14", 'x', opval);
}
{
USI opval = FLD (f_disp24);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
} while (0);
@@ -882,7 +882,7 @@ if (NOTBI (CPU (h_cond))) {
USI opval = FLD (f_disp8);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -907,7 +907,7 @@ if (NOTBI (CPU (h_cond))) {
USI opval = FLD (f_disp24);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -932,7 +932,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
USI opval = FLD (f_disp16);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
written |= (1 << 3);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
}
@@ -955,7 +955,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
USI opval = FLD (f_disp8);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
SEM_BRANCH_FINI
@@ -976,7 +976,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
USI opval = FLD (f_disp24);
SEM_BRANCH_VIA_CACHE (current_cpu, sem_arg, opval, vpc, SEM_BRANCH_ADDR_CACHE (sem_arg));
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
SEM_BRANCH_FINI
@@ -996,7 +996,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
BI opval = LTSI (* FLD (i_src1), * FLD (i_src2));
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
#undef FLD
@@ -1015,7 +1015,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
BI opval = LTSI (* FLD (i_src2), FLD (f_simm16));
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
#undef FLD
@@ -1034,7 +1034,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
BI opval = LTUSI (* FLD (i_src1), * FLD (i_src2));
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
#undef FLD
@@ -1053,7 +1053,7 @@ if (NESI (* FLD (i_src1), * FLD (i_src2))) {
{
BI opval = LTUSI (* FLD (i_src2), FLD (f_simm16));
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
#undef FLD
@@ -1074,7 +1074,7 @@ if (NESI (* FLD (i_sr), 0)) {
SI opval = DIVSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
}
@@ -1097,7 +1097,7 @@ if (NESI (* FLD (i_sr), 0)) {
SI opval = UDIVSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
}
@@ -1120,7 +1120,7 @@ if (NESI (* FLD (i_sr), 0)) {
SI opval = MODSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
}
@@ -1143,7 +1143,7 @@ if (NESI (* FLD (i_sr), 0)) {
SI opval = UMODSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
written |= (1 << 2);
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
}
@@ -1169,12 +1169,12 @@ do {
{
SI opval = temp0;
CPU (h_gr[((UINT) 14)]) = opval;
- TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "gr-14", 'x', opval);
}
{
USI opval = temp1;
SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
} while (0);
@@ -1196,7 +1196,7 @@ do {
{
USI opval = ANDSI (* FLD (i_sr), -4);
SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
SEM_BRANCH_FINI
@@ -1216,7 +1216,7 @@ do {
{
SI opval = GETMEMSI (current_cpu, * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1235,7 +1235,7 @@ do {
{
SI opval = GETMEMSI (current_cpu, ADDSI (* FLD (i_sr), FLD (f_simm16)));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1254,7 +1254,7 @@ do {
{
SI opval = EXTQISI (GETMEMQI (current_cpu, * FLD (i_sr)));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1273,7 +1273,7 @@ do {
{
SI opval = EXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (i_sr), FLD (f_simm16))));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1292,7 +1292,7 @@ do {
{
SI opval = EXTHISI (GETMEMHI (current_cpu, * FLD (i_sr)));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1311,7 +1311,7 @@ do {
{
SI opval = EXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (i_sr), FLD (f_simm16))));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1330,7 +1330,7 @@ do {
{
SI opval = ZEXTQISI (GETMEMQI (current_cpu, * FLD (i_sr)));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1349,7 +1349,7 @@ do {
{
SI opval = ZEXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (i_sr), FLD (f_simm16))));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1368,7 +1368,7 @@ do {
{
SI opval = ZEXTHISI (GETMEMHI (current_cpu, * FLD (i_sr)));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1387,7 +1387,7 @@ do {
{
SI opval = ZEXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (i_sr), FLD (f_simm16))));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1410,12 +1410,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
SI opval = temp1;
* FLD (i_sr) = opval;
- TRACE_RESULT (current_cpu, "sr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "sr", 'x', opval);
}
} while (0);
@@ -1435,7 +1435,7 @@ do {
{
SI opval = FLD (f_uimm24);
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1454,7 +1454,7 @@ do {
{
SI opval = FLD (f_simm8);
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1473,7 +1473,7 @@ do {
{
SI opval = FLD (f_simm16);
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1493,12 +1493,12 @@ do {
{
BI opval = 1;
CPU (h_lock) = opval;
- TRACE_RESULT (current_cpu, "lock-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "lock-0", 'x', opval);
}
{
SI opval = GETMEMSI (current_cpu, * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
} while (0);
@@ -1518,7 +1518,7 @@ do {
{
DI opval = SRADI (SLLDI (ADDDI (m32rbf_h_accum_get (current_cpu), MULDI (EXTSIDI (ANDSI (* FLD (i_src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (i_src2), 16))))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1537,7 +1537,7 @@ do {
{
DI opval = SRADI (SLLDI (ADDDI (m32rbf_h_accum_get (current_cpu), MULDI (EXTSIDI (SLLSI (* FLD (i_src1), 16)), EXTHIDI (TRUNCSIHI (* FLD (i_src2))))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1556,7 +1556,7 @@ do {
{
DI opval = SRADI (SLLDI (ADDDI (m32rbf_h_accum_get (current_cpu), MULDI (EXTSIDI (* FLD (i_src1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (i_src2), 16))))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1575,7 +1575,7 @@ do {
{
DI opval = SRADI (SLLDI (ADDDI (m32rbf_h_accum_get (current_cpu), MULDI (EXTSIDI (* FLD (i_src1)), EXTHIDI (TRUNCSIHI (* FLD (i_src2))))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1594,7 +1594,7 @@ do {
{
SI opval = MULSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1613,7 +1613,7 @@ do {
{
DI opval = SRADI (SLLDI (MULDI (EXTSIDI (ANDSI (* FLD (i_src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (i_src2), 16)))), 16), 16);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1632,7 +1632,7 @@ do {
{
DI opval = SRADI (SLLDI (MULDI (EXTSIDI (SLLSI (* FLD (i_src1), 16)), EXTHIDI (TRUNCSIHI (* FLD (i_src2)))), 16), 16);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1651,7 +1651,7 @@ do {
{
DI opval = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (i_src1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (i_src2), 16)))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1670,7 +1670,7 @@ do {
{
DI opval = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (i_src1)), EXTHIDI (TRUNCSIHI (* FLD (i_src2)))), 8), 8);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1689,7 +1689,7 @@ do {
{
SI opval = * FLD (i_sr);
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1708,7 +1708,7 @@ do {
{
SI opval = TRUNCDISI (SRADI (m32rbf_h_accum_get (current_cpu), 32));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1727,7 +1727,7 @@ do {
{
SI opval = TRUNCDISI (m32rbf_h_accum_get (current_cpu));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1746,7 +1746,7 @@ do {
{
SI opval = TRUNCDISI (SRADI (m32rbf_h_accum_get (current_cpu), 16));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1765,7 +1765,7 @@ do {
{
SI opval = m32rbf_h_cr_get (current_cpu, FLD (f_r2));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1784,7 +1784,7 @@ do {
{
DI opval = ORDI (ANDDI (m32rbf_h_accum_get (current_cpu), MAKEDI (0, 0xffffffff)), SLLDI (EXTSIDI (* FLD (i_src1)), 32));
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1803,7 +1803,7 @@ do {
{
DI opval = ORDI (ANDDI (m32rbf_h_accum_get (current_cpu), MAKEDI (0xffffffff, 0)), ZEXTSIDI (* FLD (i_src1)));
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
#undef FLD
@@ -1822,7 +1822,7 @@ do {
{
USI opval = * FLD (i_sr);
m32rbf_h_cr_set (current_cpu, FLD (f_r1), opval);
- TRACE_RESULT (current_cpu, "dcr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dcr", 'x', opval);
}
#undef FLD
@@ -1841,7 +1841,7 @@ do {
{
SI opval = NEGSI (* FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1875,7 +1875,7 @@ PROFILE_COUNT_FILLNOPS (current_cpu, abuf->addr);
{
SI opval = INVSI (* FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -1898,7 +1898,7 @@ do {
{
DI opval = (GTDI (tmp_tmp1, MAKEDI (32767, 0xffff0000))) ? (MAKEDI (32767, 0xffff0000)) : (LTDI (tmp_tmp1, MAKEDI (0xffff8000, 0))) ? (MAKEDI (0xffff8000, 0)) : (ANDDI (tmp_tmp1, MAKEDI (0xffffffff, 0xffff0000)));
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
} while (0);
@@ -1931,7 +1931,7 @@ if (ANDIF (GEDI (tmp_tmp1, MAKEDI (8388608, 0)), LEDI (tmp_tmp1, MAKEDI (1676083
{
DI opval = SRADI (SLLDI (tmp_tmp1, 7), 7);
m32rbf_h_accum_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ TRACE_RESULT (current_cpu, abuf, "accum", 'D', opval);
}
} while (0);
@@ -1953,22 +1953,22 @@ do {
{
USI opval = ANDSI (m32rbf_h_cr_get (current_cpu, ((UINT) 6)), -4);
SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
{
USI opval = m32rbf_h_cr_get (current_cpu, ((UINT) 14));
m32rbf_h_cr_set (current_cpu, ((UINT) 6), opval);
- TRACE_RESULT (current_cpu, "cr-6", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "cr-6", 'x', opval);
}
{
UQI opval = CPU (h_bpsw);
m32rbf_h_psw_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "psw-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "psw-0", 'x', opval);
}
{
UQI opval = CPU (h_bbpsw);
CPU (h_bpsw) = opval;
- TRACE_RESULT (current_cpu, "bpsw-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "bpsw-0", 'x', opval);
}
} while (0);
@@ -1989,7 +1989,7 @@ do {
{
SI opval = SLLSI (FLD (f_hi16), 16);
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2008,7 +2008,7 @@ do {
{
SI opval = SLLSI (* FLD (i_dr), ANDSI (* FLD (i_sr), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2027,7 +2027,7 @@ do {
{
SI opval = SLLSI (* FLD (i_sr), ANDSI (FLD (f_simm16), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2046,7 +2046,7 @@ do {
{
SI opval = SLLSI (* FLD (i_dr), FLD (f_uimm5));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2065,7 +2065,7 @@ do {
{
SI opval = SRASI (* FLD (i_dr), ANDSI (* FLD (i_sr), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2084,7 +2084,7 @@ do {
{
SI opval = SRASI (* FLD (i_sr), ANDSI (FLD (f_simm16), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2103,7 +2103,7 @@ do {
{
SI opval = SRASI (* FLD (i_dr), FLD (f_uimm5));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2122,7 +2122,7 @@ do {
{
SI opval = SRLSI (* FLD (i_dr), ANDSI (* FLD (i_sr), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2141,7 +2141,7 @@ do {
{
SI opval = SRLSI (* FLD (i_sr), ANDSI (FLD (f_simm16), 31));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2160,7 +2160,7 @@ do {
{
SI opval = SRLSI (* FLD (i_dr), FLD (f_uimm5));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2179,7 +2179,7 @@ do {
{
SI opval = * FLD (i_src1);
SETMEMSI (current_cpu, * FLD (i_src2), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2198,7 +2198,7 @@ do {
{
SI opval = * FLD (i_src1);
SETMEMSI (current_cpu, ADDSI (* FLD (i_src2), FLD (f_simm16)), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2217,7 +2217,7 @@ do {
{
QI opval = * FLD (i_src1);
SETMEMQI (current_cpu, * FLD (i_src2), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2236,7 +2236,7 @@ do {
{
QI opval = * FLD (i_src1);
SETMEMQI (current_cpu, ADDSI (* FLD (i_src2), FLD (f_simm16)), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2255,7 +2255,7 @@ do {
{
HI opval = * FLD (i_src1);
SETMEMHI (current_cpu, * FLD (i_src2), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2274,7 +2274,7 @@ do {
{
HI opval = * FLD (i_src1);
SETMEMHI (current_cpu, ADDSI (* FLD (i_src2), FLD (f_simm16)), opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
#undef FLD
@@ -2296,12 +2296,12 @@ do {
{
SI opval = * FLD (i_src1);
SETMEMSI (current_cpu, tmp_new_src2, opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
{
SI opval = tmp_new_src2;
* FLD (i_src2) = opval;
- TRACE_RESULT (current_cpu, "src2", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "src2", 'x', opval);
}
} while (0);
@@ -2324,12 +2324,12 @@ do {
{
SI opval = * FLD (i_src1);
SETMEMSI (current_cpu, tmp_new_src2, opval);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
{
SI opval = tmp_new_src2;
* FLD (i_src2) = opval;
- TRACE_RESULT (current_cpu, "src2", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "src2", 'x', opval);
}
} while (0);
@@ -2349,7 +2349,7 @@ do {
{
SI opval = SUBSI (* FLD (i_dr), * FLD (i_sr));
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
#undef FLD
@@ -2372,12 +2372,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
BI opval = temp1;
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
} while (0);
@@ -2401,12 +2401,12 @@ do {
{
SI opval = temp0;
* FLD (i_dr) = opval;
- TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "dr", 'x', opval);
}
{
BI opval = temp1;
CPU (h_cond) = opval;
- TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "condbit", 'x', opval);
}
} while (0);
@@ -2428,32 +2428,32 @@ do {
{
USI opval = m32rbf_h_cr_get (current_cpu, ((UINT) 6));
m32rbf_h_cr_set (current_cpu, ((UINT) 14), opval);
- TRACE_RESULT (current_cpu, "cr-14", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "cr-14", 'x', opval);
}
{
USI opval = ADDSI (pc, 4);
m32rbf_h_cr_set (current_cpu, ((UINT) 6), opval);
- TRACE_RESULT (current_cpu, "cr-6", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "cr-6", 'x', opval);
}
{
UQI opval = CPU (h_bpsw);
CPU (h_bbpsw) = opval;
- TRACE_RESULT (current_cpu, "bbpsw-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "bbpsw-0", 'x', opval);
}
{
UQI opval = m32rbf_h_psw_get (current_cpu);
CPU (h_bpsw) = opval;
- TRACE_RESULT (current_cpu, "bpsw-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "bpsw-0", 'x', opval);
}
{
UQI opval = ANDQI (m32rbf_h_psw_get (current_cpu), 128);
m32rbf_h_psw_set (current_cpu, opval);
- TRACE_RESULT (current_cpu, "psw-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "psw-0", 'x', opval);
}
{
SI opval = m32r_trap (current_cpu, pc, FLD (f_uimm4));
SEM_BRANCH_VIA_ADDR (current_cpu, sem_arg, opval, vpc);
- TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "pc", 'x', opval);
}
} while (0);
@@ -2477,13 +2477,13 @@ if (CPU (h_lock)) {
SI opval = * FLD (i_src1);
SETMEMSI (current_cpu, * FLD (i_src2), opval);
written |= (1 << 3);
- TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "memory", 'x', opval);
}
}
{
BI opval = 0;
CPU (h_lock) = opval;
- TRACE_RESULT (current_cpu, "lock-0", 'x', opval);
+ TRACE_RESULT (current_cpu, abuf, "lock-0", 'x', opval);
}
} while (0);