From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Antony Pavlov Date: Sat, 7 Dec 2013 04:55:04 +0400 Message-Id: <1386377704-1350-3-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1386377704-1350-1-git-send-email-antonynpavlov@gmail.com> References: <1386377704-1350-1-git-send-email-antonynpavlov@gmail.com> Subject: [Qemu-devel] [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Peter Crosthwaite , Antony Pavlov 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); -- 1.8.5