ARMv6 el + vfp: User Mode signals uncaught target signal 4 (Illegal instruction)
Hi,
I put together a qemu from recent svn trunk -r 5862.
when running armv6 eabi + vfp binaries in user mode emulation, i get:
qemu: uncaught target signal 4 (Illegal instruction) - exiting
running the same compiled for armv5 eabi + vfp works. I use the binaries from mojo (mojo.handhelds.org) project, they ported Ubuntu 8.04 to arm. They also have a compiled version for ARMv6 + VFP, which I wanted to try in the openSUSE Buildservice.
How do I find out whats wrong? From the source code, I would guess qemu is implemented up to ARMv7, right?
Cheers,
Martin
Maintainer + Developer OBS / opensuse.org
Quoted 10 lines · Martin Mohring
I put together a qemu from recent svn trunk -r 5862.
when running armv6 eabi + vfp binaries in user mode emulation, i get:
qemu: uncaught target signal 4 (Illegal instruction) - exiting
running the same compiled for armv5 eabi + vfp works. I use the binaries from mojo (mojo.handhelds.org) project, they ported Ubuntu 8.04 to arm. They also have a compiled version for ARMv6 + VFP, which I wanted to try in the openSUSE Buildservice.
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
Quoted 2 lines
How do I find out whats wrong? From the source code, I would guess qemu is implemented up to ARMv7, right?
Yes ARMv7 is in, including NEON.
HTH,
Laurent
Quoted 4 lines · Laurent Desnogues
Quoted 1 line
qemu: uncaught target signal 4 (Illegal instruction) - exiting
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
I've seen some other fall in this pitfall. Is there a specific reason why linux-user/main.c defaults to on arm to "arm926" instead of "any" as some other archs do?
Signature · 1 line
"rm -rf" only sounds scary if you don't have backups
Quoted 9 lines · Laurent Desnogues
Quoted 6 lines · Martin Mohring
I put together a qemu from recent svn trunk -r 5862.
when running armv6 eabi + vfp binaries in user mode emulation, i get:
qemu: uncaught target signal 4 (Illegal instruction) - exiting
Quoted 9 lines
Quoted 5 lines
running the same compiled for armv5 eabi + vfp works. I use the binaries from mojo (mojo.handhelds.org) project, they ported Ubuntu 8.04 to arm. They also have a compiled version for ARMv6 + VFP, which I wanted to try in the openSUSE Buildservice.
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
I use qemu user mode, and call qemu with host linux kernels binfmt handler. How do I specify the cpu type there? Or must I compile in the "default cpu type" somehow?
Quoted 8 lines
Quoted 4 lines
How do I find out whats wrong? From the source code, I would guess qemu is implemented up to ARMv7, right?
Yes ARMv7 is in, including NEON.
I thought that, from looking into the code. I was sure I missed something...
Martin
Quoted 9 lines · Laurent Desnogues
Quoted 6 lines · Martin Mohring
I put together a qemu from recent svn trunk -r 5862.
when running armv6 eabi + vfp binaries in user mode emulation, i get:
qemu: uncaught target signal 4 (Illegal instruction) - exiting
Quoted 9 lines
Quoted 5 lines
running the same compiled for armv5 eabi + vfp works. I use the binaries from mojo (mojo.handhelds.org) project, they ported Ubuntu 8.04 to arm. They also have a compiled version for ARMv6 + VFP, which I wanted to try in the openSUSE Buildservice.
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
I use qemu user mode, and call qemu with host linux kernels binfmt handler. How do I specify the cpu type there? Or must I compile in the "default cpu type" somehow?
Quoted 8 lines
Quoted 4 lines
How do I find out whats wrong? From the source code, I would guess qemu is implemented up to ARMv7, right?
Yes ARMv7 is in, including NEON.
I thought that, from looking into the code. I was sure I missed something...
Martin
Quoted 6 lines · Martin Mohring
Quoted 3 lines
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
I use qemu user mode, and call qemu with host linux kernels binfmt handler. How do I specify the cpu type there? Or must I compile in the "default cpu type" somehow?
You mean you can't pass command line parameters to qemu? Then follow Riku Voipio's advice and change in linux_user/main.c cpu_model = "arm926"; to cpu_model = "any";.
Laurent
Quoted 7 lines · Laurent Desnogues
Quoted 4 lines · Martin Mohring
Quoted 4 lines
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
Quoted 9 lines
Quoted 4 lines
I use qemu user mode, and call qemu with host linux kernels binfmt handler. How do I specify the cpu type there? Or must I compile in the "default cpu type" somehow?
You mean you can't pass command line parameters to qemu? Then follow Riku Voipio's advice and change in
linux_user/main.ccpu_model= "arm926"; tocpu_model= "any";.
I have seen his e-mail (too late). I am compiling my new qemu already, with new default cpu type for arm.
Martin
Quoted 7 lines · Laurent Desnogues
Quoted 4 lines · Martin Mohring
Quoted 4 lines
You should specify the CPU when launching qemu. Look at "qemu -cpu ?" output and select the right one. You probably want -cpu arm1136.
Quoted 9 lines
Quoted 4 lines
I use qemu user mode, and call qemu with host linux kernels binfmt handler. How do I specify the cpu type there? Or must I compile in the "default cpu type" somehow?
You mean you can't pass command line parameters to qemu? Then follow Riku Voipio's advice and change in
linux_user/main.ccpu_model= "arm926"; tocpu_model= "any";.
I followed your advise, and put cpu_model = "any"; in. Tnx for the fast help.
It works fine now. Do you think it would make sense to make this default for user mode / arm ?
Martin