mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
exec: Rename target_words_bigendian() -> target_big_endian()
In commit98ed8ecfc9
("exec: introduce target_words_bigendian() helper") target_words_bigendian() was matching the definition it was depending on (TARGET_WORDS_BIGENDIAN). Later in commitee3eb3a7ce
("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>
This commit is contained in:
parent
d4a785ba30
commit
b939b8e42a
8 changed files with 15 additions and 15 deletions
|
@ -45,7 +45,7 @@ static inline bool devend_big_endian(enum device_endian end)
|
|||
DEVICE_HOST_ENDIAN != DEVICE_BIG_ENDIAN);
|
||||
|
||||
if (end == DEVICE_NATIVE_ENDIAN) {
|
||||
return target_words_bigendian();
|
||||
return target_big_endian();
|
||||
}
|
||||
return end == DEVICE_BIG_ENDIAN;
|
||||
}
|
||||
|
|
|
@ -2575,7 +2575,7 @@ void memory_region_add_eventfd(MemoryRegion *mr,
|
|||
unsigned i;
|
||||
|
||||
if (size) {
|
||||
MemOp mop = (target_words_bigendian() ? MO_BE : MO_LE) | size_memop(size);
|
||||
MemOp mop = (target_big_endian() ? MO_BE : MO_LE) | size_memop(size);
|
||||
adjust_endianness(mr, &mrfd.data, mop);
|
||||
}
|
||||
memory_region_transaction_begin();
|
||||
|
@ -2611,7 +2611,7 @@ void memory_region_del_eventfd(MemoryRegion *mr,
|
|||
unsigned i;
|
||||
|
||||
if (size) {
|
||||
MemOp mop = (target_words_bigendian() ? MO_BE : MO_LE) | size_memop(size);
|
||||
MemOp mop = (target_big_endian() ? MO_BE : MO_LE) | size_memop(size);
|
||||
adjust_endianness(mr, &mrfd.data, mop);
|
||||
}
|
||||
memory_region_transaction_begin();
|
||||
|
|
|
@ -693,7 +693,7 @@ static void qtest_process_command(CharBackend *chr, gchar **words)
|
|||
|
||||
qtest_send(chr, "OK\n");
|
||||
} else if (strcmp(words[0], "endianness") == 0) {
|
||||
if (target_words_bigendian()) {
|
||||
if (target_big_endian()) {
|
||||
qtest_sendf(chr, "OK big\n");
|
||||
} else {
|
||||
qtest_sendf(chr, "OK little\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue