summary refs log tree commit diff stats
path: root/cpu-target.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-17 09:31:24 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-25 17:00:42 +0200
commitb939b8e42acedc2ff35534f96fae026f8fe2efcf (patch)
tree446b6b02dd4c2c0ff03b30347980db34f4cac26e /cpu-target.c
parentd4a785ba30ce6d8acf0206f049fb4a7494e0898a (diff)
downloadfocaccia-qemu-b939b8e42acedc2ff35534f96fae026f8fe2efcf.tar.gz
focaccia-qemu-b939b8e42acedc2ff35534f96fae026f8fe2efcf.zip
exec: Rename target_words_bigendian() -> target_big_endian()
In commit 98ed8ecfc9d ("exec: introduce target_words_bigendian()
helper") target_words_bigendian() was matching the definition it
was depending on (TARGET_WORDS_BIGENDIAN). Later in commit
ee3eb3a7ce7 ("Replace TARGET_WORDS_BIGENDIAN") the definition was
renamed as TARGET_BIG_ENDIAN but we didn't update the helper.
Do it now mechanically using:

  $ sed -i -e s/target_words_bigendian/target_big_endian/g \
        $(git grep -wl target_words_bigendian)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20250417210025.68322-1-philmd@linaro.org>
Diffstat (limited to 'cpu-target.c')
-rw-r--r--cpu-target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu-target.c b/cpu-target.c
index c99d208a7c..d68cbab5da 100644
--- a/cpu-target.c
+++ b/cpu-target.c
@@ -160,8 +160,8 @@ void cpu_abort(CPUState *cpu, const char *fmt, ...)
     abort();
 }
 
-#undef target_words_bigendian
-bool target_words_bigendian(void)
+#undef target_big_endian
+bool target_big_endian(void)
 {
     return TARGET_BIG_ENDIAN;
 }