Skip to content

Commit

Permalink
Merge pull request #5816 from dhsrivas/master
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Nov 30, 2023
2 parents cbeb49a + 1559776 commit 12651f1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions avocado/utils/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ def get_revision():
return rev


def get_va_bits():
"""
Check for VA address bit size in /proc/cpuinfo
:return: VA address bit size
:rtype: str
"""
cpu_info = genio.read_file("/proc/cpuinfo")
for line in cpu_info.splitlines():
if "address sizes" in line:
return line.split()[-3].strip()
return ""


def get_arch():
"""Work out which CPU architecture we're running on."""
cpu_table = [
Expand Down

0 comments on commit 12651f1

Please sign in to comment.