qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ARM Cortex R5 + VFP3
@ 2016-05-24 13:07 Karthik
  2016-05-24 13:37 ` Peter Maydell
  0 siblings, 1 reply; 6+ messages in thread
From: Karthik @ 2016-05-24 13:07 UTC (permalink / raw)
  To: qemu-devel

Hi,

I am working on adding support for a Spansion microcontroller which has an
Cortex R5 core + VFP3 co processor.

I have added the below line
set_feature(&cpu->env, ARM_FEATURE_VFP3)
to cortex_r5_initfn at /target-arm/cpu.c

But, still I got undefined exception when the processor encountered any VFP
instructions.

To get around the error, I had to enable code protected by CONFIG_USER_ONLY.

Specifically in arm_cpu_reset, where
the bits 20 to 24 are set in env->cp15.cpacr_el1 and
env->vfp.xregs[ARM_VFP_FPEXC] = 1 << 30.

I am sure there is correct way to do things. I'm new to qemu.

Any help will be much appreciated. Thank you.

Best regards,
Karthik

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-25  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 13:07 [Qemu-devel] ARM Cortex R5 + VFP3 Karthik
2016-05-24 13:37 ` Peter Maydell
2016-05-24 13:49   ` Karthik
2016-05-24 14:00     ` Peter Maydell
2016-05-24 14:22       ` Karthik
2016-05-25  5:30         ` Karthik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).