aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api-macros/src
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-02 16:48:24 +0200
committerRichard Henderson <richard.henderson@linaro.org>2025-04-23 15:07:32 -0700
commitd1aa577228e6eeda3589c6480d994ee4bd0d23e5 (patch)
tree25d67216d786bb75fcab7a6c89ad7a62411205d1 /rust/qemu-api-macros/src
parent61fc4c2bfaee8f4da75ce217911f103da7a8a69e (diff)
downloadqemu-d1aa577228e6eeda3589c6480d994ee4bd0d23e5.zip
qemu-d1aa577228e6eeda3589c6480d994ee4bd0d23e5.tar.gz
qemu-d1aa577228e6eeda3589c6480d994ee4bd0d23e5.tar.bz2
tcg: Convert TCGState::mttcg_enabled to TriState
Use the OnOffAuto type as 3-state. Since the TCGState instance is zero-initialized, the mttcg_enabled is initialzed as AUTO (ON_OFF_AUTO_AUTO). In tcg_init_machine(), if mttcg_enabled is still AUTO, set a default value (effectively inlining the default_mttcg_enabled() method content). In the tcg_get_thread() getter, consider AUTO / OFF states as "single", otherwise ON is "multi". Reviewed-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions