All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly.
@ 2013-12-23 22:00 Richard W.M. Jones
  2013-12-23 22:17 ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Richard W.M. Jones @ 2013-12-23 22:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, matz

From: "Richard W.M. Jones" <rjones@redhat.com>

Fixes https://bugs.launchpad.net/qemu/+bug/1263747

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
---
 target-arm/translate-a64.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index 36ebb0f..29454b0 100644
--- a/target-arm/translate-a64.c
+++ b/target-arm/translate-a64.c
@@ -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);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly.
  2013-12-23 22:00 [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly Richard W.M. Jones
@ 2013-12-23 22:17 ` Peter Maydell
  2013-12-24  8:45   ` Richard W.M. Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2013-12-23 22:17 UTC (permalink / raw)
  To: Richard W.M. Jones, Alexander Graf; +Cc: Michael Matz, QEMU Developers

On 23 December 2013 22:00, Richard W.M. Jones <rjones@redhat.com> wrote:
> From: "Richard W.M. Jones" <rjones@redhat.com>
>
> Fixes https://bugs.launchpad.net/qemu/+bug/1263747
>
> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
> Tested-by: Richard W.M. Jones <rjones@redhat.com>
> ---

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.


>  target-arm/translate-a64.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
> index 36ebb0f..29454b0 100644
> --- a/target-arm/translate-a64.c
> +++ b/target-arm/translate-a64.c
> @@ -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);
> --
> 1.8.3.1
>

FWIW mainline's handling of this insn doesn't have this bug.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly.
  2013-12-23 22:17 ` Peter Maydell
@ 2013-12-24  8:45   ` Richard W.M. Jones
  2013-12-24 10:33     ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Richard W.M. Jones @ 2013-12-24  8:45 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Michael Matz, Alexander Graf, QEMU Developers

On Mon, Dec 23, 2013 at 10:17:15PM +0000, Peter Maydell wrote:
> 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.

-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly.
  2013-12-24  8:45   ` Richard W.M. Jones
@ 2013-12-24 10:33     ` Peter Maydell
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2013-12-24 10:33 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: Michael Matz, Alexander Graf, QEMU Developers

On 24 December 2013 08:45, Richard W.M. Jones <rjones@redhat.com> wrote:
> On Mon, Dec 23, 2013 at 10:17:15PM +0000, Peter Maydell wrote:
>> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-24 10:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-23 22:00 [Qemu-devel] [PATCH] arm64: Set source for ret instruction correctly Richard W.M. Jones
2013-12-23 22:17 ` Peter Maydell
2013-12-24  8:45   ` Richard W.M. Jones
2013-12-24 10:33     ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.