path: root/utils/regtools/lib/soc_desc.hpp
diff options
authorAmaury Pouly <>2014-02-09 02:07:33 +0100
committerAmaury Pouly <>2014-02-10 23:14:26 +0100
commit8358707d8276dd297655395b922560e3c65631e1 (patch)
treea83f2fda1657b9c67ced9c2cf4c337143097e913 /utils/regtools/lib/soc_desc.hpp
parent1f4f7369eebfea85b9cb74a7ecae04b05bf44d07 (diff)
hwstub/regtools/qeditor: put soc descriptors in a list instead of a vector
A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
Diffstat (limited to 'utils/regtools/lib/soc_desc.hpp')
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.hpp b/utils/regtools/lib/soc_desc.hpp
index 476ea1d242..d1a1f0cb50 100644
--- a/utils/regtools/lib/soc_desc.hpp
+++ b/utils/regtools/lib/soc_desc.hpp
@@ -23,6 +23,7 @@
#include <stdint.h>
#include <vector>
+#include <list>
#include <string>
@@ -142,6 +143,6 @@ struct soc_t
/** Parse a SoC description from a XML file, append it to <soc>. A file
* can contain multiple SoC descriptions */
-bool soc_desc_parse_xml(const std::string& filename, std::vector< soc_t >& soc);
+bool soc_desc_parse_xml(const std::string& filename, std::list< soc_t >& soc);
#endif /* __SOC_DESC__ */ \ No newline at end of file