[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] alpha-linux-user: Fill in SI_CODE for SIGSEGV.
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] alpha-linux-user: Fill in SI_CODE for SIGSEGV. |
Date: |
Sat, 29 May 2010 00:09:14 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, May 21, 2010 at 10:03:33AM -0700, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> linux-user/main.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
Thanks, applied.
> diff --git a/linux-user/main.c b/linux-user/main.c
> index b240f29..de1076b 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -2433,7 +2433,8 @@ void cpu_loop (CPUState *env)
> env->lock_addr = -1;
> info.si_signo = TARGET_SIGSEGV;
> info.si_errno = 0;
> - info.si_code = 0; /* ??? SEGV_MAPERR vs SEGV_ACCERR. */
> + info.si_code = (page_get_flags(env->ipr[IPR_EXC_ADDR]) &
> PAGE_VALID
> + ? TARGET_SEGV_ACCERR : TARGET_SEGV_MAPERR);
> info._sifields._sigfault._addr = env->ipr[IPR_EXC_ADDR];
> queue_signal(env, info.si_signo, &info);
> break;
> --
> 1.7.0.1
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net