Processor: add support for Ampere CPUs
Add support for Ampere CPUs to processor.hpp. They use the ARM
architecture and the ARM-A64 (AArch64) instruction set.
Change-Id: I49ebe574928cf71e4efa07a7448686b13690bde5
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
diff --git a/redfish-core/lib/processor.hpp b/redfish-core/lib/processor.hpp
index 9f41b8d..feb2236 100644
--- a/redfish-core/lib/processor.hpp
+++ b/redfish-core/lib/processor.hpp
@@ -411,6 +411,11 @@
asyncResp->res.jsonValue["ProcessorArchitecture"] = "Power";
asyncResp->res.jsonValue["InstructionSet"] = "PowerISA";
}
+ else if (manufacturer->find("Ampere") != std::string::npos)
+ {
+ asyncResp->res.jsonValue["ProcessorArchitecture"] = "ARM";
+ asyncResp->res.jsonValue["InstructionSet"] = "ARM-A64";
+ }
}
if (partNumber != nullptr)