diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-04 23:59:27 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-11 20:03:26 +0100 |
| commit | 44ac8eaff00735655401e7d899282875da568fa3 (patch) | |
| tree | 3011e30d995e3b3dc98e4d92e7bb5641ece8f91f /system/arch_init.c | |
| parent | 5dc4337f7908606865f48e476e36482579e1183f (diff) | |
| download | focaccia-qemu-44ac8eaff00735655401e7d899282875da568fa3.tar.gz focaccia-qemu-44ac8eaff00735655401e7d899282875da568fa3.zip | |
system: Replace arch_type global by qemu_arch_available() helper
qemu_arch_available() is a bit simpler to understand while reviewing than the undocumented arch_type variable. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250305005225.95051-5-philmd@linaro.org>
Diffstat (limited to 'system/arch_init.c')
| -rw-r--r-- | system/arch_init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/arch_init.c b/system/arch_init.c index b9147af93c..e85736884c 100644 --- a/system/arch_init.c +++ b/system/arch_init.c @@ -24,4 +24,7 @@ #include "qemu/osdep.h" #include "system/arch_init.h" -const uint32_t arch_type = QEMU_ARCH; +bool qemu_arch_available(unsigned qemu_arch_mask) +{ + return qemu_arch_mask & QEMU_ARCH; +} |