target/i386: Add support for Zhaoxin CPU vendor identification
authorEwanHai <ewanhai-oc@zhaoxin.com>
Mon, 13 Jan 2025 07:44:10 +0000 (02:44 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Feb 2025 08:54:57 +0000 (09:54 +0100)
commit5d20aa540b6991c0dbeef933d2055e5372f52e0e
treed36f4c4b6f058e774de5015bff86c27f6fe1786c
parentaeb7969cba971472aba7a3bf1e0df1bcc1b6f44c
target/i386: Add support for Zhaoxin CPU vendor identification

Zhaoxin currently uses two vendors: "Shanghai" and "Centaurhauls".
It is important to note that the latter now belongs to Zhaoxin. Therefore,
this patch replaces CPUID_VENDOR_VIA with CPUID_VENDOR_ZHAOXIN1.

The previous CPUID_VENDOR_VIA macro was only defined but never used in
QEMU, making this change straightforward.

Additionally, the IS_ZHAOXIN_CPU macro has been added to simplify the
checks for Zhaoxin CPUs.

Signed-off-by: EwanHai <ewanhai-oc@zhaoxin.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250113074413.297793-2-ewanhai-oc@zhaoxin.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h