Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhRv5-0006Ee-5C for qemu-devel@nongnu.org; Wed, 11 Mar 2009 13:08:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhRv4-0006DK-AX for qemu-devel@nongnu.org; Wed, 11 Mar 2009 13:08:38 -0400 Received: from [199.232.76.173] (port=46584 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhRv4-0006DB-15 for qemu-devel@nongnu.org; Wed, 11 Mar 2009 13:08:38 -0400 Received: from hall.aurel32.net ([88.191.82.174]:58961) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LhRv3-0001Hj-Le for qemu-devel@nongnu.org; Wed, 11 Mar 2009 13:08:37 -0400 Received: from aurel32 by hall.aurel32.net with local (Exim 4.69) (envelope-from ) id 1LhRv2-00028g-8i for qemu-devel@nongnu.org; Wed, 11 Mar 2009 18:08:36 +0100 Date: Wed, 11 Mar 2009 18:08:36 +0100 From: Aurelien Jarno Message-ID: <20090311170836.GD32521@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Sender: Aurelien Jarno Subject: [Qemu-devel] [PATCH 0/9] tcg: reorganize bswap* functions Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, This patch series tries to reorganize a bit the bswap* TCG functions. Currently we have bswap16_i32, bswap_i32 and bswap_i64, which means that on a 64-bit target operating on 16- or 32-bit data (eg lhbrw/lwbrx on powerpc), we need first to convert the 64-bit register value to a 32-bit value, then apply bswap16_i32 and convert it back to a 64-bit register. The patches define bswap16 and bswap32 for both i32 and i64 types, as well as bswap64 for i64 type. The corresponding instructions are implemented for x86 and x86_64 backends. Best regards, Aurelien -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net