* m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
(NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
* cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
* sem.c,sem-switch.c: Regenerate.
* m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
* mloopx.in: Rewrite.
* cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
+Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-main.h: #include symcat.h.
+ * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg.
+ (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros.
+ * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate.
+ * sem.c,sem-switch.c: Regenerate.
+start-sanitize-m32rx
+ * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec.
+ * mloopx.in: Rewrite.
+ * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
+end-sanitize-m32rx
+
Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com>
* m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
* m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6
in the backup PC register.
end-sanitize-m32rx
+
Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com>
* m32r.c (do_lock,do_unlock): Delete.
SI sr;
} fmt_25_jmp;
struct { /* e.g. ld $dr,@$sr */
- UQI h_memory_sr;
+ SI h_memory_sr;
SI sr;
} fmt_26_ld;
struct { /* e.g. ld $dr,@($slo16,$sr) */
- UQI h_memory_add_WI_sr_slo16;
+ SI h_memory_add_WI_sr_slo16;
HI slo16;
SI sr;
} fmt_27_ld_d;
struct { /* e.g. ldb $dr,@$sr */
- UQI h_memory_sr;
+ QI h_memory_sr;
SI sr;
} fmt_28_ldb;
struct { /* e.g. ldb $dr,@($slo16,$sr) */
- UQI h_memory_add_WI_sr_slo16;
+ QI h_memory_add_WI_sr_slo16;
HI slo16;
SI sr;
} fmt_29_ldb_d;
struct { /* e.g. ldh $dr,@$sr */
- UQI h_memory_sr;
+ HI h_memory_sr;
SI sr;
} fmt_30_ldh;
struct { /* e.g. ldh $dr,@($slo16,$sr) */
- UQI h_memory_add_WI_sr_slo16;
+ HI h_memory_add_WI_sr_slo16;
HI slo16;
SI sr;
} fmt_31_ldh_d;
struct { /* e.g. ld $dr,@$sr+ */
- UQI h_memory_sr;
+ SI h_memory_sr;
SI sr;
} fmt_32_ld_plus;
struct { /* e.g. ld24 $dr,#$uimm24 */
HI slo16;
} fmt_35_ldi16;
struct { /* e.g. lock $dr,@$sr */
- UQI h_memory_sr;
+ SI h_memory_sr;
SI sr;
} fmt_36_lock;
struct { /* e.g. machi $src1,$src2,$acc */
} fmt_56_st_plus;
struct { /* e.g. trap #$uimm4 */
USI pc;
- USI h_cr_0;
+ SI h_cr_0;
USI uimm4;
} fmt_57_trap;
struct { /* e.g. unlock $src1,@$src2 */
#define WANT_CPU_M32RX
#include "sim-main.h"
-#include "sim-xcat.h"
#include "cpu-sim.h"
#include "cpu-opc.h"
around while the cache version is being developed.
It may still be useful to allow two versions to exist though. */
#if WITH_SCACHE
-#define EX(fn) XCONCAT3 (m32rx,_ex_,fn)
+#define EX(fn) CONCAT3 (m32rx,_ex_,fn)
#else
#define EX(fn) 0
#endif
#ifdef __GNUC__
#define READ(n) 0
#else
-#define READ(n) XCONCAT3 (READ,_,n)
+#define READ(n) CONCAT3 (READ,_,n)
#endif
#endif
#if WITH_SEM_SWITCH_FULL
#define FULL(fn) 0
#else
-#define FULL(fn) XCONCAT3 (m32rx,_sem_,fn)
+#define FULL(fn) CONCAT3 (m32rx,_sem_,fn)
#endif
#if WITH_FAST
#if WITH_SEM_SWITCH_FAST
#define FAST(fn) 0
#else
-#define FAST(fn) XCONCAT3 (m32rx,_semf_,fn) /* f for fast */
+#define FAST(fn) CONCAT3 (m32rx,_semf_,fn) /* f for fast */
#endif
#else
#define FAST(fn) 0
#ifndef M32RX_DECODE_H
#define M32RX_DECODE_H
-#define EX(fn) XCONCAT3 (m32rx,_ex_,fn)
-#define SEM(fn) XCONCAT3 (m32rx,_sem_,fn)
-#define SEMF(fn) XCONCAT3 (m32rx,_semf_,fn)
+#define EX(fn) CONCAT3 (m32rx,_ex_,fn)
+#define SEM(fn) CONCAT3 (m32rx,_sem_,fn)
+#define SEMF(fn) CONCAT3 (m32rx,_semf_,fn)
extern EXTRACT_FN EX (illegal);
extern SEMANTIC_FN SEM (illegal);
xinit)
cat <<EOF
- USI insn,insn1,insn2;
- DECODE *decode,*d1,*d2;
- int icount,icount2;
+ DECODE *d1,*d2;
ARGBUF abufs[MAX_PARALLEL_INSNS];
- SEM_ARG sem_arg;
-
+ PAREXEC pbufs[MAX_PARALLEL_INSNS];
EOF
;;
{
PCADDR pc = CPU (h_pc);
+ /* ??? This code isn't very fast. Let's get it working first. */
+
if ((pc & 3) != 0)
{
- insn1 = GETIMEMUHI (current_cpu, pc);
- insn1 &= 0x7fff;
- d1 = m32rx_decode (current_cpu, pc, insn1);
+ USI insn = GETIMEMUHI (current_cpu, pc);
+ insn &= 0x7fff;
+ d1 = m32rx_decode (current_cpu, pc, insn);
+ abufs[0].insn = insn;
icount = 1;
}
else
{
- insn1 = GETIMEMUSI (current_cpu, pc);
- if ((SI) insn1 < 0)
+ USI insn = GETIMEMUSI (current_cpu, pc);
+ if ((SI) insn < 0)
{
- d1 = m32rx_decode (current_cpu, pc, insn1 >> 16);
+ d1 = m32rx_decode (current_cpu, pc, insn >> 16);
+ abufs[0].insn = insn;
icount = 1;
}
else
{
if (insn & 0x8000)
{
- insn2 = insn1 & 0x7fff;
- insn1 = insn1 >> 16;
- d1 = m32rx_decode (current_cpu, pc, insn1);
- d2 = m32rx_decode (current_cpu, pc, insn2);
+ d1 = m32rx_decode (current_cpu, pc, insn >> 16);
+ abufs[0].insn = insn >> 16;
+ d2 = m32rx_decode (current_cpu, pc, insn & 0x7fff);
+ abufs[1].insn = insn & 0x7fff;
icount = 2;
}
else
{
- insn1 = insn1 >> 16;
- d1 = m32rx_decode (current_cpu, pc, insn1);
+ d1 = m32rx_decode (current_cpu, pc, insn >> 16);
+ abufs[0].insn = insn >> 16;
icount = 1;
}
}
}
- icount2 = icount;
- insn = insn1;
- decode = d1;
- do
- {
+ {
+ int icount2 = icount;
+ USI insn = abufs[0].insn;
+ DECODE *decode = d1;
+ /* decode, par_exec, and insn are refered to by readx.c. */
+ PAREXEC *par_exec = &pbufs[0];
+ do
+ {
#define DEFINE_SWITCH
#include "readx.c"
- insn = insn2;
- decode = d2;
- }
- while (--icount2 > 0);
+ decode = d2;
+ insn = abufs[1].insn;
+ ++par_exec;
+ }
+ while (--icount2 != 0);
+ }
}
EOF
cat <<EOF
{
- decode = d1;
- do
+ SEM_ARG sem_arg = &abufs[0];
+ PAREXEC *par_exec = &pbufs[0];
+ PCADDR new_pc;
+
+ /* If doing parallel execution, verify insns are in the right pipeline. */
+ if (icount == 2)
+ {
+ ; /*wip*/
+ }
+
+ TRACE_INSN_INIT (current_cpu);
+ TRACE_INSN (current_cpu, d1->opcode, sem_arg, CPU (h_pc));
+ new_pc = (*d1->semantic) (current_cpu, sem_arg, par_exec);
+ TRACE_INSN_FINI (current_cpu);
+ PROFILE_COUNT_INSN (current_cpu, CPU (h_pc), CGEN_INSN_INDEX (d1->opcode));
+
+ /* The result of the semantic fn is one of:
+ - next address, branch only
+ - NEW_PC_SKIP, sc/snc insn
+ - NEW_PC_2, 2 byte non-branch non-sc/snc insn
+ - NEW_PC_4, 4 byte non-branch insn
+ */
+
+ if (new_pc == NEW_PC_4)
+ CPU (h_pc) += 4;
+ else if (NEW_PC_BRANCH_P (new_pc))
+ CPU (h_pc) = new_pc;
+ else
{
- PCADDR new_pc;
- TRACE_INSN_INIT (current_cpu);
- TRACE_INSN (current_cpu, sc->argbuf.opcode, (const struct argbuf *) &sc->argbuf, sc->argbuf.addr);
- new_pc = (*decode->semantic) (current_cpu, &sc->argbuf);
- TRACE_INSN_FINI (current_cpu);
- PROFILE_COUNT_INSN (current_cpu, pc, CGEN_INSN_INDEX (sc->argbuf.opcode));
- CPU (h_pc) = new_pc;
- decode = d2;
+ PCADDR pc = CPU (h_pc);
+
+ CPU (h_pc) = pc + 2;
+ if (icount == 2)
+ {
+ /* Note that we only get here if doing parallel execution. */
+ if (new_pc == NEW_PC_SKIP)
+ {
+ /* ??? Need generic notion of bypassing an insn for the name of
+ this macro. Annulled? On the otherhand such tracing can go
+ in the sc/snc semantic fn. */
+ ; /*TRACE_INSN_SKIPPED (current_cpu);*/
+ }
+ else
+ {
+ ++sem_arg;
+ ++par_exec;
+ TRACE_INSN_INIT (current_cpu);
+ TRACE_INSN (current_cpu, d2->opcode, sem_arg, CPU (h_pc));
+ /* new_pc isn't used. It's assigned a value for debugging. */
+ new_pc = (*d2->semantic) (current_cpu, sem_arg, par_exec);
+ TRACE_INSN_FINI (current_cpu);
+ PROFILE_COUNT_INSN (current_cpu, pc, CGEN_INSN_INDEX (d2->opcode));
+ }
+ CPU (h_pc) = pc + 4;
+ }
}
- while (--icount > 0);
}
EOF
CASE (sem, INSN_ADD) : /* add $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ADDSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_ADD3) : /* add3 $dr,$sr,#$slo16 */
{
#define FLD(f) abuf->fields.fmt_1_add3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ADDSI (* FLD (f_r2), FLD (f_simm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_AND) : /* and $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ANDSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_AND3) : /* and3 $dr,$sr,#$uimm16 */
{
#define FLD(f) abuf->fields.fmt_2_and3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ANDSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_OR) : /* or $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ORSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_OR3) : /* or3 $dr,$sr,#$ulo16 */
{
#define FLD(f) abuf->fields.fmt_3_or3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ORSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_XOR) : /* xor $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = XORSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_XOR3) : /* xor3 $dr,$sr,#$uimm16 */
{
#define FLD(f) abuf->fields.fmt_2_and3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = XORSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_ADDI) : /* addi $dr,#$simm8 */
{
#define FLD(f) abuf->fields.fmt_4_addi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ADDSI (* FLD (f_r1), FLD (f_simm8));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_ADDV) : /* addv $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_5_addv.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
CASE (sem, INSN_ADDV3) : /* addv3 $dr,$sr,#$simm16 */
{
#define FLD(f) abuf->fields.fmt_6_addv3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
do {
BI temp1;SI temp0;
CASE (sem, INSN_ADDX) : /* addx $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_7_addx.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
CASE (sem, INSN_BC8) : /* bc $disp8 */
{
#define FLD(f) abuf->fields.fmt_8_bc8.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
if (CPU (h_cond)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BC24) : /* bc $disp24 */
{
#define FLD(f) abuf->fields.fmt_9_bc24.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (CPU (h_cond)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BEQ) : /* beq $src1,$src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_10_beq.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (EQSI (* FLD (f_r1), * FLD (f_r2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BEQZ) : /* beqz $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (EQSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BGEZ) : /* bgez $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (GESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BGTZ) : /* bgtz $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (GTSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BLEZ) : /* blez $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (LESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BLTZ) : /* bltz $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (LTSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BNEZ) : /* bnez $src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BL8) : /* bl $disp8 */
{
#define FLD(f) abuf->fields.fmt_12_bl8.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
CPU (h_gr[14]) = ADDSI (ANDSI (CPU (h_pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
CASE (sem, INSN_BL24) : /* bl $disp24 */
{
#define FLD(f) abuf->fields.fmt_13_bl24.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
do {
CPU (h_gr[14]) = ADDSI (CPU (h_pc), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
CASE (sem, INSN_BNC8) : /* bnc $disp8 */
{
#define FLD(f) abuf->fields.fmt_8_bc8.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
if (NOTBI (CPU (h_cond))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BNC24) : /* bnc $disp24 */
{
#define FLD(f) abuf->fields.fmt_9_bc24.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NOTBI (CPU (h_cond))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BNE) : /* bne $src1,$src2,$disp16 */
{
#define FLD(f) abuf->fields.fmt_10_beq.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r1), * FLD (f_r2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
CASE (sem, INSN_BRA8) : /* bra $disp8 */
{
#define FLD(f) abuf->fields.fmt_14_bra8.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#undef FLD
CASE (sem, INSN_BRA24) : /* bra $disp24 */
{
#define FLD(f) abuf->fields.fmt_15_bra24.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#undef FLD
CASE (sem, INSN_CMP) : /* cmp $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_16_cmp.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_cond) = LTSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
CASE (sem, INSN_CMPI) : /* cmpi $src2,#$simm16 */
{
#define FLD(f) abuf->fields.fmt_17_cmpi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
CPU (h_cond) = LTSI (* FLD (f_r2), FLD (f_simm16));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
CASE (sem, INSN_CMPU) : /* cmpu $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_16_cmp.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_cond) = LTUSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
CASE (sem, INSN_CMPUI) : /* cmpui $src2,#$uimm16 */
{
#define FLD(f) abuf->fields.fmt_18_cmpui.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
CPU (h_cond) = LTUSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
CASE (sem, INSN_DIV) : /* div $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_19_div.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = DIVSI (* FLD (f_r1), * FLD (f_r2));
CASE (sem, INSN_DIVU) : /* divu $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_19_div.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = UDIVSI (* FLD (f_r1), * FLD (f_r2));
CASE (sem, INSN_REM) : /* rem $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_19_div.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = MODSI (* FLD (f_r1), * FLD (f_r2));
CASE (sem, INSN_REMU) : /* remu $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_19_div.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = UMODSI (* FLD (f_r1), * FLD (f_r2));
CASE (sem, INSN_JL) : /* jl $sr */
{
#define FLD(f) abuf->fields.fmt_20_jl.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
SI temp1;SI temp0;
temp1 = * FLD (f_r2);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
CASE (sem, INSN_JMP) : /* jmp $sr */
{
#define FLD(f) abuf->fields.fmt_21_jmp.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#undef FLD
CASE (sem, INSN_LD) : /* ld $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_22_ld.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = GETMEMSI (current_cpu, * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LD_D) : /* ld $dr,@($slo16,$sr) */
{
#define FLD(f) abuf->fields.fmt_23_ld_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = GETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDB) : /* ldb $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_24_ldb.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = EXTQISI (GETMEMQI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDB_D) : /* ldb $dr,@($slo16,$sr) */
{
#define FLD(f) abuf->fields.fmt_25_ldb_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = EXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDH) : /* ldh $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_26_ldh.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = EXTHISI (GETMEMHI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDH_D) : /* ldh $dr,@($slo16,$sr) */
{
#define FLD(f) abuf->fields.fmt_27_ldh_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = EXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDUB) : /* ldub $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_24_ldb.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ZEXTQISI (GETMEMQI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDUB_D) : /* ldub $dr,@($slo16,$sr) */
{
#define FLD(f) abuf->fields.fmt_25_ldb_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ZEXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDUH) : /* lduh $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_26_ldh.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ZEXTHISI (GETMEMHI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDUH_D) : /* lduh $dr,@($slo16,$sr) */
{
#define FLD(f) abuf->fields.fmt_27_ldh_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ZEXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LD_PLUS) : /* ld $dr,@$sr+ */
{
#define FLD(f) abuf->fields.fmt_28_ld_plus.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
SI temp1;SI temp0;
CASE (sem, INSN_LD24) : /* ld24 $dr,#$uimm24 */
{
#define FLD(f) abuf->fields.fmt_29_ld24.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = FLD (f_uimm24);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDI8) : /* ldi $dr,#$simm8 */
{
#define FLD(f) abuf->fields.fmt_30_ldi8.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = FLD (f_simm8);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LDI16) : /* ldi $dr,$slo16 */
{
#define FLD(f) abuf->fields.fmt_31_ldi16.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = FLD (f_simm16);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_LOCK) : /* lock $dr,@$sr */
{
#define FLD(f) abuf->fields.fmt_32_lock.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
CPU (h_lock) = 1;
CASE (sem, INSN_MACHI) : /* machi $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_33_machi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (ANDSI (* FLD (f_r1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MACLO) : /* maclo $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_33_machi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (SLLSI (* FLD (f_r1), 16)), EXTHIDI (TRUNCSIHI (* FLD (f_r2))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MACWHI) : /* macwhi $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_33_machi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MACWLO) : /* macwlo $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_33_machi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (* FLD (f_r2))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MUL) : /* mul $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = MULSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MULHI) : /* mulhi $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (ANDSI (* FLD (f_r1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16)))), 16), 16);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MULLO) : /* mullo $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (SLLSI (* FLD (f_r1), 16)), EXTHIDI (TRUNCSIHI (* FLD (f_r2)))), 16), 16);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MULWHI) : /* mulwhi $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16)))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MULWLO) : /* mulwlo $src1,$src2 */
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (* FLD (f_r2)))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MV) : /* mv $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_35_mv.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = * FLD (f_r2);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MVFACHI) : /* mvfachi $dr */
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (SRADI (CPU (h_accum), 32));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MVFACLO) : /* mvfaclo $dr */
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (CPU (h_accum));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MVFACMI) : /* mvfacmi $dr */
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (SRADI (CPU (h_accum), 16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MVFC) : /* mvfc $dr,$scr */
{
#define FLD(f) abuf->fields.fmt_37_mvfc.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = m32r_h_cr_get (current_cpu, FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_MVTACHI) : /* mvtachi $src1 */
{
#define FLD(f) abuf->fields.fmt_38_mvtachi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = ORDI (ANDDI (CPU (h_accum), MAKEDI (0, 0xffffffff)), SLLDI (EXTSIDI (* FLD (f_r1)), 32));
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MVTACLO) : /* mvtaclo $src1 */
{
#define FLD(f) abuf->fields.fmt_38_mvtachi.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = ORDI (ANDDI (CPU (h_accum), MAKEDI (0xffffffff, 0)), ZEXTSIDI (* FLD (f_r1)));
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
CASE (sem, INSN_MVTC) : /* mvtc $sr,$dcr */
{
#define FLD(f) abuf->fields.fmt_39_mvtc.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
m32r_h_cr_set (current_cpu, FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dcr", 'x', m32r_h_cr_get (current_cpu, FLD (f_r1)));
CASE (sem, INSN_NEG) : /* neg $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_35_mv.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = NEGSI (* FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_NOP) : /* nop */
{
#define FLD(f) abuf->fields.fmt_40_nop.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
PROFILE_COUNT_FILLNOPS (current_cpu, abuf->addr);
CASE (sem, INSN_NOT) : /* not $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_35_mv.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = INVSI (* FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_RAC) : /* rac */
{
#define FLD(f) abuf->fields.fmt_41_rac.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
DI tmp_tmp1;
CASE (sem, INSN_RACH) : /* rach */
{
#define FLD(f) abuf->fields.fmt_41_rac.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
DI tmp_tmp1;
CASE (sem, INSN_RTE) : /* rte */
{
#define FLD(f) abuf->fields.fmt_42_rte.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
CPU (h_sm) = CPU (h_bsm);
TRACE_RESULT (current_cpu, "h-ie-0", 'x', CPU (h_ie));
CPU (h_cond) = CPU (h_bcond);
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, CPU (h_bpc)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, CPU (h_bpc)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
CASE (sem, INSN_SETH) : /* seth $dr,#$hi16 */
{
#define FLD(f) abuf->fields.fmt_43_seth.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SLLSI (FLD (f_hi16), 16);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SLL) : /* sll $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SLLSI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SLL3) : /* sll3 $dr,$sr,#$simm16 */
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SLLSI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SLLI) : /* slli $dr,#$uimm5 */
{
#define FLD(f) abuf->fields.fmt_45_slli.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SLLSI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRA) : /* sra $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRASI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRA3) : /* sra3 $dr,$sr,#$simm16 */
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SRASI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRAI) : /* srai $dr,#$uimm5 */
{
#define FLD(f) abuf->fields.fmt_45_slli.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRASI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRL) : /* srl $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRLSI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRL3) : /* srl3 $dr,$sr,#$simm16 */
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SRLSI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SRLI) : /* srli $dr,#$uimm5 */
{
#define FLD(f) abuf->fields.fmt_45_slli.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRLSI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_ST) : /* st $src1,@$src2 */
{
#define FLD(f) abuf->fields.fmt_46_st.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
CASE (sem, INSN_ST_D) : /* st $src1,@($slo16,$src2) */
{
#define FLD(f) abuf->fields.fmt_47_st_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
CASE (sem, INSN_STB) : /* stb $src1,@$src2 */
{
#define FLD(f) abuf->fields.fmt_48_stb.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMQI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMQI (current_cpu, * FLD (f_r2)));
CASE (sem, INSN_STB_D) : /* stb $src1,@($slo16,$src2) */
{
#define FLD(f) abuf->fields.fmt_49_stb_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
CASE (sem, INSN_STH) : /* sth $src1,@$src2 */
{
#define FLD(f) abuf->fields.fmt_50_sth.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMHI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMHI (current_cpu, * FLD (f_r2)));
CASE (sem, INSN_STH_D) : /* sth $src1,@($slo16,$src2) */
{
#define FLD(f) abuf->fields.fmt_51_sth_d.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
CASE (sem, INSN_ST_PLUS) : /* st $src1,@+$src2 */
{
#define FLD(f) abuf->fields.fmt_52_st_plus.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
-* FLD (f_r2) = ADDSI (* FLD (f_r2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = ADDSI (* FLD (f_r2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, * FLD (f_r1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+* FLD (f_r2) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', * FLD (f_r2));
-SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
} while (0);
#undef FLD
CASE (sem, INSN_ST_MINUS) : /* st $src1,@-$src2 */
{
#define FLD(f) abuf->fields.fmt_52_st_plus.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
-* FLD (f_r2) = SUBSI (* FLD (f_r2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = SUBSI (* FLD (f_r2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, * FLD (f_r1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+* FLD (f_r2) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', * FLD (f_r2));
-SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
} while (0);
#undef FLD
CASE (sem, INSN_SUB) : /* sub $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_0_add.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SUBSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
CASE (sem, INSN_SUBV) : /* subv $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_5_addv.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
CASE (sem, INSN_SUBX) : /* subx $dr,$sr */
{
#define FLD(f) abuf->fields.fmt_7_addx.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
CASE (sem, INSN_TRAP) : /* trap #$uimm4 */
{
#define FLD(f) abuf->fields.fmt_53_trap.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
m32r_h_cr_set (current_cpu, 6, ADDSI (CPU (h_pc), 4));
CASE (sem, INSN_UNLOCK) : /* unlock $src1,@$src2 */
{
#define FLD(f) abuf->fields.fmt_54_unlock.f
- new_pc = SEM_NEXT_PC (sem_arg);
+ new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
if (CPU (h_lock)) {
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ADDSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_1_add3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ADDSI (* FLD (f_r2), FLD (f_simm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ANDSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_2_and3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ANDSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ORSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_3_or3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ORSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = XORSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_2_and3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = XORSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_4_addi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ADDSI (* FLD (f_r1), FLD (f_simm8));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_5_addv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_6_addv3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
do {
BI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_7_addx.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_8_bc8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
if (CPU (h_cond)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_9_bc24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (CPU (h_cond)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_10_beq.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (EQSI (* FLD (f_r1), * FLD (f_r2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (EQSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (GESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (GTSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (LESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (LTSI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (NESI (* FLD (f_r2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_12_bl8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
do {
CPU (h_gr[14]) = ADDSI (ANDSI (CPU (h_pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
{
#define FLD(f) abuf->fields.fmt_13_bl24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
do {
CPU (h_gr[14]) = ADDSI (CPU (h_pc), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
{
#define FLD(f) abuf->fields.fmt_8_bc8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
if (NOTBI (CPU (h_cond))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_9_bc24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (NOTBI (CPU (h_cond))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_10_beq.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
if (NESI (* FLD (f_r1), * FLD (f_r2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp16)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
{
#define FLD(f) abuf->fields.fmt_14_bra8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp8)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
{
#define FLD(f) abuf->fields.fmt_15_bra24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, FLD (f_disp24)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
{
#define FLD(f) abuf->fields.fmt_16_cmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_cond) = LTSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
{
#define FLD(f) abuf->fields.fmt_17_cmpi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
CPU (h_cond) = LTSI (* FLD (f_r2), FLD (f_simm16));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
{
#define FLD(f) abuf->fields.fmt_16_cmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_cond) = LTUSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
{
#define FLD(f) abuf->fields.fmt_18_cmpui.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
CPU (h_cond) = LTUSI (* FLD (f_r2), FLD (f_uimm16));
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
{
#define FLD(f) abuf->fields.fmt_19_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = DIVSI (* FLD (f_r1), * FLD (f_r2));
{
#define FLD(f) abuf->fields.fmt_19_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = UDIVSI (* FLD (f_r1), * FLD (f_r2));
{
#define FLD(f) abuf->fields.fmt_19_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = MODSI (* FLD (f_r1), * FLD (f_r2));
{
#define FLD(f) abuf->fields.fmt_19_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
if (NESI (* FLD (f_r2), 0)) {
* FLD (f_r1) = UMODSI (* FLD (f_r1), * FLD (f_r2));
{
#define FLD(f) abuf->fields.fmt_20_jl.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
do {
temp1 = * FLD (f_r2);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
{
#define FLD(f) abuf->fields.fmt_21_jmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, * FLD (f_r2)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
{
#define FLD(f) abuf->fields.fmt_22_ld.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = GETMEMSI (current_cpu, * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_23_ld_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = GETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_24_ldb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = EXTQISI (GETMEMQI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_25_ldb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = EXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_26_ldh.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = EXTHISI (GETMEMHI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_27_ldh_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = EXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_24_ldb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ZEXTQISI (GETMEMQI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_25_ldb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ZEXTQISI (GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_26_ldh.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = ZEXTHISI (GETMEMHI (current_cpu, * FLD (f_r2)));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_27_ldh_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = ZEXTHISI (GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_28_ld_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
SI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_29_ld24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = FLD (f_uimm24);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_30_ldi8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = FLD (f_simm8);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_31_ldi16.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = FLD (f_simm16);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_32_lock.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
CPU (h_lock) = 1;
{
#define FLD(f) abuf->fields.fmt_33_machi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (ANDSI (* FLD (f_r1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_33_machi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (SLLSI (* FLD (f_r1), 16)), EXTHIDI (TRUNCSIHI (* FLD (f_r2))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_33_machi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_33_machi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (ADDDI (CPU (h_accum), MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (* FLD (f_r2))))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = MULSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (ANDSI (* FLD (f_r1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16)))), 16), 16);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (SLLSI (* FLD (f_r1), 16)), EXTHIDI (TRUNCSIHI (* FLD (f_r2)))), 16), 16);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (SRASI (* FLD (f_r2), 16)))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_34_mulhi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = SRADI (SLLDI (MULDI (EXTSIDI (* FLD (f_r1)), EXTHIDI (TRUNCSIHI (* FLD (f_r2)))), 8), 8);
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_35_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = * FLD (f_r2);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (SRADI (CPU (h_accum), 32));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (CPU (h_accum));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_36_mvfachi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = TRUNCDISI (SRADI (CPU (h_accum), 16));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_37_mvfc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = m32r_h_cr_get (current_cpu, FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_38_mvtachi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = ORDI (ANDDI (CPU (h_accum), MAKEDI (0, 0xffffffff)), SLLDI (EXTSIDI (* FLD (f_r1)), 32));
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_38_mvtachi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
CPU (h_accum) = ORDI (ANDDI (CPU (h_accum), MAKEDI (0xffffffff, 0)), ZEXTSIDI (* FLD (f_r1)));
TRACE_RESULT (current_cpu, "accum", 'D', CPU (h_accum));
{
#define FLD(f) abuf->fields.fmt_39_mvtc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
m32r_h_cr_set (current_cpu, FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dcr", 'x', m32r_h_cr_get (current_cpu, FLD (f_r1)));
{
#define FLD(f) abuf->fields.fmt_35_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = NEGSI (* FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_40_nop.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
PROFILE_COUNT_FILLNOPS (current_cpu, abuf->addr);
{
#define FLD(f) abuf->fields.fmt_35_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = INVSI (* FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_41_rac.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
DI tmp_tmp1;
{
#define FLD(f) abuf->fields.fmt_41_rac.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
DI tmp_tmp1;
{
#define FLD(f) abuf->fields.fmt_42_rte.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
do {
TRACE_RESULT (current_cpu, "h-ie-0", 'x', CPU (h_ie));
CPU (h_cond) = CPU (h_bcond);
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, CPU (h_bpc)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, CPU (h_bpc)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
{
#define FLD(f) abuf->fields.fmt_43_seth.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SLLSI (FLD (f_hi16), 16);
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SLLSI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SLLSI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_45_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SLLSI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRASI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SRASI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_45_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRASI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRLSI (* FLD (f_r1), ANDSI (* FLD (f_r2), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_44_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
* FLD (f_r1) = SRLSI (* FLD (f_r2), ANDSI (FLD (f_simm16), 31));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_45_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SRLSI (* FLD (f_r1), FLD (f_uimm5));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_46_st.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
{
#define FLD(f) abuf->fields.fmt_47_st_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMSI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
{
#define FLD(f) abuf->fields.fmt_48_stb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMQI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMQI (current_cpu, * FLD (f_r2)));
{
#define FLD(f) abuf->fields.fmt_49_stb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMQI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
{
#define FLD(f) abuf->fields.fmt_50_sth.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
SETMEMHI (current_cpu, * FLD (f_r2), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMHI (current_cpu, * FLD (f_r2)));
{
#define FLD(f) abuf->fields.fmt_51_sth_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
SETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16)), * FLD (f_r1));
TRACE_RESULT (current_cpu, "h-memory-add-WI-src2-slo16", 'x', GETMEMHI (current_cpu, ADDSI (* FLD (f_r2), FLD (f_simm16))));
{
#define FLD(f) abuf->fields.fmt_52_st_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
-* FLD (f_r2) = ADDSI (* FLD (f_r2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = ADDSI (* FLD (f_r2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, * FLD (f_r1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+* FLD (f_r2) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', * FLD (f_r2));
-SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
} while (0);
#if WITH_PROFILE_MODEL_P
{
#define FLD(f) abuf->fields.fmt_52_st_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
-* FLD (f_r2) = SUBSI (* FLD (f_r2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = SUBSI (* FLD (f_r2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, * FLD (f_r1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+* FLD (f_r2) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', * FLD (f_r2));
-SETMEMSI (current_cpu, * FLD (f_r2), * FLD (f_r1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, * FLD (f_r2)));
} while (0);
#if WITH_PROFILE_MODEL_P
{
#define FLD(f) abuf->fields.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
* FLD (f_r1) = SUBSI (* FLD (f_r1), * FLD (f_r2));
TRACE_RESULT (current_cpu, "dr", 'x', * FLD (f_r1));
{
#define FLD(f) abuf->fields.fmt_5_addv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_7_addx.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
BI temp1;SI temp0;
{
#define FLD(f) abuf->fields.fmt_53_trap.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
do {
{
#define FLD(f) abuf->fields.fmt_54_unlock.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = SEM_NEXT_PC (sem_arg);
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
do {
if (CPU (h_lock)) {
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_1_add3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_1_ADD3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_1_ADD3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_2_and3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_2_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_2_AND3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_3_or3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_3_OR3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_3_OR3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_2_and3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_2_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_2_AND3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_4_addi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_4_ADDI_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_4_ADDI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_5_addv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_5_ADDV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_5_ADDV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_6_addv3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_6_ADDV3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_6_ADDV3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_7_addx.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_7_ADDX_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_7_ADDX_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_8_bc8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_8_BC8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_8_BC8_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_9_bc24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_9_BC24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_9_BC24_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_10_beq.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_10_BEQ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_10_BEQ_CODE
if (EQSI (OPRND (src1), OPRND (src2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (EQSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (GESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (GTSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (LESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (LTSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_11_beqz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_11_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_11_BEQZ_CODE
if (NESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_12_bl8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_12_BL8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_12_BL8_CODE
do {
CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_13_bl24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_13_BL24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_13_BL24_CODE
do {
CPU (h_gr[14]) = ADDSI (OPRND (pc), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_14_bcl8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_14_BCL8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_14_BCL8_CODE
do {
CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_15_bcl24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_15_BCL24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_15_BCL24_CODE
do {
CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_8_bc8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_8_BC8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_8_BC8_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_9_bc24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_9_BC24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_9_BC24_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_10_beq.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_10_BEQ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_10_BEQ_CODE
if (NESI (OPRND (src1), OPRND (src2))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_16_bra8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_16_BRA8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_16_BRA8_CODE
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_17_bra24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_17_BRA24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_17_BRA24_CODE
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_14_bcl8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_14_BCL8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_14_BCL8_CODE
do {
CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_15_bcl24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
int taken_p = 0;
EXTRACT_FMT_15_BCL24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_15_BCL24_CODE
do {
CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_18_cmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_18_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_18_CMP_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_19_cmpi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_19_CMPI_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_19_CMPI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_18_cmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_18_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_18_CMP_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_20_cmpui.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_20_CMPUI_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_20_CMPUI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_18_cmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_18_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_18_CMP_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_21_cmpz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_21_CMPZ_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_21_CMPZ_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_22_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_22_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_22_DIV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_22_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_22_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_22_DIV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_22_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_22_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_22_DIV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_22_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_22_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_22_DIV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_22_div.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_22_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_22_DIV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_23_jc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_23_JC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_23_JC_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_23_jc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_23_JC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_23_JC_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
}
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_24_jl.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_24_JL_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_24_JL_CODE
temp1 = OPRND (sr);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "h-gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_25_jmp.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_25_JMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_25_JMP_CODE
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, OPRND (sr)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, OPRND (sr)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_26_ld.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_26_LD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_26_LD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_27_ld_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_27_LD_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_27_LD_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_28_ldb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_28_LDB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_28_LDB_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_29_ldb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_29_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_29_LDB_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_30_ldh.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_30_LDH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_30_LDH_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_31_ldh_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_31_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_31_LDH_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_28_ldb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_28_LDB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_28_LDB_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_29_ldb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_29_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_29_LDB_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_30_ldh.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_30_LDH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_30_LDH_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_31_ldh_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_31_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_31_LDH_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_32_ld_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_32_LD_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_32_LD_PLUS_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_33_ld24.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_33_LD24_VARS /* f-op1 f-r1 f-uimm24 */
EXTRACT_FMT_33_LD24_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_34_ldi8.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_34_LDI8_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_34_LDI8_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_35_ldi16.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_35_LDI16_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_35_LDI16_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_36_lock.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_36_LOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_36_LOCK_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_37_machi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_37_MACHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_37_MACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_37_machi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_37_MACHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_37_MACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_38_mulhi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_38_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_38_MULHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_38_mulhi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_38_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_38_MULHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_39_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_39_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_39_MV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_40_mvfachi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_40_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_40_MVFACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_40_mvfachi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_40_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_40_MVFACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_40_mvfachi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_40_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_40_MVFACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_41_mvfc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_41_MVFC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_41_MVFC_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_42_mvtachi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_42_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_42_MVTACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_42_mvtachi_a.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_42_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_42_MVTACHI_A_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_43_mvtc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_43_MVTC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_43_MVTC_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_39_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_39_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_39_MV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_44_nop.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_44_NOP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_44_NOP_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_39_mv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_39_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_39_MV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_45_rac_dsi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_45_RAC_DSI_VARS /* f-op1 f-accd f-bits67 f-op2 f-accs f-bit14 f-imm1 */
EXTRACT_FMT_45_RAC_DSI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_45_rac_dsi.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_45_RAC_DSI_VARS /* f-op1 f-accd f-bits67 f-op2 f-accs f-bit14 f-imm1 */
EXTRACT_FMT_45_RAC_DSI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_46_rte.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_46_RTE_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_46_RTE_CODE
TRACE_RESULT (current_cpu, "h-ie-0", 'x', CPU (h_ie));
CPU (h_cond) = OPRND (h_bcond_0);
TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
- BRANCH_NEW_PC (current_cpu, new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, OPRND (h_bpc_0)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, OPRND (h_bpc_0)));
TRACE_RESULT (current_cpu, "pc", 'x', CPU (h_pc));
} while (0);
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_47_seth.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_47_SETH_VARS /* f-op1 f-r1 f-op2 f-r2 f-hi16 */
EXTRACT_FMT_47_SETH_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_48_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_48_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_48_SLL3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_49_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_49_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_49_SLLI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_48_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_48_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_48_SLL3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_49_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_49_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_49_SLLI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_48_sll3.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_48_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_48_SLL3_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_49_slli.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_49_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_49_SLLI_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_50_st.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_50_ST_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_50_ST_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_51_st_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_51_ST_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_51_ST_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_52_stb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_52_STB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_52_STB_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_53_stb_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_53_STB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_53_STB_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_54_sth.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_54_STH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_54_STH_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_55_sth_d.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_55_STH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_55_STH_D_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_56_st_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_56_ST_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_56_ST_PLUS_CODE
do {
- CPU (h_gr[f_r2]) = ADDSI (OPRND (src2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = ADDSI (OPRND (src2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, OPRND (src1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+ CPU (h_gr[f_r2]) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', CPU (h_gr[f_r2]));
-SETMEMSI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, OPRND (src2)));
} while (0);
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_56_st_plus.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_56_ST_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_56_ST_PLUS_CODE
do {
- CPU (h_gr[f_r2]) = SUBSI (OPRND (src2), 4);
+ SI tmp_new_src2;
+ tmp_new_src2 = SUBSI (OPRND (src2), 4);
+SETMEMSI (current_cpu, tmp_new_src2, OPRND (src1));
+ TRACE_RESULT (current_cpu, "h-memory-new-src2", 'x', GETMEMSI (current_cpu, tmp_new_src2));
+ CPU (h_gr[f_r2]) = tmp_new_src2;
TRACE_RESULT (current_cpu, "src2", 'x', CPU (h_gr[f_r2]));
-SETMEMSI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "h-memory-src2", 'x', GETMEMSI (current_cpu, OPRND (src2)));
} while (0);
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_0_add.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_0_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_0_ADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_5_addv.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_5_ADDV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_5_ADDV_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_7_addx.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_7_ADDX_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_7_ADDX_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_57_trap.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
int taken_p = 0;
EXTRACT_FMT_57_TRAP_VARS /* f-op1 f-r1 f-op2 f-uimm4 */
EXTRACT_FMT_57_TRAP_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_58_unlock.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_58_UNLOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_58_UNLOCK_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_59_satb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_59_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_59_SATB_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_59_satb.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_59_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_59_SATB_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_60_sat.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 4;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 4);
EXTRACT_FMT_60_SAT_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_60_SAT_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_21_cmpz.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_21_CMPZ_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_21_CMPZ_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_61_sadd.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_61_SADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_61_SADD_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_62_macwu1.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_62_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_62_MACWU1_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_63_msblo.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_63_MSBLO_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_63_MSBLO_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_64_mulwu1.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_64_MULWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_64_MULWU1_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_62_macwu1.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_62_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_62_MACWU1_CODE
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_65_sc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_65_SC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_65_SC_CODE
if (OPRND (condbit)) {
- CPU (h_abort) = 1;
- TRACE_RESULT (current_cpu, "abort-parallel-execution", 'x', CPU (h_abort));
+BRANCH_NEW_PC (new_pc, NEW_PC_SKIP);
}
#if WITH_PROFILE_MODEL_P
insn_t insn = SEM_INSN (sem_arg);
#define OPRND(f) par_exec->operands.fmt_65_sc.f
ARGBUF *abuf = SEM_ARGBUF (sem_arg);
- CIA new_pc = CPU (h_pc) + 2;
+ CIA new_pc = SEM_NEXT_PC (sem_arg, 2);
EXTRACT_FMT_65_SC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_65_SC_CODE
if (NOTBI (OPRND (condbit))) {
- CPU (h_abort) = 1;
- TRACE_RESULT (current_cpu, "abort-parallel-execution", 'x', CPU (h_abort));
+BRANCH_NEW_PC (new_pc, NEW_PC_SKIP);
}
#if WITH_PROFILE_MODEL_P