Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 2 September 2014 00:22, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 9:12 AM, Peter Maydell > wrote: >> Actually, I'm confused now where the reset ordering issue comes >> in, because (ignoring realize, which will call reset) as far as I >> could make out the only place that the ARM CPU r

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 9:12 AM, Peter Maydell wrote: > On 2 September 2014 00:06, Peter Crosthwaite > wrote: >> On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell >> wrote: >>> Surely there's already a reset order dependency, because >>> both the arm-boot reset hook and CPU reset proper want >>> to

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 2 September 2014 00:06, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell > wrote: >> Surely there's already a reset order dependency, because >> both the arm-boot reset hook and CPU reset proper want >> to initialise the PC ? > Yes. I had a PC specific solution to thi

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell wrote: > On 1 September 2014 23:41, Peter Crosthwaite > wrote: >> On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell >> wrote: >>> On 19 August 2014 01:54, Peter Crosthwaite >>> wrote: Linux should boot in EL2 or EL1. If in EL3, jump down before h

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 1 September 2014 23:41, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell > wrote: >> On 19 August 2014 01:54, Peter Crosthwaite >> wrote: >>> Linux should boot in EL2 or EL1. If in EL3, jump down before handing >>> off to Linux. >>> >>> Signed-off-by: Peter Crosthwai

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell wrote: > On 19 August 2014 01:54, Peter Crosthwaite > wrote: >> Linux should boot in EL2 or EL1. If in EL3, jump down before handing >> off to Linux. >> >> Signed-off-by: Peter Crosthwaite > > The other way we could do this would be to have the > do

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 19 August 2014 01:54, Peter Crosthwaite wrote: > Linux should boot in EL2 or EL1. If in EL3, jump down before handing > off to Linux. > > Signed-off-by: Peter Crosthwaite The other way we could do this would be to have the do_cpu_reset() hook put the CPU into EL2 or EL1 before starting the bo

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-08-19 Thread Christopher Covington
Hi Peter, On 08/18/2014 08:54 PM, Peter Crosthwaite wrote: > Linux should boot in EL2 or EL1. If in EL3, jump down before handing > off to Linux. > > Signed-off-by: Peter Crosthwaite > --- > > hw/arm/boot.c | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/hw/arm

[Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-08-18 Thread Peter Crosthwaite
Linux should boot in EL2 or EL1. If in EL3, jump down before handing off to Linux. Signed-off-by: Peter Crosthwaite --- hw/arm/boot.c | 21 + 1 file changed, 21 insertions(+) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 840f5da..f1f6365 100644 --- a/hw/arm/boot.c +++ b/