On 05/03/2025 17.59, Pierrick Bouvier wrote:
On 3/5/25 07:39, Philippe Mathieu-Daudé wrote:
Introduce an API to get information specific to a binary
from the binary name (argv[0]).

Initialize it from qemu_init() on system emulation.


What we want here is more a include/qemu/target_info.h, which will allow to query the name of it, and helper for every architecture:

target_is_aarch64()
target_is_ppc64()
...

Eventually, we can add combined getters like:
target_is_64bit()
...

Naming "legacy" something that will be present in the long term is not the best move I think.

FWIW, I agree, this should rather be target_is_64bit() or something similar, like target_words_bigendian() ?

 Thomas


Reply via email to