Re: [U-Boot] [PATCH v2 11/23] sunxi: A64: do an RMR switch if started in AArch32 mode

2016-12-06 Thread Maxime Ripard
On Mon, Dec 05, 2016 at 10:41:27AM +, Andre Przywara wrote: > Hi Simon, > > thanks a lot for looking at this! > > On 05/12/16 06:25, Simon Glass wrote: > > Hi Andre, > > > > On 4 December 2016 at 18:52, Andre Przywara wrote: > >> The Allwinner A64 SoC starts

Re: [U-Boot] [PATCH v2 11/23] sunxi: A64: do an RMR switch if started in AArch32 mode

2016-12-05 Thread Andre Przywara
Hi Simon, thanks a lot for looking at this! On 05/12/16 06:25, Simon Glass wrote: > Hi Andre, > > On 4 December 2016 at 18:52, Andre Przywara wrote: >> The Allwinner A64 SoC starts execution in AArch32 mode, and both >> the boot ROM and Allwinner's boot0 keep running in

Re: [U-Boot] [PATCH v2 11/23] sunxi: A64: do an RMR switch if started in AArch32 mode

2016-12-04 Thread Simon Glass
Hi Andre, On 4 December 2016 at 18:52, Andre Przywara wrote: > The Allwinner A64 SoC starts execution in AArch32 mode, and both > the boot ROM and Allwinner's boot0 keep running in this mode. > So U-Boot gets entered in 32-bit, although we want it to run in AArch64. > >

[U-Boot] [PATCH v2 11/23] sunxi: A64: do an RMR switch if started in AArch32 mode

2016-12-04 Thread Andre Przywara
The Allwinner A64 SoC starts execution in AArch32 mode, and both the boot ROM and Allwinner's boot0 keep running in this mode. So U-Boot gets entered in 32-bit, although we want it to run in AArch64. By using a "magic" instruction, which happens to be an almost-NOP in AArch64 and a branch in