Re: [Qemu-devel] Bug in s390 instruction emulation

2014-12-15 Thread Torbjörn Granlund
Paolo Bonzini writes: Something like this? diff --git a/target-s390x/mem_helper.c b/target-s390x/mem_helper.c index 5a55de8..4de3fc2 100644 --- a/target-s390x/mem_helper.c +++ b/target-s390x/mem_helper.c @@ -490,10 +490,18 @@ uint32_t HELPER(ex)(CPUS390XState *env, uint32_t cc,

Re: [Qemu-devel] Bug in s390 instruction emulation

2014-12-14 Thread Paolo Bonzini
On 13/12/2014 23:10, Torbjörn Granlund wrote: > I wrote: > > The s390 instruction emulation makes GMP fail most of its tests. > I have isolated one of the problems: > > How to reproduce: > > gcc m.c x.s > ./a.out > > Correct output on actual hardware: > > > I

Re: [Qemu-devel] Bug in s390 instruction emulation

2014-12-13 Thread Torbjörn Granlund
I wrote: The s390 instruction emulation makes GMP fail most of its tests. I have isolated one of the problems: How to reproduce: gcc m.c x.s ./a.out Correct output on actual hardware: Incorrect output using QEMU 2.2.0 rc4: 0 File m.c: #include int f

[Qemu-devel] Bug in s390 instruction emulation

2014-12-03 Thread Torbjörn Granlund
The s390 instruction emulation makes GMP fail most of its tests. I have isolated one of the problems: How to reproduce: gcc m.c x.s ./a.out Correct output on actual hardware: Incorrect output using QEMU 2.2.0 rc4: 0 File m.c: #include int foo(); int main() { printf("%x\n", foo()); re