Read CPU IDs from FDT in tests, so they work under FVP.
Bug: 117551008
Change-Id: I14e24e86631f9e7c16ad69decf676b343ac9f252
diff --git a/test/hftest/inc/hftest_impl.h b/test/hftest/inc/hftest_impl.h
index 13b49f1..64eeac4 100644
--- a/test/hftest/inc/hftest_impl.h
+++ b/test/hftest/inc/hftest_impl.h
@@ -18,6 +18,7 @@
#include <stdnoreturn.h>
+#include "hf/fdt.h"
#include "hf/spci.h"
#include "hf/std.h"
@@ -133,6 +134,9 @@
uint32_t failures;
noreturn void (*abort)(void);
+ /* These are used in primary VMs. */
+ const struct fdt_header *fdt;
+
/* These are used in services. */
struct spci_message *send;
struct spci_message *recv;