qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 0/9] tcg: reorganize bswap* functions


From: Aurelien Jarno
Subject: [Qemu-devel] [PATCH 0/9] tcg: reorganize bswap* functions
Date: Wed, 11 Mar 2009 18:08:36 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

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
address@hidden                 http://www.aurel32.net




reply via email to

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