From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqVJc-00060J-6B for qemu-devel@nongnu.org; Tue, 10 Dec 2013 16:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqVJO-0006zY-BE for qemu-devel@nongnu.org; Tue, 10 Dec 2013 16:58:04 -0500 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:32955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqVJO-0006zU-3W for qemu-devel@nongnu.org; Tue, 10 Dec 2013 16:57:50 -0500 Received: by mail-la0-f46.google.com with SMTP id eh20so3142622lab.5 for ; Tue, 10 Dec 2013 13:57:48 -0800 (PST) From: Antony Pavlov Date: Wed, 11 Dec 2013 02:05:03 +0400 Message-Id: <1386713103-24385-3-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1386713103-24385-1-git-send-email-antonynpavlov@gmail.com> References: <1386713103-24385-1-git-send-email-antonynpavlov@gmail.com> Subject: [Qemu-devel] [RFC v2 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index b60e3fc..b6199c5 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -120,6 +120,11 @@ static void arm_cpu_reset(CPUState *s) env->regs[15] = pc & ~1; } } + + if (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