From patchwork Sat Dec 7 00:55:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antony Pavlov X-Patchwork-Id: 298594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BD0792C0372 for ; Sat, 7 Dec 2013 11:48:55 +1100 (EST) Received: from localhost ([::1]:34084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp64j-0007Qx-7j for incoming@patchwork.ozlabs.org; Fri, 06 Dec 2013 19:48:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp64A-0007KS-0A for qemu-devel@nongnu.org; Fri, 06 Dec 2013 19:48:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vp641-0007uU-K3 for qemu-devel@nongnu.org; Fri, 06 Dec 2013 19:48:17 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:63414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp641-0007sN-Bs for qemu-devel@nongnu.org; Fri, 06 Dec 2013 19:48:09 -0500 Received: by mail-la0-f45.google.com with SMTP id eh20so563538lab.18 for ; Fri, 06 Dec 2013 16:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S1RN2INOPKgXEwYKxh9OnFB4XYZfUct7A0QIxsOuVVw=; b=brbQYHbh2+gDXhe5eY6HyHa2J8T9YxS8ZWPKfWoz2W9wA6okAsNAuPaieCu2XqXPNY GOGZqEjjwu6PPqTrT62PVGFf5IjMLrpvgucMlZmj9neH9HfrNizmy0JEcjI0Zj02RiQZ UhXtIWm3IR0dmSNizJ1OHsbWcu8Ibu+dN65eMr7RVnWRnpGiluRUs2DX1Ys6wF8rGJCH EmkoKQ7r1ANc4hlUFE7KAApQyYAKlQev6Q8sT5IDBse8PubVcaMH+McyvJlFdCjCVCqW VOqeAsrQQin/q7Kj/NvborRPKzNBB41UGNuJMRFVynVQ53Zlmr9NA5uwfx3hkwnorWDp u7Ow== X-Received: by 10.112.52.74 with SMTP id r10mr1544256lbo.36.1386377288285; Fri, 06 Dec 2013 16:48:08 -0800 (PST) Received: from localhost.localdomain (ppp37-190-57-6.pppoe.spdop.ru. [37.190.57.6]) by mx.google.com with ESMTPSA id mv9sm260883lbc.0.2013.12.06.16.48.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Dec 2013 16:48:07 -0800 (PST) From: Antony Pavlov To: qemu-devel@nongnu.org Date: Sat, 7 Dec 2013 04:55:04 +0400 Message-Id: <1386377704-1350-3-git-send-email-antonynpavlov@gmail.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1386377704-1350-1-git-send-email-antonynpavlov@gmail.com> References: <1386377704-1350-1-git-send-email-antonynpavlov@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d Cc: Peter Maydell , Peter Crosthwaite , Antony Pavlov Subject: [Qemu-devel] [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc 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: Antony Pavlov --- target-arm/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index f838499..6f548c7 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -126,6 +126,10 @@ static void arm_cpu_reset(CPUState *s) env->cp15.c1_sys = c1_sys | (1 << 13); } + if (!IS_M(env) && env->cp15.c1_sys & (1 << 13)) { + env->regs[15] = 0xFFFF0000; + } + env->vfp.xregs[ARM_VFP_FPEXC] = 0; #endif set_flush_to_zero(1, &env->vfp.standard_fp_status);