From: Karthik <karthikshanmugam@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] ARM Cortex R5 + VFP3
Date: Tue, 24 May 2016 18:37:00 +0530 [thread overview]
Message-ID: <CAAmr2Y_y2PCVLpupmf7f_Vgo706YrzXqdXGUTGsQ7LDK9i76kw@mail.gmail.com> (raw)
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
next reply other threads:[~2016-05-24 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 13:07 Karthik [this message]
2016-05-24 13:37 ` [Qemu-devel] ARM Cortex R5 + VFP3 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAmr2Y_y2PCVLpupmf7f_Vgo706YrzXqdXGUTGsQ7LDK9i76kw@mail.gmail.com \
--to=karthikshanmugam@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).