tcg: reorganize bswap* functions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | tcg: rename bswap_i32/i64 functionstarget-arm/ target-i386/ target-m68k/ +10 more | +47 | 0 replies | |
| 2/9 | tcg: allow bswap16_i32 to be implemented by TCG backendstcg/ | +3 | 0 replies | |
| 3/9 | tcg: add bswap16_i64 and bswap32_i64 TCG opstcg/ tcg/ | +64 | 0 replies | |
| 4/9 | tcg: add _tl aliases to bswap16/32/64 TCG opstcg/ | +5 | 0 replies | |
| 5/9 | tcg: update README wrt recent bswap changestcg/ | +7 | 0 replies | |
| 6/9 | target-ppc: use the new bswap* TCG opstarget-ppc/ | +15 | 0 replies | |
| 7/9 | target-i386: use the new bswap* TCG opstarget-i386/ | +2 | 0 replies | |
| 8/9 | tcg/x86: add bswap16_i32 opstcg/ tcg/ | +7 | 0 replies | |
| 9/9 | tcg/x86_64: add bswap16_i{32, 64} and bswap32_i64 opstcg/ tcg/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/9] tcg: reorganize bswap* functions
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
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net