qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH 1/3] tcg-alpha: Fix type mismatch errors in	cpu_signal_handler.
Date: Sat, 29 Sep 2012 20:26:29 +0200	[thread overview]
Message-ID: <50673D55.4030407@weilnetz.de> (raw)
In-Reply-To: <1348942239-3081-2-git-send-email-rth@twiddle.net>

Am 29.09.2012 20:10, schrieb Richard Henderson:
> Signed-off-by: Richard Henderson<rth@twiddle.net>
> ---
>   user-exec.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/user-exec.c b/user-exec.c
> index ef9b172..1635e4a 100644
> --- a/user-exec.c
> +++ b/user-exec.c
> @@ -352,8 +352,8 @@ int cpu_signal_handler(int host_signum, void *pinfo,
>   {
>       siginfo_t *info = pinfo;
>       struct ucontext *uc = puc;
> -    uint32_t *pc = uc->uc_mcontext.sc_pc;
> -    uint32_t insn = *pc;
> +    unsigned long pc = uc->uc_mcontext.sc_pc;
>    

I'd prefer uintptr_t instead of unsigned long.
Otherwise the following type cast is not portable
(even if that doesn't matter currently because
that code is not compiled with MinGW).

Yes, there is more similar code in user-exec.c.

> +    uint32_t insn = *(uint32_t *)pc;
>       int is_write = 0;
>
>       /* XXX: need kernel patch to get write flag faster */
>    


Regards

Stefan W.

  reply	other threads:[~2012-09-29 18:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29 18:10 [Qemu-devel] [PATCH 0/3] Alpha TCG host Richard Henderson
2012-09-29 18:10 ` [Qemu-devel] [PATCH 1/3] tcg-alpha: Fix type mismatch errors in cpu_signal_handler Richard Henderson
2012-09-29 18:26   ` Stefan Weil [this message]
2012-10-22 21:39   ` Aurelien Jarno
2012-09-29 18:10 ` [Qemu-devel] [PATCH 2/3] tcg-alpha: Don't use a custom linker script Richard Henderson
2012-10-22 21:39   ` Aurelien Jarno
2012-09-29 18:10 ` [Qemu-devel] [PATCH 3/3] tcg-alpha: New TCG target Richard Henderson
2012-10-22 21:39   ` Aurelien Jarno
2012-10-22 23:14     ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50673D55.4030407@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).