Skip to content

boot-qemu.sh: Do not set '-cpu' for 32-bit x86#56

Merged
msfjarvis merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:no-cpu-flag-for-x86
Mar 11, 2022
Merged

boot-qemu.sh: Do not set '-cpu' for 32-bit x86#56
msfjarvis merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:no-cpu-flag-for-x86

Conversation

@nathanchance

Copy link
Copy Markdown
Member

This causes warnings when using TCG (i.e. no KVM):

qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

The '-cpu' flag was added to support using prebuilt GCC toolchains in
Buildroot in commit 344ff00 ("boot-qemu.sh: Use Nehalem for non-KVM boot
on x86_64") but I forgot that this block applies to both 32-bit and
64-bit x86.

Given that Nehalem is a 64-bit microarchitecture, this flag should only
be supplied when booting an x86_64 kernel, which removes the warning for
-a x86.

This causes warnings when using TCG (i.e. no KVM):

qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

The '-cpu' flag was added to support using prebuilt GCC toolchains in
Buildroot in commit 344ff00 ("boot-qemu.sh: Use Nehalem for non-KVM boot
on x86_64") but I forgot that this block applies to both 32-bit and
64-bit x86.

Given that Nehalem is a 64-bit microarchitecture, this flag should only
be supplied when booting an x86_64 kernel, which removes the warning for
"-a x86".

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@msfjarvis msfjarvis merged commit b9a166a into ClangBuiltLinux:main Mar 11, 2022
@nathanchance nathanchance deleted the no-cpu-flag-for-x86 branch March 12, 2022 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants