qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] s390x user-mode working example


From: Thomas Huth
Subject: Re: [Qemu-discuss] s390x user-mode working example
Date: Fri, 24 Nov 2017 06:57:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 23.11.2017 22:00, Alex Kashchenko wrote:
> Hi,
> 
> I am trying to build qemu-s390x-user static binary to run a hello-world
> program cross-compiled with gcc-s390x-linux-gnu on linux_x86_64.
> 
> I am building qemu with:
> 
> ./configure --static --disable-werror --target-list=s390x-linux-user
> make
> 
> and running example with:
> 
> QEMU_STRACE=1 ./s390x-linux-user/qemu-s390x path/to/s390x-hello
> 
> I tried latest git and a number of v2.x releases without success. Can
> see either hang (on first brk call) or various errors for newer versions
> and "Illegal instruction" for older ones. Tried on ubuntu 16.04 and
> 17.10 without success.
> 
> The same steps worked for me for ppc64le hello-world.
> 
> Any help on this is highly appreciated.

How did you cross-compile your s390x binary? QEMU's CPU emulation only
fully supports the z900 so far (more support is being worked on), so you
should make sure that your program has been compiled for that CPU
architecture, i.e. add "-m64 -march=z900" to your CFLAGS. Does that help?

 Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]