Adding CPUCore interface support
This commit introduces essential D-Bus infrastructure support for
hosting the `Item.CPUCore` D-Bus object. Additionally, it includes
getter and setter functions to enable get/set properties within the
`CPUCore` interface, such as core count and microcode.
Testing:
Unit test passed
Change-Id: I728522b34e96ee7d6609efb5746b40cf923812e8
Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
diff --git a/host-bmc/dbus/cpu_core.cpp b/host-bmc/dbus/cpu_core.cpp
new file mode 100644
index 0000000..91531ed
--- /dev/null
+++ b/host-bmc/dbus/cpu_core.cpp
@@ -0,0 +1,21 @@
+#include "cpu_core.hpp"
+
+namespace pldm
+{
+namespace dbus
+{
+
+uint32_t CPUCore::microcode() const
+{
+ return sdbusplus::xyz::openbmc_project::Inventory::Item::server::CpuCore::
+ microcode();
+}
+
+uint32_t CPUCore::microcode(uint32_t value)
+{
+ return sdbusplus::xyz::openbmc_project::Inventory::Item::server::CpuCore::
+ microcode(value);
+}
+
+} // namespace dbus
+} // namespace pldm