Philippe Mathieu-Daudé | 3d88116 | 2025-03-23 12:47:37 +0100 | [diff] [blame] | 1 | /* |
| 2 | * QEMU target info helpers |
| 3 | * |
| 4 | * Copyright (c) Linaro |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #include "qemu/osdep.h" |
| 10 | #include "qemu/target-info.h" |
| 11 | #include "qemu/target-info-impl.h" |
| 12 | |
| 13 | const char *target_name(void) |
| 14 | { |
| 15 | return target_info()->target_name; |
| 16 | } |
Philippe Mathieu-Daudé | 2850212 | 2025-03-23 22:46:34 +0100 | [diff] [blame] | 17 | |
Philippe Mathieu-Daudé | c1be135 | 2025-03-23 13:20:24 +0100 | [diff] [blame] | 18 | unsigned target_long_bits(void) |
| 19 | { |
| 20 | return target_info()->long_bits; |
| 21 | } |
| 22 | |
Philippe Mathieu-Daudé | b113dfa | 2025-04-29 20:18:03 +0200 | [diff] [blame] | 23 | const char *target_cpu_type(void) |
| 24 | { |
| 25 | return target_info()->cpu_type; |
| 26 | } |
| 27 | |
Philippe Mathieu-Daudé | 2850212 | 2025-03-23 22:46:34 +0100 | [diff] [blame] | 28 | const char *target_machine_typename(void) |
| 29 | { |
| 30 | return target_info()->machine_typename; |
| 31 | } |