Re: ARM semihosting issue

2020-10-21 Thread Bruno Prado
Thanks a lot! I will check it out. Bruno Prado On Wed, Oct 21, 2020 at 12:45 PM Alex Bennée wrote: > > Bruno Prado writes: > > > Hello, is it really a bug? > > > > > > Bruno Prado > > > > > > On Fri, Oct 2, 2020 at 8:09 AM Bruno

Re: ARM semihosting issue

2020-10-21 Thread Bruno Prado
Hello, is it really a bug? Bruno Prado On Fri, Oct 2, 2020 at 8:09 AM Bruno Prado wrote: > I am including some syscall functions: > > int _fstat(int file, struct stat* st) { >register int value asm("r0"); >uint32_t p[] = { file }; >

Re: ARM semihosting issue

2020-10-02 Thread Bruno Prado
dling as semihosting call 0x20 Could you please provide any working example using ARM semihosting on stdin? Thanks, Bruno Prado On Fri, Oct 2, 2020 at 7:25 AM Peter Maydell wrote: > On Thu, 1 Oct 2020 at 22:21, Bruno Prado wrote: > > Thanks for the reply... I am attaching

Re: ARM semihosting issue

2020-10-01 Thread Bruno Prado
sting -kernel vp2.bin What is your name? Reading from file... My name is Turing I am alive!!! $ Basically the scanf call has no effect. I was expecting a pause in execution to input a string, but nothing happens. Regards, Bruno Prado On Thu, Oct 1, 2020 at 5:38 PM Peter Maydell wrote: &

ARM semihosting issue

2020-10-01 Thread Bruno Prado
Hi, I was able to use stdout, stderr for output and files for both input and output in qemu-system-arm, but stdin is not working (always returns -1 from syscall). I found no information and have already checked the code for possible hints. I am on Arch Linux LTS + QEMU 5.1.0. Thanks, Bruno