configs: Add option to override cpu vendor string
Glibc requires x86-64-v2 ISA level on newer Linux distributions (e.g. Debian Bookworm), and running applications in GEM5 will fail with "CPU ISA level is lower than required" error. It is due to glibc not detecting CPU features when the vendor string is unknown yet requiring them to run. For glibc to detect correct CPU features, this commit adds a command line option to allow user to override x86 cpu vendor string to well-known ones, e.g. GenuineIntel. It allows glibc to detect more cpu features and fixes the issue. Jira Issue: https://gem5.atlassian.net/browse/GEM5-1117 Change-Id: I22907e7b983e9aa6122543042af207e35b09badb Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62555 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -670,6 +670,13 @@ def addCommonOptions(parser):
|
||||
"that are present under any of the roots. If not given, dump all "
|
||||
"stats. ",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--override-vendor-string",
|
||||
action="store",
|
||||
type=str,
|
||||
default=None,
|
||||
help="Override vendor string returned by CPUID instruction in X86.",
|
||||
)
|
||||
|
||||
|
||||
def addSEOptions(parser):
|
||||
|
||||
Reference in New Issue
Block a user