pci: continued implementation in P2A bridge handler
Continued implementation in P2A bridge handler. The P2A handler on
configuration read() will return this information now. The information
is currently hard-coded as 0.
Change-Id: Iafdefcf1f354575fec6ee38c0983b3d40754f6f4
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pci_handler.cpp b/pci_handler.cpp
index 1bcd700..852d846 100644
--- a/pci_handler.cpp
+++ b/pci_handler.cpp
@@ -1,6 +1,7 @@
#include "pci_handler.hpp"
#include <cstdint>
+#include <cstring>
#include <vector>
namespace blobs
@@ -26,6 +27,7 @@
std::vector<std::uint8_t> bytes;
bytes.resize(sizeof(reply));
+ std::memcpy(bytes.data(), &reply, sizeof(reply));
return bytes;
}