From patchwork Mon Mar 15 12:39:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars Munch X-Patchwork-Id: 47758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 60233B7D79 for ; Mon, 15 Mar 2010 23:40:25 +1100 (EST) Received: from localhost ([127.0.0.1]:42275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr9ao-0001in-1N for incoming@patchwork.ozlabs.org; Mon, 15 Mar 2010 08:40:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nr9a4-0001ht-7H for qemu-devel@nongnu.org; Mon, 15 Mar 2010 08:39:36 -0400 Received: from [199.232.76.173] (port=36085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr9a3-0001hf-SD for qemu-devel@nongnu.org; Mon, 15 Mar 2010 08:39:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nr9a2-00056t-Nr for qemu-devel@nongnu.org; Mon, 15 Mar 2010 08:39:35 -0400 Received: from pasmtpa.tele.dk ([80.160.77.114]:43968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nr9a2-00056l-Ee for qemu-devel@nongnu.org; Mon, 15 Mar 2010 08:39:34 -0400 Received: from firewall (0x535c82dc.virnxx18.dynamic.dsl.tele.dk [83.92.130.220]) by pasmtpA.tele.dk (Postfix) with ESMTP id 8AA7D800655 for ; Mon, 15 Mar 2010 13:39:32 +0100 (CET) Received: by firewall (Postfix, from userid 1000) id 2897E3E8E; Mon, 15 Mar 2010 13:39:32 +0100 (CET) Date: Mon, 15 Mar 2010 13:39:32 +0100 From: Lars Munch To: qemu-devel@nongnu.org Message-ID: <20100315123932.GB8895@firewall> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When using linux-user for emulating an pxa270 we cannot generate an illegal instruction trap to the kernel to save/load the iwmmxt registers. Signed-off-by: Lars Munch --- target-arm/translate.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index cdfe946..6b621b1 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -5802,9 +5802,11 @@ static int disas_coproc_insn(CPUState * env, DisasContext *s, uint32_t insn) int cpnum; cpnum = (insn >> 8) & 0xf; +#if !defined(CONFIG_USER_ONLY) if (arm_feature(env, ARM_FEATURE_XSCALE) && ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum))) return 1; +#endif switch (cpnum) { case 0: