Hi Riku, I usually compile a hello world (echoing its arguments) with rvds2.2 or above:
#include <stdio.h> int main(int ac, char *av[]) { int i; printf("Hello world\n"); for (i=0; i<ac; i++) printf("'%s'\n", av[i]); return 0; } > armcc -o hello -L--sysv hello.c I configure qemu like this: > ./configure '--prefix=/data/project/qemu/latest' '--target-list=arm-linux-user' > gmake install ...and execute it, checking whether the execution echoes back the arguments: > /data/project/qemu/latest/bin/qemu-arm hello a "hello" "a" If you don't have an ARM compiler available, I could send you the compiled binary to test. Peter, is there another way to generate binaries using semihosting? Best regards, - Wolfgang -----Original Message----- From: riku voipio [mailto:riku.voi...@iki.fi] Sent: Friday, January 07, 2011 4:34 PM To: Peter Maydell Cc: Schildbach, Wolfgang; qemu-devel@nongnu.org; Nathan Froyd Subject: Re: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling forsemihosted executables Hi, Honestly, I have never tried ARM semihosting. Do you have some recommended test instructions? Riku On 12/23/2010 04:09 PM, Peter Maydell wrote: > Riku, did you want to pick this one up as a linux-user patch? > Otherwise it's on my list of "patches which got no comments and will > go into the next arm pull request" -- although that won't be until > early next year and I expect 0.14 will have branched by then. > > -- PMM > > On 23 December 2010 12:58, Schildbach, Wolfgang<ws...@dolby.com> wrote: >> Ping -- I have not seen any corresponding commit in the qemu master >> repository. Anthony, could you please consider this for inclusion >> into 0.14? >> >> Thanks, >> - Wolfgang >> >> >> -----Original Message----- >> From: qemu-devel-bounces+wschi=dolby....@nongnu.org >> [mailto:qemu-devel-bounces+wschi=dolby....@nongnu.org] On Behalf Of >> Peter Maydell >> Sent: Monday, December 06, 2010 4:06 PM >> To: qemu-devel@nongnu.org >> Cc: Riku Voipio; Schildbach, Wolfgang; Nathan Froyd >> Subject: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling >> forsemihosted executables >> >> This patchset fixes the commandline handling for ARM semihosted >> executables run under linux-user mode, and cleans up the resulting >> unused variable in the linux-user image_info struct. The code is all >> by Wolfgang but he is having difficulty sending properly formatted >> patches to the list so I am retransmitting them (with my Reviewed-by: signoff). >> >> Wolfgang Schildbach (2): >> Fix commandline handling for ARM semihosted executables >> Remove dead code for ARM semihosting commandline handling >> >> arm-semi.c | 79 >> +++++++++++++++++++++++++++++------------------ >> bsd-user/bsdload.c | 2 - >> bsd-user/qemu.h | 1 - >> linux-user/linuxload.c | 2 - >> linux-user/qemu.h | 1 - >> 5 files changed, 49 insertions(+), 36 deletions(-) >> >> >>