diff mbox series

[v5,53/67] linux-user/hppa: Remove POWERPC_EXCP_ALIGN handling

Message ID 20211015041053.2769193-54-richard.henderson@linaro.org
State Superseded
Headers show
Series user-only: Cleanup SIGSEGV and SIGBUS handling | expand

Commit Message

Richard Henderson Oct. 15, 2021, 4:10 a.m. UTC
We will raise SIGBUS directly from cpu_loop_exit_sigbus.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 linux-user/ppc/cpu_loop.c | 8 --------
 1 file changed, 8 deletions(-)

-- 
2.25.1

Comments

Philippe Mathieu-Daudé Oct. 29, 2021, 11:39 p.m. UTC | #1
Typo s/hppa/ppc/ in subject.

On 10/15/21 06:10, Richard Henderson wrote:
> We will raise SIGBUS directly from cpu_loop_exit_sigbus.

> 

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  linux-user/ppc/cpu_loop.c | 8 --------

>  1 file changed, 8 deletions(-)

> 

> diff --git a/linux-user/ppc/cpu_loop.c b/linux-user/ppc/cpu_loop.c

> index 840b23736b..483e669300 100644

> --- a/linux-user/ppc/cpu_loop.c

> +++ b/linux-user/ppc/cpu_loop.c

> @@ -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 */

>
diff mbox series

Patch

diff --git a/linux-user/ppc/cpu_loop.c b/linux-user/ppc/cpu_loop.c
index 840b23736b..483e669300 100644
--- a/linux-user/ppc/cpu_loop.c
+++ b/linux-user/ppc/cpu_loop.c
@@ -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 */