From: Peter Maydell <peter.maydell@linaro.org>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>, Andrew Jeffery <andrew@aj.id.au>
Subject: Re: [Qemu-devel] [PATCH v3 00/10] arm: add ast2500 support
Date: Fri, 12 Aug 2016 10:22:28 +0100 [thread overview]
Message-ID: <CAFEAcA8o77Z0K-Cv+gW23p=5OV7RkboPxiDwrDZhoMvm3fMvLQ@mail.gmail.com> (raw)
In-Reply-To: <a51aea17-b72b-bdef-0b41-ddbfbf8f2626@kaod.org>
On 12 August 2016 at 09:38, Cédric Le Goater <clg@kaod.org> wrote:
> On 08/11/2016 12:47 PM, Peter Maydell wrote:
>> On 2 August 2016 at 18:15, Cédric Le Goater <clg@kaod.org> wrote:
>>> On the AST2500, I am still having a little issue under uboot which
>>> sets the vbar doing :
>>>
>>> mcr p15, 0, r0, c12, c0, 0 /* Set VBAR */
>>>
>>> and this is trapped as an undefined instruction by qemu.
>>>
>>> Looking at hw/arm/helper.c, the VBAR register seems to be defined
>>> only for feature ARM_FEATURE_V7 (v7_cp_reginfo). The AST2500 SoC
>>> uses a arm1176 which defines ARM_FEATURE_EL3 which gives us a
>>> VBAR_EL3. According to th specs, the arm1176jzf-s has a Vector
>>> Base Address Register. So am I missing something in the board
>>> definition or is uboot being too optimistic on the cpu features ?
>>> This is confusing for me, some direction would be welcomed :)
>>
>> This looks like a bug in helper.c -- we originally added the VBAR
>> definition as a bit of a hack since it's only supposed to exist
>> in CPUs with the security extensions and at the time we didn't
>> implement those at all. It should definitely exist in the 1176
>> too, so we should move the definition around somewhere so it does.
>> (The 1176 is the only non-v7 CPU with security extensions support,
>> which is why it got missed I suspect.)
>
> OK. I will give it a try in a standalone patch. Is there a scenario
> I could use to catch possible regression on other cpus ?
I don't have any test cases to hand that I know use VBAR, no.
thanks
-- PMM
prev parent reply other threads:[~2016-08-12 14:33 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 17:15 [Qemu-devel] [PATCH v3 00/10] arm: add ast2500 support Cédric Le Goater
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 01/10] ast2400: rename the Aspeed SoC files to aspeed_soc Cédric Le Goater
2016-08-02 23:35 ` Andrew Jeffery
2016-08-11 10:22 ` Peter Maydell
2016-08-11 10:27 ` Cédric Le Goater
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 02/10] ast2400: replace ast2400 with aspeed_soc Cédric Le Goater
2016-08-02 23:44 ` Andrew Jeffery
2016-08-11 10:23 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 03/10] aspeed-soc: provide a framework to add new SoCs Cédric Le Goater
2016-08-02 23:46 ` Andrew Jeffery
2016-08-11 10:14 ` Peter Maydell
2016-08-12 8:33 ` Cédric Le Goater
2016-08-12 9:21 ` Peter Maydell
2016-08-22 9:07 ` Cédric Le Goater
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 04/10] palmetto-bmc: rename the Aspeed board file to aspeed.c Cédric Le Goater
2016-08-02 23:47 ` Andrew Jeffery
2016-08-11 10:24 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 05/10] palmetto-bmc: replace palmetto_bmc with aspeed Cédric Le Goater
2016-08-02 23:56 ` Andrew Jeffery
2016-08-11 10:23 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 06/10] palmetto-bmc: add board specific configuration Cédric Le Goater
2016-08-02 23:58 ` Andrew Jeffery
2016-08-11 10:27 ` Peter Maydell
2016-08-12 8:28 ` Cédric Le Goater
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 07/10] hw/misc: use macros to define hw-strap1 register on the AST2400 Aspeed SoC Cédric Le Goater
2016-08-03 0:13 ` Andrew Jeffery
2016-08-11 10:29 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 08/10] aspeed: add a AST2500 SoC and support to the SCU and SDMC controllers controllers Cédric Le Goater
2016-08-03 0:19 ` Andrew Jeffery
2016-08-11 10:33 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 09/10] arm: add support for an ast2500 evaluation board Cédric Le Goater
2016-08-03 0:22 ` Andrew Jeffery
2016-08-11 10:34 ` Peter Maydell
2016-08-02 17:15 ` [Qemu-devel] [PATCH v3 10/10] palmetto-bmc: remove extra no_sdcard assignement Cédric Le Goater
2016-08-03 0:23 ` Andrew Jeffery
2016-08-03 7:03 ` Cédric Le Goater
2016-08-11 10:35 ` Peter Maydell
2016-08-11 10:47 ` [Qemu-devel] [PATCH v3 00/10] arm: add ast2500 support Peter Maydell
2016-08-12 8:38 ` Cédric Le Goater
2016-08-12 9:22 ` Peter Maydell [this message]
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='CAFEAcA8o77Z0K-Cv+gW23p=5OV7RkboPxiDwrDZhoMvm3fMvLQ@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=andrew@aj.id.au \
--cc=clg@kaod.org \
--cc=qemu-arm@nongnu.org \
--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).