Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-13 Thread Aurelien Jarno
On Wed, Dec 09, 2009 at 04:05:22PM -0800, Richard Henderson wrote:
 
 The following patch series results in an emulator that's good enough
 to run a good bit of the GCC testsuite, dynamic linking and all.
 There are more failures than native hardware.  At first glance they
 appear to be fpu related, but I havn't investigated properly yet.
 

Thanks for the patches, I have applied all of them except the first one
(see my comment on this patch).

 
 
 Richard Henderson (7):
   alpha: Implement IMB; add placeholders for other userspace PALcalls.
   alpha: Drop bogus UNIQ initial value on Linux.
   alpha: Add binfmt entry.
   alpha: Remove bogus DO_TB_FLUSH code from translator.
   alpha: Honor the -cpu command line argument. Also change the default
 cpu to ev67.
   alpha: Enable softfloat.
   alpha: Fixes for alpha-linux syscalls.
 
  configure  |2 +-
  fpu/softfloat-specialize.h |4 +-
  fpu/softfloat.h|1 +
  hw/alpha_palcode.c |   29 ++-
  linux-user/alpha/syscall.h |  212 
 
  linux-user/elfload.c   |3 -
  linux-user/syscall.c   |  137 ++--
  qemu-binfmt-conf.sh|3 +
  target-alpha/cpu.h |   49 ++
  target-alpha/helper.c  |   77 
  target-alpha/helper.h  |2 -
  target-alpha/op_helper.c   |   46 +-
  target-alpha/translate.c   |   52 +--
  13 files changed, 544 insertions(+), 73 deletions(-)
 
 
 
 

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net




Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-13 Thread Andreas Färber

Hello,

Am 13.12.2009 um 20:46 schrieb Aurelien Jarno:


On Wed, Dec 09, 2009 at 04:05:22PM -0800, Richard Henderson wrote:


The following patch series results in an emulator that's good enough
to run a good bit of the GCC testsuite, dynamic linking and all.



There are more failures than native hardware.


;-)


At first glance they
appear to be fpu related, but I havn't investigated properly yet.



Thanks for the patches, I have applied all of them except the first  
one


I've checked the linux-user testsuite 0.3 on master:
The message Set unique value to 000120060e38 (000120060e38)  
is gone now, but `ls -l dummyfile` doesn't list the file yet.


Would this be fpu related? If there were missing syscalls or  
something, I would expect an error/warning message rather than silent  
failure.


Andreas




Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-13 Thread Richard Henderson

On 12/13/2009 12:16 PM, Andreas Färber wrote:

I've checked the linux-user testsuite 0.3 on master:
The message Set unique value to 000120060e38 (000120060e38) is
gone now, but `ls -l dummyfile` doesn't list the file yet.


Checking...

Alpha doesn't use __NR_getdents64, it uses __NR_osf_getdirentries which 
isn't implemented.



r~




Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-11 Thread Tristan Gingold

On Dec 10, 2009, at 1:05 AM, Richard Henderson wrote:

 
 The following patch series results in an emulator that's good enough
 to run a good bit of the GCC testsuite, dynamic linking and all.
 There are more failures than native hardware.  At first glance they
 appear to be fpu related, but I havn't investigated properly yet.

Richard,

just in case you weren't aware and are interested: I was able to make an es40 
emulation in qemu good enough
to start Linux.  I did this work several months ago, so it need revival.
At this time the main limitation was the absence of IOMMU abstraction in qemu.

Tristan.





Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-10 Thread Richard Henderson

On 12/09/2009 11:11 PM, Laurent Desnogues wrote:

I don't know what FPU instructions gcc emits, but QEMU doesn't
handle the rounding mode encoding.


Ah yes, GCC does make use of those.


If you're interested I started
implementing that, though it's not complete (and it didn't fix the
SPEC2k equake failure I had).


Sure, I'm interested.  Pass it along.


r~




[Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-09 Thread Richard Henderson

The following patch series results in an emulator that's good enough
to run a good bit of the GCC testsuite, dynamic linking and all.
There are more failures than native hardware.  At first glance they
appear to be fpu related, but I havn't investigated properly yet.


r~
--


Richard Henderson (7):
  alpha: Implement IMB; add placeholders for other userspace PALcalls.
  alpha: Drop bogus UNIQ initial value on Linux.
  alpha: Add binfmt entry.
  alpha: Remove bogus DO_TB_FLUSH code from translator.
  alpha: Honor the -cpu command line argument. Also change the default
cpu to ev67.
  alpha: Enable softfloat.
  alpha: Fixes for alpha-linux syscalls.

 configure  |2 +-
 fpu/softfloat-specialize.h |4 +-
 fpu/softfloat.h|1 +
 hw/alpha_palcode.c |   29 ++-
 linux-user/alpha/syscall.h |  212 
 linux-user/elfload.c   |3 -
 linux-user/syscall.c   |  137 ++--
 qemu-binfmt-conf.sh|3 +
 target-alpha/cpu.h |   49 ++
 target-alpha/helper.c  |   77 
 target-alpha/helper.h  |2 -
 target-alpha/op_helper.c   |   46 +-
 target-alpha/translate.c   |   52 +--
 13 files changed, 544 insertions(+), 73 deletions(-)





Re: [Qemu-devel] [PATCH 0/7] Improve alpha-linux userspace emulation

2009-12-09 Thread Laurent Desnogues
On Thu, Dec 10, 2009 at 1:05 AM, Richard Henderson r...@twiddle.net wrote:

 The following patch series results in an emulator that's good enough
 to run a good bit of the GCC testsuite, dynamic linking and all.
 There are more failures than native hardware.  At first glance they
 appear to be fpu related, but I havn't investigated properly yet.

I don't know what FPU instructions gcc emits, but QEMU doesn't
handle the rounding mode encoding.  If you're interested I started
implementing that, though it's not complete (and it didn't fix the
SPEC2k equake failure I had).


Laurent


 r~
 --


 Richard Henderson (7):
  alpha: Implement IMB; add placeholders for other userspace PALcalls.
  alpha: Drop bogus UNIQ initial value on Linux.
  alpha: Add binfmt entry.
  alpha: Remove bogus DO_TB_FLUSH code from translator.
  alpha: Honor the -cpu command line argument. Also change the default
    cpu to ev67.
  alpha: Enable softfloat.
  alpha: Fixes for alpha-linux syscalls.

  configure                  |    2 +-
  fpu/softfloat-specialize.h |    4 +-
  fpu/softfloat.h            |    1 +
  hw/alpha_palcode.c         |   29 ++-
  linux-user/alpha/syscall.h |  212 
 
  linux-user/elfload.c       |    3 -
  linux-user/syscall.c       |  137 ++--
  qemu-binfmt-conf.sh        |    3 +
  target-alpha/cpu.h         |   49 ++
  target-alpha/helper.c      |   77 
  target-alpha/helper.h      |    2 -
  target-alpha/op_helper.c   |   46 +-
  target-alpha/translate.c   |   52 +--
  13 files changed, 544 insertions(+), 73 deletions(-)