qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Incorrect handling of PPC64 rldcl insn
@ 2013-05-06 17:00 Torbjorn Granlund
  2013-05-06 17:47 ` Alexander Graf
  0 siblings, 1 reply; 21+ messages in thread
From: Torbjorn Granlund @ 2013-05-06 17:00 UTC (permalink / raw)
  To: qemu-devel

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

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

end of thread, other threads:[~2013-05-08 10:45 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06 17:00 [Qemu-devel] Incorrect handling of PPC64 rldcl insn Torbjorn Granlund
2013-05-06 17:47 ` Alexander Graf
2013-05-06 18:13   ` Torbjorn Granlund
2013-05-06 22:14     ` Alexander Graf
2013-05-06 23:12       ` Aurelien Jarno
2013-05-07 10:27       ` [Qemu-devel] Incorrect handling of more PPC64 insns Torbjorn Granlund
2013-05-07 10:39         ` Peter Maydell
2013-05-07 11:48           ` Torbjorn Granlund
2013-05-07 11:51             ` Peter Maydell
2013-05-07 15:58         ` [Qemu-devel] Incorrect handling of more PPC64 insns (PATCH) Torbjorn Granlund
2013-05-07 17:12           ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2013-05-07 18:10             ` Torbjorn Granlund
2013-05-07 19:30               ` Torbjorn Granlund
2013-05-07 22:00                 ` Alexander Graf
2013-05-08  6:50                 ` Aurelien Jarno
2013-05-08  6:52                   ` Alexander Graf
2013-05-08  9:20                   ` Torbjorn Granlund
2013-05-08  9:32                     ` Alexander Graf
2013-05-08  9:57                       ` Alexander Graf
2013-05-08 10:07                         ` Torbjorn Granlund
2013-05-08 10:45                           ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).