Skip to content

Commit b53dc11

Browse files
committed
fix(quickemu): read "Vendor ID" for CPU vendor detection
- Change HOST_CPU_VENDOR lookup to use '^Vendor ID' when parsing /proc/cpuinfo - Ensures correct CPU vendor detection on systems that label the field as 'Vendor ID' instead of 'Vendor' Fixes #1845 Signed-off-by: Martin Wimpress <martin@wimpress.org>
1 parent 7825f33 commit b53dc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickemu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function configure_cpu() {
477477
HOST_CPU_CORES=$(get_nproc)
478478
HOST_CPU_MODEL=$(get_cpu_info '^Model name:')
479479
HOST_CPU_SOCKETS=$(get_cpu_info 'Socket')
480-
HOST_CPU_VENDOR=$(get_cpu_info 'Vendor')
480+
HOST_CPU_VENDOR=$(get_cpu_info '^Vendor ID')
481481

482482
if [ "${HOST_CPU_SOCKETS}" = "-" ]; then
483483
HOST_CPU_SOCKETS=1

0 commit comments

Comments
 (0)