+Wed May 20 00:10:40 1998 Doug Evans <devans@seba.cygnus.com>
+
+ Zero bottom two bits of pc in jmp,jl insns.
+ * sem.c,sem-switch.c: Regenerate.
+start-sanitize-m32rx
+ * semx.c: Regenerate.
+end-sanitize-m32rx
+
Tue May 19 16:45:33 1998 Doug Evans <devans@seba.cygnus.com>
* sim-if.c (do_trap): Treat traps 2-15 as hardware does.
do {
SI temp1;SI temp0;
temp0 = ADDSI (ANDSI (OPRND (pc), -4), 4);
- temp1 = OPRND (sr);
+ temp1 = ANDSI (OPRND (sr), -4);
CPU (h_gr[14]) = temp0;
TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
EXTRACT_FMT_JMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_JMP_CODE
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, OPRND (sr)));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
taken_p = 1;
TRACE_RESULT (current_cpu, "pc", 'x', new_pc);