arm64: Set source for ret instruction correctly.
PATCH 1/1 arm64: Set source for ret instruction correctly.
From: "Richard W.M. Jones" <[email protected]>
Fixes https://bugs.launchpad.net/qemu/+bug/1263747
--- target-arm/translate-a64.c | 1 - 1 file changed, 1 deletion(-)
target-arm/translate-a64.c +0 -1
@@ -273,7 +273,6 @@ static void handle_br(DisasContext *s, uint32_t insn)tcg_gen_movi_i64 (cpu_reg (30 ), s->pc);break ;case 2 :/* RET */ - source =30 ;break ;case 3 :unallocated_encoding (s);
Signature · 1 line
1.8.3.1
Quoted 7 lines · Richard W.M. Jones
From: "Richard W.M. Jones" <[email protected]>
Fixes https://bugs.launchpad.net/qemu/+bug/1263747
Signed-off-by Richard W.M. Jones <[email protected]>Tested-by Richard W.M. Jones <[email protected]>---
I'm guessing this is against the SuSE tree? Probably best to say so specifically, because this code is different in mainline. CC'ing Alex who might also care about SuSE tree fixes.
Quoted 16 lines
target-arm/translate-a64.c | 1 - 1 file changed, 1 deletion(-)target-arm/translate-a64.c +0
-2@@ -273,7 +273,6 @@ static void handle_br(DisasContext *s, uint32_t insn)tcg_gen_movi_i64 (cpu_reg (30 ), s->pc);break ;case 2 :/* RET */ - source =30 ;break ;case 3 :unallocated_encoding (s); --
Quoted 2 lines
1.8.3.1
FWIW mainline's handling of this insn doesn't have this bug.
thanks
-- PMM
Quoted 1 line · Peter Maydell
FWIW mainline's handling of this insn doesn't have this bug.
OT: Is there a clear explanation of the various aarch64 trees? I noticed that upstream qemu has some files like target-arm/ translate-a64.c, but it didn't (and still doesn't) appear to work:
+ ./configure '--target-list=arm64-linux-user i386-softmmu x86_64-softmmu arm-softmmu ppc-softmmu ppc64-softmmu' '--extra-ldflags=-pie -Wl,-z,relro -Wl,-z,now' '--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIE -DPIE' --disable-werror --disable-xen --enable-kvm --enable-tpm
ERROR: Unknown target name 'arm64-linux-user'
I found the SuSE tree and it works, but the code is quite different from the upstream tree.
Rich.
Signature · 4 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Quoted 10 lines · Richard W.M. Jones
Quoted 1 line · Peter Maydell
FWIW mainline's handling of this insn doesn't have this bug.
OT: Is there a clear explanation of the various aarch64 trees? I noticed that upstream qemu has some files like target-arm/
translate-a64.c, but it didn't (and still doesn't) appear to work:+ ./configure '--target-list=arm64-linux-user i386-softmmu x86_64-softmmu arm-softmmu ppc-softmmu ppc64-softmmu' '--extra-ldflags=-pie -Wl,-z,relro -Wl,-z,now' '--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIE -DPIE' --disable-werror --disable-xen --enable-kvm --enable-tpm
ERROR: Unknown target name 'arm64-linux-user'
Basically we (Linaro) are cleaning up and upstreaming the SuSE patches (sometimes with significant rework). At the moment upstream has some code but not enough to run anything, so the target is currently disabled. I expect to have enough for integer-only binaries upstream by the end of the year [remaining patches are on-list for review], with FP and Neon following early next year.
The SuSE tree is basically "this is a working set of code that SuSE uses to build things, but don't ship it with anything, don't try to use it for any target except arm64-linux-user, it's not really supported and it will go away as soon as everything is upstream".
The other thing to note is that the official upstream name of this target is 'aarch64-linux-user' (we follow the gcc toolchain name and what the kernel reports to userspace via uname).
thanks
-- PMM