diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-08 23:53:15 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2025-07-15 02:56:39 -0400 |
| commit | a37aec2e7d8f7191d29c700629850da5057e446b (patch) | |
| tree | c1d7346327aaa49724ff217660290a735a6452c8 /target-info.c | |
| parent | 536613be40c7005a956a52487c1fed4530d6613f (diff) | |
| download | focaccia-qemu-a37aec2e7d8f7191d29c700629850da5057e446b.tar.gz focaccia-qemu-a37aec2e7d8f7191d29c700629850da5057e446b.zip | |
qemu/target-info: Add target_endian_mode()
target_endian_mode() returns the default endianness (QAPI type) of a target. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250708215320.70426-5-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'target-info.c')
| -rw-r--r-- | target-info.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-info.c b/target-info.c index 8e29553b4e..a756c0714c 100644 --- a/target-info.c +++ b/target-info.c @@ -42,3 +42,8 @@ const char *target_machine_typename(void) { return target_info()->machine_typename; } + +EndianMode target_endian_mode(void) +{ + return target_info()->endianness; +} |