Re: AArch64 semihosting?

2022-05-26 Thread Liviu Ionescu
> On 26 May 2022, at 14:08, Peter Maydell wrote: > I confirm that, started via "-kernel aarch64-boot-libgloss.elf", with a single "--semihosting-config", the app ran properly, displayed the printf() output and no longer crashed. ``` ilg@wksi ~ %

Re: AArch64 semihosting?

2022-05-26 Thread Peter Maydell
On Thu, 26 May 2022 at 12:03, Liviu Ionescu wrote: > > > > > On 26 May 2022, at 13:01, Peter Maydell wrote: > > > > Yes, I can reproduce this. > > Ok, it seems you diagnosed it pretty quickly, great! > > > Did you intend to pass '-s' (allow gdbstub connection) but not > > '-S' (wait on startup

Re: AArch64 semihosting?

2022-05-26 Thread Liviu Ionescu
> On 26 May 2022, at 13:01, Peter Maydell wrote: > > Yes, I can reproduce this. Ok, it seems you diagnosed it pretty quickly, great! > Did you intend to pass '-s' (allow gdbstub connection) but not > '-S' (wait on startup for gdb to connect and say "continue"), > by the way? Oops! I forgot

Re: AArch64 semihosting?

2022-05-26 Thread Peter Maydell
On Thu, 26 May 2022 at 11:01, Peter Maydell wrote: > > On Thu, 26 May 2022 at 09:32, Liviu Ionescu wrote: > > > On 26 May 2022, at 11:20, Peter Maydell wrote: > > > > > > ... can you provide us with > > > a reproduce case (eg the binary you used here)? > > > > Sure. I'll try to attach it to

Re: AArch64 semihosting?

2022-05-26 Thread Peter Maydell
On Thu, 26 May 2022 at 09:32, Liviu Ionescu wrote: > > On 26 May 2022, at 11:20, Peter Maydell wrote: > > > > ... can you provide us with > > a reproduce case (eg the binary you used here)? > > Sure. I'll try to attach it to this message, it is only 64K. > > The command I used to run the test is

Re: AArch64 semihosting?

2022-05-26 Thread Liviu Ionescu
> On 26 May 2022, at 11:20, Peter Maydell wrote: > > QEMU also shares code for those two architectures' semihosting > implementation. Then it seems to be a difference between Arm 64-bit and Arm 32-bit (which is fine). After fixing the AArch64 tests I'll get to RISC-V, which should run the

Re: AArch64 semihosting?

2022-05-26 Thread Liviu Ionescu
> On 26 May 2022, at 11:20, Peter Maydell wrote: > > ... can you provide us with > a reproduce case (eg the binary you used here)? Sure. I'll try to attach it to this message, it is only 64K. The command I used to run the test is in the previous message. Please confirm that you get the

Re: AArch64 semihosting?

2022-05-26 Thread Peter Maydell
" "--kernel" > "--nographic" "-d" > ilg@wksi ~ % > ``` > > The application was built with newlib libgloss and all it does is a series of > printfs to display Hello World and the argv array. I'm not aware of any problems with aarch64 semihosting. I

AArch64 semihosting?

2022-05-26 Thread Liviu Ionescu
I'm trying to set-up an environment for running unit-tests on AArch64, and I'm constantly getting crashes: ``` ilg@wksi ~ % /Users/ilg/Library/xPacks/@xpack-dev-tools/qemu-arm/6.2.0-1.1/.content/bin/qemu-system-aarch64 "--machine" "virt" "--cpu" "cortex-a57" "--kernel" "/Users/ilg/My