+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * traps-linux.c (m32r_trap): Change OPERATING_ENVIRONMENT check to
+ !USER_ENVIRONMENT. Jump to default switch case.
+
2021-07-01 Mike Frysinger <vapier@gentoo.org>
* syscall.h: Change __NR_ prefix on all symbols to TARGET_LINUX_SYS_.
unsigned int func, arg1, arg2, arg3, arg4, arg5, arg6, arg7;
int result, result2, errcode;
- if (STATE_ENVIRONMENT (sd) == OPERATING_ENVIRONMENT)
- {
- /* The new pc is the trap vector entry.
- We assume there's a branch there to some handler.
- Use cr5 as EVB (EIT Vector Base) register. */
- USI new_pc = m32rbf_h_cr_get (current_cpu, 5) + 0x40 + num * 4;
- return new_pc;
- }
+ if (STATE_ENVIRONMENT (sd) != USER_ENVIRONMENT)
+ goto case_default;
func = m32rbf_h_gr_get (current_cpu, 7);
arg1 = m32rbf_h_gr_get (current_cpu, 0);
/* Do nothing. */
break;
+ case_default:
default :
{
/* Use cr5 as EVB (EIT Vector Base) register. */
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * hw-trap.ms: Run sim with --environment virtual.
+ * trap.cgs: Likewise.
+
2021-04-08 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp (arch): Delete.