On 29/10/26 09:56, Bibo Mao wrote:
target/loongarch: Use cpu_has_msgint() and FIELD_EX32 for cpucfg
cpu_has_msgint() is more generic and can be used in TCG mode, so use it
instead of the KVM-specific feature check.
The cpucfg register is 32 bits wide; use FIELD_EX32() rather than
FIELD_EX64() when extracting its fields.
Signed-off-by: Bibo Mao <[email protected]>
---
target/loongarch/cpu.h | 6 ++++++
target/loongarch/kvm/kvm.c | 11 ++---------
target/loongarch/machine.c | 2 +-
3 files changed, 9 insertions(+), 10 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>