From patchwork Tue Oct 18 18:50:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 120498 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 21DACB6F88 for ; Wed, 19 Oct 2011 06:50:07 +1100 (EST) Received: from localhost ([::1]:56415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGEmi-0002m8-Tx for incoming@patchwork.ozlabs.org; Tue, 18 Oct 2011 14:53:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGElh-0001bh-7X for qemu-devel@nongnu.org; Tue, 18 Oct 2011 14:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGElZ-0002FF-FH for qemu-devel@nongnu.org; Tue, 18 Oct 2011 14:52:00 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:53655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGElY-0002CC-UV for qemu-devel@nongnu.org; Tue, 18 Oct 2011 14:51:57 -0400 Received: by mail-wy0-f173.google.com with SMTP id 15so1034654wyh.4 for ; Tue, 18 Oct 2011 11:51:56 -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=TIiqR3yssEdHQxKYhqaon+EKyM1S3pSoId+VQTs65SA=; b=ODDchOVrU5EIerSg5BvxwjAyxM1kLQCRtv69hJcYVT1pSCzeWMp70/msz2/zkELmxE y/789EA2/omoGRAUWMYrU4oZB2Bi9lNBnl1cRI7m6FfUaHyaBezNcqaTb3oIfKRH01w2 Rdf+HxqbTzhUI2E9kgWz7PGvHhUWcq5Q6fqhA= Received: by 10.216.14.166 with SMTP id d38mr1315758wed.14.1318963916206; Tue, 18 Oct 2011 11:51:56 -0700 (PDT) Received: from localhost.localdomain (c-71-227-161-214.hsd1.wa.comcast.net. [71.227.161.214]) by mx.google.com with ESMTPS id 11sm5169602wby.15.2011.10.18.11.51.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 11:51:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 18 Oct 2011 11:50:34 -0700 Message-Id: <1318963843-25100-13-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1318963843-25100-1-git-send-email-rth@twiddle.net> References: <1318963843-25100-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 Subject: [Qemu-devel] [PATCH 12/21] 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 Cc: Riku Voipio --- 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 186358b..686f6f6 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 = 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;