On 28 October 2014 12:52, Liviu Ionescu <i...@livius.net> wrote: > > On 28 Oct 2014, at 14:45, Peter Maydell <peter.mayd...@linaro.org> wrote: > >>> qemu: Unsupported SemiHosting SWI 0x00 >>> R00=00000000 R01=00000000 R02=00000000 R03=00000000 >>> R04=00000000 R05=00000000 R06=00000000 R07=200ffed8 >>> R08=00000000 R09=00000000 R10=00000000 R11=00000000 >>> R12=00000000 R13=200ffed8 R14=000022c5 R15=0000157c >>> PSR=60000173 -ZC- T svc32 >>> Abort trap: 6 >> >> What code sequence and which semihosting function are >> you trying to use here? > > I guess it is: > > call_host (SEMIHOSTING_SYS_WRITE0, (void*) buf); > > where SEMIHOSTING_SYS_WRITE0 = 0x04.
Can you give the disassembly of the actual code making the semihosting request, please? As you can see we seem to have interpreted this as a semihosting function zero, not 4, but it's hard to see why without seeing what the assembly instructions are that your code is executing. -- PMM