/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
abuf->h_gr_set = 0 | (1 << f_r2);
}
#endif
/* Record the fields for profiling. */
if (PROFILE_MODEL_P (current_cpu))
{
- abuf->h_gr_get = 0 | (1 << f_r1) | (1 << f_r2);
+ abuf->h_gr_get = 0 | (1 << f_r2) | (1 << f_r1);
}
#endif
#undef FLD
EXTRACT_FMT_ADD3_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (slo16) = f_simm16;
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (slo16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_ADDV3_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (simm16) = f_simm16;
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (simm16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_ADDX_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (condbit) = CPU (h_cond);
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (condbit) = CPU (h_cond);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_BEQ_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (disp16) = pc + f_disp16;
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (disp16) = pc + f_disp16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_BEQZ_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (disp16) = pc + f_disp16;
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (disp16) = pc + f_disp16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_BL8_CODE
/* Fetch the input operands for the semantic handler. */
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
OPRND (pc) = CPU (h_pc);
+ RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_BL24_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (disp24) = pc + f_disp24;
OPRND (pc) = CPU (h_pc);
+ OPRND (disp24) = pc + f_disp24;
#undef OPRND
}
BREAK (read);
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
OPRND (pc) = CPU (h_pc);
+ RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
#undef OPRND
}
BREAK (read);
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
- OPRND (disp24) = pc + f_disp24;
OPRND (pc) = CPU (h_pc);
+ OPRND (disp24) = pc + f_disp24;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_CMPI_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (simm16) = f_simm16;
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (simm16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_LD_D_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (h_memory_add_WI_sr_slo16) = GETMEMSI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
- OPRND (slo16) = f_simm16;
+ OPRND (h_memory_add__VM_sr_slo16) = GETMEMSI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (slo16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_LDB_D_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (h_memory_add_WI_sr_slo16) = GETMEMQI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
- OPRND (slo16) = f_simm16;
+ OPRND (h_memory_add__VM_sr_slo16) = GETMEMQI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (slo16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_LDH_D_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (h_memory_add_WI_sr_slo16) = GETMEMHI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
- OPRND (slo16) = f_simm16;
+ OPRND (h_memory_add__VM_sr_slo16) = GETMEMHI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (slo16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_RTE_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (h_bcond_0) = CPU (h_bcond);
+ OPRND (h_bsm_0) = CPU (h_bsm);
OPRND (h_bie_0) = CPU (h_bie);
+ OPRND (h_bcond_0) = CPU (h_bcond);
OPRND (h_bpc_0) = CPU (h_bpc);
- OPRND (h_bsm_0) = CPU (h_bsm);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_SLL3_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (simm16) = f_simm16;
OPRND (sr) = CPU (h_gr[f_r2]);
+ OPRND (simm16) = f_simm16;
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_ST_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (src1) = CPU (h_gr[f_r1]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_ST_D_CODE
/* Fetch the input operands for the semantic handler. */
+ OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
OPRND (src1) = CPU (h_gr[f_r1]);
- OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_STB_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (src1) = CPU (h_gr[f_r1]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_STB_D_CODE
/* Fetch the input operands for the semantic handler. */
+ OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
OPRND (src1) = CPU (h_gr[f_r1]);
- OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_STH_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (src1) = CPU (h_gr[f_r1]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_STH_D_CODE
/* Fetch the input operands for the semantic handler. */
+ OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
OPRND (src1) = CPU (h_gr[f_r1]);
- OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_ST_PLUS_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (src1) = CPU (h_gr[f_r1]);
#undef OPRND
}
BREAK (read);
/* Fetch the input operands for the semantic handler. */
OPRND (h_lock_0) = CPU (h_lock);
- OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
+ OPRND (src1) = CPU (h_gr[f_r1]);
#undef OPRND
}
BREAK (read);
EXTRACT_FMT_SADD_CODE
/* Fetch the input operands for the semantic handler. */
- OPRND (h_accums_0) = m32rx_h_accums_get (current_cpu, 0);
OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, 1);
+ OPRND (h_accums_0) = m32rx_h_accums_get (current_cpu, 0);
#undef OPRND
}
BREAK (read);
new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (* FLD (f_r1), * FLD (f_r2));
temp1 = ADDOFSI (* FLD (f_r1), * FLD (f_r2), 0);
* FLD (f_r1) = temp0;
new_pc = SEM_NEXT_PC (sem_arg, 4);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (* FLD (f_r2), FLD (f_simm16));
temp1 = ADDOFSI (* FLD (f_r2), FLD (f_simm16), 0);
* FLD (f_r1) = temp0;
new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDCSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
temp1 = ADDCFSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
* FLD (f_r1) = temp0;
new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- SI temp1;SI temp0;
+ USI temp1;SI temp0;
temp0 = ADDSI (ANDSI (CPU (h_pc), -4), 4);
- temp1 = * FLD (f_r2);
+ temp1 = ANDSI (* FLD (f_r2), -4);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
#define FLD(f) abuf->fields.fmt_jmp.f
new_pc = SEM_NEXT_PC (sem_arg, 2);
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (* FLD (f_r2), -4)));
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
#undef FLD
do {
DI tmp_tmp1;
tmp_tmp1 = ANDDI (m32r_h_accum_get (current_cpu), MAKEDI (16777215, 0xffffffff));
-if (ANDIFSI (GEDI (tmp_tmp1, MAKEDI (16383, 0x80000000)), LEDI (tmp_tmp1, MAKEDI (8388607, 0xffffffff)))) {
+if (ANDIF (GEDI (tmp_tmp1, MAKEDI (16383, 0x80000000)), LEDI (tmp_tmp1, MAKEDI (8388607, 0xffffffff)))) {
tmp_tmp1 = MAKEDI (16383, 0x80000000);
} else {
-if (ANDIFSI (GEDI (tmp_tmp1, MAKEDI (8388608, 0)), LEDI (tmp_tmp1, MAKEDI (16760832, 0)))) {
+if (ANDIF (GEDI (tmp_tmp1, MAKEDI (8388608, 0)), LEDI (tmp_tmp1, MAKEDI (16760832, 0)))) {
tmp_tmp1 = MAKEDI (16760832, 0);
} else {
tmp_tmp1 = ANDDI (ADDDI (m32r_h_accum_get (current_cpu), MAKEDI (0, 1073741824)), MAKEDI (0xffffffff, 0x80000000));
new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBSI (* FLD (f_r1), * FLD (f_r2));
temp1 = SUBOFSI (* FLD (f_r1), * FLD (f_r2), 0);
* FLD (f_r1) = temp0;
new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBCSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
temp1 = SUBCFSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
* FLD (f_r1) = temp0;
TRACE_RESULT (current_cpu, "cr-6", 'x', m32r_h_cr_get (current_cpu, 6));
m32r_h_cr_set (current_cpu, 0, ANDSI (SLLSI (m32r_h_cr_get (current_cpu, 0), 8), 65408));
TRACE_RESULT (current_cpu, "cr-0", 'x', m32r_h_cr_get (current_cpu, 0));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, do_trap (current_cpu, FLD (f_uimm4))));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, a_m32r_trap (current_cpu, FLD (f_uimm4))));
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
} while (0);
CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (* FLD (f_r1), * FLD (f_r2));
temp1 = ADDOFSI (* FLD (f_r1), * FLD (f_r2), 0);
* FLD (f_r1) = temp0;
CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (* FLD (f_r2), FLD (f_simm16));
temp1 = ADDOFSI (* FLD (f_r2), FLD (f_simm16), 0);
* FLD (f_r1) = temp0;
CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDCSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
temp1 = ADDCFSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
* FLD (f_r1) = temp0;
int taken_p = 0;
do {
- SI temp1;SI temp0;
+ USI temp1;SI temp0;
temp0 = ADDSI (ANDSI (CPU (h_pc), -4), 4);
- temp1 = * FLD (f_r2);
+ temp1 = ANDSI (* FLD (f_r2), -4);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (* FLD (f_r2), -4)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
do {
DI tmp_tmp1;
tmp_tmp1 = ANDDI (m32r_h_accum_get (current_cpu), MAKEDI (16777215, 0xffffffff));
-if (ANDIFSI (GEDI (tmp_tmp1, MAKEDI (16383, 0x80000000)), LEDI (tmp_tmp1, MAKEDI (8388607, 0xffffffff)))) {
+if (ANDIF (GEDI (tmp_tmp1, MAKEDI (16383, 0x80000000)), LEDI (tmp_tmp1, MAKEDI (8388607, 0xffffffff)))) {
tmp_tmp1 = MAKEDI (16383, 0x80000000);
} else {
-if (ANDIFSI (GEDI (tmp_tmp1, MAKEDI (8388608, 0)), LEDI (tmp_tmp1, MAKEDI (16760832, 0)))) {
+if (ANDIF (GEDI (tmp_tmp1, MAKEDI (8388608, 0)), LEDI (tmp_tmp1, MAKEDI (16760832, 0)))) {
tmp_tmp1 = MAKEDI (16760832, 0);
} else {
tmp_tmp1 = ANDDI (ADDDI (m32r_h_accum_get (current_cpu), MAKEDI (0, 1073741824)), MAKEDI (0xffffffff, 0x80000000));
CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBSI (* FLD (f_r1), * FLD (f_r2));
temp1 = SUBOFSI (* FLD (f_r1), * FLD (f_r2), 0);
* FLD (f_r1) = temp0;
CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBCSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
temp1 = SUBCFSI (* FLD (f_r1), * FLD (f_r2), CPU (h_cond));
* FLD (f_r1) = temp0;
TRACE_RESULT (current_cpu, "cr-6", 'x', m32r_h_cr_get (current_cpu, 6));
m32r_h_cr_set (current_cpu, 0, ANDSI (SLLSI (m32r_h_cr_get (current_cpu, 0), 8), 65408));
TRACE_RESULT (current_cpu, "cr-0", 'x', m32r_h_cr_get (current_cpu, 0));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, do_trap (current_cpu, FLD (f_uimm4))));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, a_m32r_trap (current_cpu, FLD (f_uimm4))));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
} while (0);
return 0;
}
-#endif /* WITH_SCACHE */
+#endif /* WANT_CPU */
EXTRACT_FMT_ADDV_CODE
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (OPRND (dr), OPRND (sr));
temp1 = ADDOFSI (OPRND (dr), OPRND (sr), 0);
CPU (h_gr[f_r1]) = temp0;
EXTRACT_FMT_ADDV3_CODE
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDSI (OPRND (sr), OPRND (simm16));
temp1 = ADDOFSI (OPRND (sr), OPRND (simm16), 0);
CPU (h_gr[f_r1]) = temp0;
EXTRACT_FMT_ADDX_CODE
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = ADDCSI (OPRND (dr), OPRND (sr), OPRND (condbit));
temp1 = ADDCFSI (OPRND (dr), OPRND (sr), OPRND (condbit));
CPU (h_gr[f_r1]) = temp0;
EXTRACT_FMT_JL_CODE
do {
- SI temp1;SI temp0;
+ USI temp1;SI temp0;
temp0 = ADDSI (ANDSI (OPRND (pc), -4), 4);
temp1 = ANDSI (OPRND (sr), -4);
CPU (h_gr[14]) = temp0;
EXTRACT_FMT_LD_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LD_D_CODE
- CPU (h_gr[f_r1]) = OPRND (h_memory_add_WI_sr_slo16);
+ CPU (h_gr[f_r1]) = OPRND (h_memory_add__VM_sr_slo16);
TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDB_D_CODE
- CPU (h_gr[f_r1]) = EXTQISI (OPRND (h_memory_add_WI_sr_slo16));
+ CPU (h_gr[f_r1]) = EXTQISI (OPRND (h_memory_add__VM_sr_slo16));
TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDH_D_CODE
- CPU (h_gr[f_r1]) = EXTHISI (OPRND (h_memory_add_WI_sr_slo16));
+ CPU (h_gr[f_r1]) = EXTHISI (OPRND (h_memory_add__VM_sr_slo16));
TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDB_D_CODE
- CPU (h_gr[f_r1]) = ZEXTQISI (OPRND (h_memory_add_WI_sr_slo16));
+ CPU (h_gr[f_r1]) = ZEXTQISI (OPRND (h_memory_add__VM_sr_slo16));
TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDH_D_CODE
- CPU (h_gr[f_r1]) = ZEXTHISI (OPRND (h_memory_add_WI_sr_slo16));
+ CPU (h_gr[f_r1]) = ZEXTHISI (OPRND (h_memory_add__VM_sr_slo16));
TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADDV_CODE
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBSI (OPRND (dr), OPRND (sr));
temp1 = SUBOFSI (OPRND (dr), OPRND (sr), 0);
CPU (h_gr[f_r1]) = temp0;
EXTRACT_FMT_ADDX_CODE
do {
- BI temp1;SI temp0;
+ UBI temp1;SI temp0;
temp0 = SUBCSI (OPRND (dr), OPRND (sr), OPRND (condbit));
temp1 = SUBCFSI (OPRND (dr), OPRND (sr), OPRND (condbit));
CPU (h_gr[f_r1]) = temp0;
TRACE_RESULT (current_cpu, "cr-6", 'x', m32rx_h_cr_get (current_cpu, 6));
m32rx_h_cr_set (current_cpu, 0, ANDSI (SLLSI (OPRND (h_cr_0), 8), 65408));
TRACE_RESULT (current_cpu, "cr-0", 'x', m32rx_h_cr_get (current_cpu, 0));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, do_trap (current_cpu, OPRND (uimm4))));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, a_m32r_trap (current_cpu, OPRND (uimm4))));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
} while (0);
return 0;
}
-#endif /* WITH_SCACHE */
+#endif /* WANT_CPU */