Add register dump to isolation data
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I02dc9ff21e538a8d6d66663bc0ecd07362a5332b
diff --git a/test/simulator/simulator.cpp b/test/simulator/simulator.cpp
index e9bd2aa..32eb31b 100644
--- a/test/simulator/simulator.cpp
+++ b/test/simulator/simulator.cpp
@@ -1,5 +1,7 @@
#include "simulator.hpp"
+#include <util/hei_includes.hpp>
+
#include <fstream> // std::ifstream
namespace libhei
@@ -77,6 +79,20 @@
IsolationData isoData{};
isolate(iv_chipList, isoData);
+ /* TODO: Currently used for debug. Eventually, we want this and the
+ * signature list written to file.
+ for (const auto& e : isoData.getRegisterDump())
+ {
+ HEI_INF("Chip: %s", (const char*)e.first.getChip());
+
+ for (const auto& r : e.second)
+ {
+ HEI_INF(" Reg: 0x%06x %d 0x%016" PRIx64, r.regId, r.regInst,
+ r.data->getFieldRight(0, 64));
+ }
+ }
+ */
+
// Get the list of signatures found in isolation.
std::vector<Signature> givenSigList = isoData.getSignatureList();