Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions tests/framework/utils_cpu_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ def get_supported_cpu_templates():

SUPPORTED_CPU_TEMPLATES = get_supported_cpu_templates()

# Custom CPU templates for Aarch64 for testing
AARCH64_CUSTOM_CPU_TEMPLATES_G2 = ["v1n1"]
AARCH64_CUSTOM_CPU_TEMPLATES_G3 = [
"aarch64_with_sve_and_pac",
"v1n1",
]


def get_supported_custom_cpu_templates():
"""
Return the list of custom CPU templates supported by the platform.
"""
# pylint:disable=too-many-return-statements
host_linux = global_props.host_linux_version_tpl

match get_cpu_vendor(), global_props.cpu_codename:
Expand All @@ -65,9 +59,11 @@ def get_supported_custom_cpu_templates():
case CpuVendor.AMD, _:
return AMD_TEMPLATES
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_N1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G2
return ["v1n1"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G3
return ["v1n1", "aarch64_with_sve_and_pac"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1:
return ["aarch64_with_sve_and_pac"]
case _:
return []

Expand Down
Loading