Skip to content

Commit

Permalink
linux-user/sparc: Handle coprocessor disabled trap
Browse files Browse the repository at this point in the history
Since qemu does not implement a sparc coprocessor, all such
instructions raise this trap.  Because of that, we never raise
the coprocessor exception trap, which would be vector 0x28.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230216054516.1267305-13-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
  • Loading branch information
rth7680 authored and vivier committed Mar 7, 2023
1 parent 2e92ed8 commit 14bd94d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linux-user/sparc/cpu_loop.c
Expand Up @@ -311,6 +311,10 @@ void cpu_loop (CPUSPARCState *env)
/* Note do_privact defers to do_privop. */
force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->pc);
break;
#else
case TT_NCP_INSN:
force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->pc);
break;
#endif
case EXCP_ATOMIC:
cpu_exec_step_atomic(cs);
Expand Down

0 comments on commit 14bd94d

Please sign in to comment.