Re: [Qemu-devel] ARM/system mode/stdin

2010-06-21 Thread Christophe LYON
On 18.06.2010 18:52, Paul Brook wrote: $ qemu-system-arm -semihosting -cpu cortex-a9 -nographic -kernel ./input.exe -nographic implies -monitor stdio -serial stdio. Don't do that if you want to access stdio via semihosting. Indeed, using either -monitor null -serial none -nographic or -monit

Re: [Qemu-devel] ARM/system mode/stdin

2010-06-18 Thread Paul Brook
> $ qemu-system-arm -semihosting -cpu cortex-a9 -nographic -kernel > ./input.exe -nographic implies -monitor stdio -serial stdio. Don't do that if you want to access stdio via semihosting. Paul

Re: [Qemu-devel] ARM/system mode/stdin

2010-06-16 Thread Christophe LYON
Hi all, After more investigation, I am wondering whether there is a conflict between 2 entities reading for stdin: - one is initialized by qemu_chr_open_stdio() (in qemu-char.c) - the 2nd one is the handling of SYS_READ in arm-semi.c After some debug/tracing, I have noticed that a few chars a

[Qemu-devel] ARM/system mode/stdin

2010-06-14 Thread Christophe LYON
Hello, I am trying to use qemu-system-arm (0.12.3) to execute an ARM bare machine program (not a Linux kernel), and I have some trouble when the program in question tries to read from stdin. The program does use ARM semihosting to communicate with the host. Here is the sample code: =