From 4fdd08124c494660e8952b3fb75aa53258b94579 Mon Sep 17 00:00:00 2001 From: Ben Gainey Date: Mon, 5 Dec 2022 13:42:28 +0000 Subject: [PATCH] Fix incorrect handling of Cortex-X3 / Cortex-A715 / Neoverse-V2 cores due to missing profile match --- daemon/pmus.xml | 6 +++--- daemon/xml/PmuXMLParser.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/pmus.xml b/daemon/pmus.xml index a3b5c162..d223f61b 100644 --- a/daemon/pmus.xml +++ b/daemon/pmus.xml @@ -92,7 +92,7 @@ - + @@ -101,8 +101,8 @@ - - + + diff --git a/daemon/xml/PmuXMLParser.cpp b/daemon/xml/PmuXMLParser.cpp index 80125c6b..436ad9cf 100644 --- a/daemon/xml/PmuXMLParser.cpp +++ b/daemon/xml/PmuXMLParser.cpp @@ -284,7 +284,7 @@ bool parseXml(const char * const xml, PmuXML & pmuXml) //Check whether the pmu is v8, needed when hardware is 64 bit but kernel is 32 bit. bool isV8 = false; if (profileStr != nullptr) { - if (profileStr[0] == '8') { + if ((profileStr[0] == '8') || (profileStr[0] == '9')) { isV8 = true; } }