From patchwork Tue Oct 25 17:34:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 121777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 29D591007D9 for ; Wed, 26 Oct 2011 04:36:16 +1100 (EST) Received: from localhost ([::1]:54951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkv7-0000T5-HH for incoming@patchwork.ozlabs.org; Tue, 25 Oct 2011 13:36:13 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkud-0007i2-A4 for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIkuR-0006IR-Hx for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:32 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:60846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkuR-0006Cw-Ce for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:31 -0400 Received: by mail-wy0-f173.google.com with SMTP id 15so869159wyh.4 for ; Tue, 25 Oct 2011 10:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=U37pDeq0zsbW1n6dRLuqc7U7ACThKWS+DAs2nc970Ak=; b=EEh2IePpvNz2o0tpWaqFMEs0bjGsqsJP26vYkb8XIypQXaLhdkwHSDepfKx1vd3Qq1 4yw9LwXOlwZBc/V/+amMluZRm0uiy3SB4CqTTQvmS8DOoqfc/8wlZnES+Qoc/FiaGbgq V1qLwFNB8Jw0WugKUJNL0pBfp7oPPIACNB+4M= Received: by 10.227.198.212 with SMTP id ep20mr4962870wbb.19.1319564130724; Tue, 25 Oct 2011 10:35:30 -0700 (PDT) Received: from localhost.localdomain (c-98-203-235-125.hsd1.wa.comcast.net. [98.203.235.125]) by mx.google.com with ESMTPS id a27sm15810354wbp.16.2011.10.25.10.35.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 10:35:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2011 10:34:07 -0700 Message-Id: <1319564048-17754-3-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1319564048-17754-1-git-send-email-rth@twiddle.net> References: <1319564048-17754-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.173 Cc: blauwirbel@gmail.com, riku.voipio@iki.fi Subject: [Qemu-devel] [PATCH 2/3] sparc-linux-user: Fixup sending SIGSEGV 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 --- linux-user/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 2bc10ed..c36a8af 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1148,7 +1148,7 @@ void cpu_loop (CPUSPARCState *env) case TT_TFAULT: case TT_DFAULT: { - info.si_signo = SIGSEGV; + info.si_signo = TARGET_SIGSEGV; info.si_errno = 0; /* XXX: check env->error_code */ info.si_code = TARGET_SEGV_MAPERR; @@ -1166,7 +1166,7 @@ void cpu_loop (CPUSPARCState *env) case TT_TFAULT: case TT_DFAULT: { - info.si_signo = SIGSEGV; + info.si_signo = TARGET_SIGSEGV; info.si_errno = 0; /* XXX: check env->error_code */ info.si_code = TARGET_SEGV_MAPERR;