diff options
author | 2023-09-07 13:35:00 +0200 | |
---|---|---|
committer | 2023-09-08 13:08:52 +0300 | |
commit | ded625e7aa6a7f3173a22657f7dc0e9ab3d8fa3b (patch) | |
tree | 21c63bb1e087b0a4aa1cc1e6c4e6f25ef84c68e4 /scripts/qapi/source.py | |
parent | accel/tcg: Fix typo in translator_io_start() description (diff) | |
download | qemu-ded625e7aa6a7f3173a22657f7dc0e9ab3d8fa3b.tar.xz qemu-ded625e7aa6a7f3173a22657f7dc0e9ab3d8fa3b.zip |
trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value
TARGET_BIG_ENDIAN is *always* defined, either as 0 for little endian
targets or as 1 for big endian targets. So we can use this as a value
directly in places that need such a 0 or 1 for some reason, instead
of taking a detour through an additional local variable or something
similar.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions