Re: [OpenOCD-devel] OpenOCD Aarch64 support

2016-09-12 Thread Matthias Welwarsky
On Tuesday 13 September 2016 07:30:38 Matthias Welwarsky wrote: > That being said, can anyone share some code to switch a PE to Aarch32 mode? > I'm on Rpi3, using a custom little program that does nothing but set up the > GPIOs and then execute an endless loop. The program runs at EL2 in Aarch64 >

Re: [OpenOCD-devel] OpenOCD Aarch64 support

2016-09-12 Thread Matthias Welwarsky
On Monday 12 September 2016 20:38:15 David Ung wrote: > IIRC, MRC/MCR thumb2 instr are 32bit, but they are reversed with the 1st > half word in 15-0 of DGBITR and the 2nd half word in 31-16 of DGBITR. > > I think the hard part is getting gdb to step through Aarch64 into Aarch32 > (or vice versa).

Re: [OpenOCD-devel] OpenOCD Aarch64 support

2016-09-12 Thread David Ung
IIRC, MRC/MCR thumb2 instr are 32bit, but they are reversed with the 1st half word in 15-0 of DGBITR and the 2nd half word in 31-16 of DGBITR. I think the hard part is getting gdb to step through Aarch64 into Aarch32 (or vice versa). If you look at my patch on how memory is access, its going t

Re: [OpenOCD-devel] OpenOCD Aarch64 support

2016-09-12 Thread Matthias Welwarsky
On Sunday 11 September 2016 21:47:09 Matthias Welwarsky wrote: > On Saturday 10 September 2016 23:27:15 Duane Ellis wrote: > > > Do you know if there's a method to read registers that is usable in > > > AArch32 > > > and -64 execution states? > > > > NO - the basic technique is the same Insert an