From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI1V6-000537-2Z for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TI1V5-00063E-38 for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:10:51 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:49449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI1V4-000631-TW for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:10:51 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so6428437pbb.4 for ; Sat, 29 Sep 2012 11:10:50 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sat, 29 Sep 2012 11:10:37 -0700 Message-Id: <1348942239-3081-2-git-send-email-rth@twiddle.net> In-Reply-To: <1348942239-3081-1-git-send-email-rth@twiddle.net> References: <1348942239-3081-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 1/3] tcg-alpha: Fix type mismatch errors in cpu_signal_handler. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno Signed-off-by: Richard Henderson --- 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; + uint32_t insn = *(uint32_t *)pc; int is_write = 0; /* XXX: need kernel patch to get write flag faster */ -- 1.7.11.4