[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 06/12] ARM: Factor out ARM on/off PSCI contro
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3 06/12] ARM: Factor out ARM on/off PSCI control functions |
Date: |
Thu, 17 Mar 2016 08:46:24 +0000 |
On 16 March 2016 at 22:19, Jean-Christophe DUBOIS <address@hidden> wrote:
> Hi Peter,
>
> I am wondering what is the "correct" (simple?) way in QEMU to put a CPU in a
> particular state (HYP, SVC, MON, ...) after I reset it (using cpu_reset()).
>
> For example, if I reset a core that has "has_el3" property it will start in
> EL3 mode.
If it's AArch64, yes. If it's AArch32 then it will start in Secure-SVC
(which is EL3, but the distinction is that if you wanted NS-SVC then
what you need to flip is the NS bit.)
> Now what is the simple way to transition this CPU to EL1 before starting
> running it with target_cpu_class->set_pc(target_cpu_state, entry);
There is no convenient API provided for this -- if you look at boot.c
it just directly tweaks registers. We might want to abstract this out
a bit better.
thanks
-- PMM
- [Qemu-devel] [PATCH v3 00/12] Add i.MX6 (Single/Dual/Quad) support, Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 03/12] i.MX: Remove CCM useless clock computation handling., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 01/12] i.MX: Allow GPT timer to rollover., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 02/12] i.MX: Rename CCM NOCLK to CLK_NONE for naming consistency., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 04/12] i.MX: Add the CLK_IPG_HIGH clock, Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 06/12] ARM: Factor out ARM on/off PSCI control functions, Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 05/12] i.MX: Add i.MX6 CCM and ANALOG device., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 09/12] FIFO: Add a FIFO32 implementation, Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 08/12] i.MX: Add missing descriptions in devices., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 07/12] i.MX: Add i.MX6 System Reset Controller device., Jean-Christophe Dubois, 2016/03/01
- [Qemu-devel] [PATCH v3 10/12] i.MX: Add the Freescale SPI Controller, Jean-Christophe Dubois, 2016/03/01