From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhKAq-00047j-PY for qemu-devel@nongnu.org; Sun, 21 Sep 2008 04:20:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhKAn-00043k-9k for qemu-devel@nongnu.org; Sun, 21 Sep 2008 04:20:08 -0400 Received: from [199.232.76.173] (port=45213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhKAm-00043d-T4 for qemu-devel@nongnu.org; Sun, 21 Sep 2008 04:20:05 -0400 Received: from rv-out-0708.google.com ([209.85.198.241]:10952) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KhKAm-0005Iz-Iu for qemu-devel@nongnu.org; Sun, 21 Sep 2008 04:20:04 -0400 Received: by rv-out-0708.google.com with SMTP id f25so937749rvb.22 for ; Sun, 21 Sep 2008 01:20:00 -0700 (PDT) Message-ID: Date: Sun, 21 Sep 2008 11:20:00 +0300 From: "Blue Swirl" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] x86 MMX register access problem seen on Sparc host Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard , qemu-devel 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); 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.