qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 12/21] sparc-linux-user: Handle SIGILL.


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 12/21] sparc-linux-user: Handle SIGILL.
Date: Tue, 18 Oct 2011 20:32:06 +0000

On Tue, Oct 18, 2011 at 6:50 PM, Richard Henderson <address@hidden> wrote:
> Signed-off-by: Richard Henderson <address@hidden>
> Cc: Riku Voipio <address@hidden>
> ---
>  linux-user/main.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 186358b..686f6f6 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -1191,6 +1191,15 @@ void cpu_loop (CPUSPARCState *env)
>         case EXCP_INTERRUPT:
>             /* just indicate that signals should be handled asap */
>             break;
> +        case TT_ILL_INSN:
> +            {
> +                info.si_signo = SIGILL;

TARGET_SIGILL

> +                info.si_errno = 0;
> +                info.si_code = TARGET_ILL_ILLOPC;
> +                info._sifields._sigfault._addr = env->pc;
> +                queue_signal(env, info.si_signo, &info);
> +            }
> +            break;
>         case EXCP_DEBUG:
>             {
>                 int sig;
> --
> 1.7.6.4
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]