qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] x86 MMX register access problem seen on Sparc host


From: malc
Subject: Re: [Qemu-devel] x86 MMX register access problem seen on Sparc host
Date: Mon, 22 Sep 2008 00:49:06 +0400 (MSD)

On Sun, 21 Sep 2008, Blue Swirl wrote:

Hi,

I get these warnings when compiling i386 targets on Sparc host using a
gcc 4.3 series compiler:
/src/qemu/target-i386/ops_sse.h: In function 'helper_pmovmskb_mmx':
/src/qemu/target-i386/ops_sse.h:982: warning: array subscript is above
array bounds
etc.

The first line is the following:
   val |= (s->XMM_B(0) >> 7);

All the lines before #if SHIFT == 1 should be MMX_B really.


In cpu.h, the macro is defined on big endian host as
#define XMM_B(n) _b[15 - (n)]

But the type of Reg argument is MMXReg for pmovmskb_mmx and then the
_b array has only 8 items.



--
mailto:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]