Re: [OpenOCD-devel] OpenOCD AArch64 support

2016-09-14 Thread Matthias Welwarsky
On Wednesday 14 September 2016 08:12:01 Duane Ellis wrote: > >> What might (should?) work in my particular case is, since I'm starting > >> from > >> EL2: > >> > >> - Modify SPSR_EL2, setting bit 4 = 1 and bits 3:0 to some valid aarch32 > >> mode (0x3 - svc mode) > >> - set ELR_EL2 to a memory loc

Re: [OpenOCD-devel] OpenOCD AArch64 support

2016-09-14 Thread Duane Ellis
>> What might (should?) work in my particular case is, since I'm starting from >> EL2: >> >> - Modify SPSR_EL2, setting bit 4 = 1 and bits 3:0 to some valid aarch32 mode >> (0x3 - svc mode) >> - set ELR_EL2 to a memory location with valid ARM code >> - "ERET" > > OK it "somewhat" worked. I get t

Re: [OpenOCD-devel] OpenOCD AArch64 support

2016-09-14 Thread Matthias Welwarsky
On Tuesday 13 September 2016 22:23:11 Matthias Welwarsky wrote: > On Tuesday 13 September 2016 20:08:46 David Ung wrote: > > FWIW, on linux as long as CONFIG_COMPAT is enabled, you can run both > > AArch64/32 userspace programs. But the mode switching is done at an > > exception level, so you can'