Skip to content

Commit

Permalink
linux-user/ppc: Remove POWERPC_EXCP_ALIGN handling
Browse files Browse the repository at this point in the history
We will raise SIGBUS directly from cpu_loop_exit_sigbus.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
  • Loading branch information
rth7680 committed Nov 2, 2021
1 parent 996473e commit 5057ae5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions linux-user/ppc/cpu_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ void cpu_loop(CPUPPCState *env)
cpu_abort(cs, "External interrupt while in user mode. "
"Aborting\n");
break;
case POWERPC_EXCP_ALIGN: /* Alignment exception */
/* XXX: check this */
info.si_signo = TARGET_SIGBUS;
info.si_errno = 0;
info.si_code = TARGET_BUS_ADRALN;
info._sifields._sigfault._addr = env->nip;
queue_signal(env, info.si_signo, QEMU_SI_FAULT, &info);
break;
case POWERPC_EXCP_PROGRAM: /* Program exception */
case POWERPC_EXCP_HV_EMU: /* HV emulation */
/* XXX: check this */
Expand Down

0 comments on commit 5057ae5

Please sign in to comment.