summary refs log tree commit diff stats
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-04-11 20:34:17 +0200
committerThomas Huth <thuth@redhat.com>2023-04-20 11:25:32 +0200
commit24be3369ad63c3882be42dd510a45bad52816fd1 (patch)
tree105799c3d05eb1e6d670424dc909d55408d813e4 /scripts/qapi/parser.py
parentc7a6bf5d921a25bf1d59143e63b453affe6c8892 (diff)
downloadfocaccia-qemu-24be3369ad63c3882be42dd510a45bad52816fd1.tar.gz
focaccia-qemu-24be3369ad63c3882be42dd510a45bad52816fd1.zip
include/exec: Provide the tswap() functions for target independent code, too
In some cases of target independent code, it would be useful to have access
to the functions that swap endianess in case it differs between guest and
host. Thus re-implement the tswapXX() functions in a new header that can be
included separately. The check whether the swapping is needed continues to
be done at compile-time for target specific code, while it is done at
run-time in target-independent code.

Message-Id: <20230411183418.1640500-3-thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions