aboutsummaryrefslogtreecommitdiff
path: root/scripts/feature_to_c.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-09 12:35:04 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-07 12:13:27 +0100
commita9e445df545158e3d6e3239f10c2e88d8119fdd1 (patch)
tree38d0977c43777a6a1376f56c6fa543392fd3f1b3 /scripts/feature_to_c.py
parent82b641d6261a58d9fba5a6ce786e7d58a8876e25 (diff)
downloadqemu-a9e445df545158e3d6e3239f10c2e88d8119fdd1.zip
qemu-a9e445df545158e3d6e3239f10c2e88d8119fdd1.tar.gz
qemu-a9e445df545158e3d6e3239f10c2e88d8119fdd1.tar.bz2
target/i386/hvf: Use env_archcpu() in simulate_[rdmsr/wrmsr]()
When CPUArchState* is available (here CPUX86State*), we can use the fast env_archcpu() macro to get ArchCPU* (here X86CPU*). The QOM cast X86_CPU() macro will be slower when building with --enable-qom-cast-debug. Pass CPUX86State* as argument to simulate_rdmsr / simulate_wrmsr instead of a CPUState* to avoid an extra cast. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Roman Bolshakov <roman@roolebo.dev> Tested-by: Roman Bolshakov <roman@roolebo.dev> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20231009110239.66778-7-philmd@linaro.org>
Diffstat (limited to 'scripts/feature_to_c.py')
0 files changed, 0 insertions, 0 deletions