From patchwork Tue Oct 25 17:34:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 121775 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 217971007DB for ; Wed, 26 Oct 2011 04:35:47 +1100 (EST) Received: from localhost ([::1]:51517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkuY-00073F-VB for incoming@patchwork.ozlabs.org; Tue, 25 Oct 2011 13:35:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkuM-0006wd-HF for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIkuH-0006F7-QA for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:26 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:63439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkuH-0006Ej-KP for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:35:21 -0400 Received: by wwe32 with SMTP id 32so5515858wwe.4 for ; Tue, 25 Oct 2011 10:35:20 -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=nNHXRhi7NpfIHqF5xThGeae1T0LqDqnxvZVLYfh/IcY=; b=lNubCfEo/QPxuqIY05CdjQ+0Q1Rs/Ta+IXWoZTeJytcnSHoI007RlbwzdjO0QcKAKR WtQU4kfI2VVXV532dd/JN1ZGAF3RqyL2jRUI7hUbppGJzfBj2+ryllbq/AbYExESpevf SKvzhohtPCilg4rJpJwC79Eu4OZoR0pA3Igok= Received: by 10.227.202.149 with SMTP id fe21mr4939336wbb.15.1319564120643; Tue, 25 Oct 2011 10:35:20 -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.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 10:35:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2011 10:34:06 -0700 Message-Id: <1319564048-17754-2-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.41 Cc: blauwirbel@gmail.com, riku.voipio@iki.fi Subject: [Qemu-devel] [PATCH 1/3] sparc-linux-user: Handle SIGILL. 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 | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index e7dad54..2bc10ed 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1191,6 +1191,15 @@ void cpu_loop (CPUSPARCState *env) case EXCP_INTERRUPT: /* just indicate that signals should be handled asap */ break; + case TT_ILL_INSN: + { + info.si_signo = TARGET_SIGILL; + info.si_errno = 0; + info.si_code = TARGET_ILL_ILLOPC; + info._sifields._sigfault._addr = env->pc; + queue_signal(env, info.si_signo, &info); + } + break; case EXCP_DEBUG: { int sig;