3 #include "dummy-rocc.h"
5 REGISTER_EXTENSION(dummy
, []() { return new dummy_rocc_t
; })
6 REGISTER_EXTENSION(hwacha
, []() { return new hwacha_t
; })
8 // Static constructors want to make use of the extensions map, so we
9 // access it through a function call to guarantee initialization order.
10 std::map
<std::string
, std::function
<extension_t
*()>>& extensions()
12 static std::map
<std::string
, std::function
<extension_t
*()>> v
;