[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Incorrect handling of PPC64 rldcl insn
From: |
Torbjorn Granlund |
Subject: |
[Qemu-devel] Incorrect handling of PPC64 rldcl insn |
Date: |
Mon, 06 May 2013 19:00:23 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) |
I could finally make Debian GNU/Linux install and run under
qemu-system-ppc64. I used Debian 7.0.0 and qemu from the main git repo,
updated a few days ago.
While Debian runs well and not too slowly, GMP fails badly under all
ABIs, and in many different ways. I have isolated the first problem.
Test case:
#include <stdio.h>
int
main ()
{
unsigned long r;
asm ("rldcl\t%0, %1, %2, 0" : "=r" (r) : "r" (0xcafebabedeadbeeful), "r"
(16));
printf ("%lx\n", r);
return 0;
}
Expected output:
babedeadbeefcafe
Output under qemu:
0
I have single stepped in gdb to determine that it is indeed rldcl that
misbehaves.
--
Torbjörn
- [Qemu-devel] Incorrect handling of PPC64 rldcl insn,
Torbjorn Granlund <=
- Re: [Qemu-devel] Incorrect handling of PPC64 rldcl insn, Alexander Graf, 2013/05/06
- Re: [Qemu-devel] Incorrect handling of PPC64 rldcl insn, Torbjorn Granlund, 2013/05/06
- Re: [Qemu-devel] Incorrect handling of PPC64 rldcl insn, Alexander Graf, 2013/05/06
- Re: [Qemu-devel] Incorrect handling of PPC64 rldcl insn, Aurelien Jarno, 2013/05/06
- [Qemu-devel] Incorrect handling of more PPC64 insns, Torbjorn Granlund, 2013/05/07
- Re: [Qemu-devel] Incorrect handling of more PPC64 insns, Peter Maydell, 2013/05/07
- Re: [Qemu-devel] Incorrect handling of more PPC64 insns, Torbjorn Granlund, 2013/05/07
- Re: [Qemu-devel] Incorrect handling of more PPC64 insns, Peter Maydell, 2013/05/07
- Re: [Qemu-devel] Incorrect handling of more PPC64 insns (PATCH), Torbjorn Granlund, 2013/05/07
- Re: [Qemu-devel] [Qemu-ppc] Incorrect handling of more PPC64 insns (PATCH), Alexander Graf, 2013/05/07