From patchwork Sat Sep 29 18:10:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 188042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E74A72C00F4 for ; Sun, 30 Sep 2012 04:11:05 +1000 (EST) Received: from localhost ([::1]:55464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI1VH-00057b-V1 for incoming@patchwork.ozlabs.org; Sat, 29 Sep 2012 14:11:03 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Lw4aEF35yqzaQggyaFV8CCWCVe1fpcjoGh5pyryoHBE=; b=wbRzVrMHhRyuEmZGrYZFaagarJr9v32RpdwPpYbd2L0YZohe8xMl56bdKHo7qse1Ng dk/mUuR2PslWibvGsMNDxQpuM4lDd/0aLuHMD4alkW2LmVv56U9jqHqntTlH7iN9OKLd t4mwtFtJkMASquFmNIN38jqMsOWQ82JeXY/s9EGGJR2HHx6agp/hT9AUaN9O31L3rq9L khpo/55EhpH4ssLoqZDshw5qq76AkxjxkRangSHtn7ODU4eLRGcGW+N3pCfB6UOK60tQ xruHt2ACH38KSMmE3Uiok/+Cn/7iROOyHFunXorwjjnMdL8/QQRk+QOX3QfvJ5xas/L9 vCLQ== Received: by 10.68.230.232 with SMTP id tb8mr29404700pbc.19.1348942250650; Sat, 29 Sep 2012 11:10:50 -0700 (PDT) Received: from anchor.twiddle.home ([173.160.232.49]) by mx.google.com with ESMTPS id tw5sm7519063pbc.48.2012.09.29.11.10.49 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Sep 2012 11:10:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 29 Sep 2012 11:10:37 -0700 Message-Id: <1348942239-3081-2-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1348942239-3081-1-git-send-email-rth@twiddle.net> References: <1348942239-3081-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: Aurelien Jarno Subject: [Qemu-devel] [PATCH 1/3] tcg-alpha: Fix type mismatch errors in cpu_signal_handler. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Aurelien Jarno --- 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 */