mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-19 04:22:22 +01:00
arm64: phytium: Add CPU Implementer Phytium
This patch adds 0x70 check for phytium implementer id in function parse_cpu_details. Also adds that Phytium Soc is not vulnerable to variant 3/3a
This commit is contained in:
parent
4ec3154be0
commit
6d35e780f4
@ -467,6 +467,10 @@ is_cpu_vulnerable()
|
|||||||
variant3=immune
|
variant3=immune
|
||||||
variant3a=immune
|
variant3a=immune
|
||||||
variantl1tf=immune
|
variantl1tf=immune
|
||||||
|
elif [ "$cpu_vendor" = PHYTIUM ]; then
|
||||||
|
variant3=immune
|
||||||
|
variant3a=immune
|
||||||
|
variantl1tf=immune
|
||||||
elif [ "$cpu_vendor" = ARM ]; then
|
elif [ "$cpu_vendor" = ARM ]; then
|
||||||
# ARM
|
# ARM
|
||||||
# reference: https://developer.arm.com/support/security-update
|
# reference: https://developer.arm.com/support/security-update
|
||||||
@ -688,6 +692,8 @@ is_cpu_mds_free()
|
|||||||
return 0
|
return 0
|
||||||
elif [ "$cpu_vendor" = CAVIUM ]; then
|
elif [ "$cpu_vendor" = CAVIUM ]; then
|
||||||
return 0
|
return 0
|
||||||
|
elif [ "$cpu_vendor" = PHYTIUM ]; then
|
||||||
|
return 0
|
||||||
elif [ "$cpu_vendor" = ARM ]; then
|
elif [ "$cpu_vendor" = ARM ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@ -1572,6 +1578,8 @@ parse_cpu_details()
|
|||||||
|
|
||||||
elif grep -qi 'CPU implementer[[:space:]]*:[[:space:]]*0x43' "$procfs/cpuinfo"; then
|
elif grep -qi 'CPU implementer[[:space:]]*:[[:space:]]*0x43' "$procfs/cpuinfo"; then
|
||||||
cpu_vendor='CAVIUM'
|
cpu_vendor='CAVIUM'
|
||||||
|
elif grep -qi 'CPU implementer[[:space:]]*:[[:space:]]*0x70' "$procfs/cpuinfo"; then
|
||||||
|
cpu_vendor='PHYTIUM'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cpu_family=$( grep '^cpu family' "$procfs/cpuinfo" | awk '{print $4}' | grep -E '^[0-9]+$' | head -1)
|
cpu_family=$( grep '^cpu family' "$procfs/cpuinfo" | awk '{print $4}' | grep -E '^[0-9]+$' | head -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user