]> git.ipfire.org Git - thirdparty/qemu.git/commit
system: Extract target-specific globals to their own compilation unit
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Mar 2025 22:44:42 +0000 (23:44 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 11 Mar 2025 19:03:26 +0000 (20:03 +0100)
commit5dc4337f7908606865f48e476e36482579e1183f
treee55913558635aad8c006374abc850e74bf0bea9f
parent3a11b653a63fee0e43f4ab84b93f068b961d8fe7
system: Extract target-specific globals to their own compilation unit

We shouldn't use target specific globals for machine properties.
These ones could be desugarized, as explained in [*]. While
certainly doable, not trivial nor my priority for now. Just move
them to a different file to clarify they are *globals*, like the
generic globals residing in system/globals.c.

Since arch_init.c was introduced using the MIT license (see commit
ad96090a01d), retain the same license for the new globals-target.c
file.

[*] https://lore.kernel.org/qemu-devel/e514d6db-781d-4afe-b057-9046c70044dc@redhat.com/

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250305005225.95051-2-philmd@linaro.org>
system/arch_init.c
system/globals-target.c [new file with mode: 0644]
system/meson.build