Deleted Added
sdiff udiff text old ( 11990:5fad911cc326 ) new ( 13662:3e072654ca86 )
full compact
1/*
2 * Copyright (c) 2017 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 76 unchanged lines hidden (view full) ---

85 public:
86 EmbeddedPyBind(const char *_name,
87 void (*init_func)(pybind11::module &),
88 const char *_base);
89
90 EmbeddedPyBind(const char *_name,
91 void (*init_func)(pybind11::module &));
92
93#if PY_MAJOR_VERSION >= 3
94 static PyObject *initAll();
95#else
96 static void initAll();
97#endif
98
99 private:
100 void (*initFunc)(pybind11::module &);
101
102 bool depsReady() const;
103 void init(pybind11::module &m);
104
105 bool registered;
106 const std::string name;
107 const std::string base;
108
109 static std::map<std::string, EmbeddedPyBind *> &getMap();
110};
111
112void registerNativeModules();
113
114int m5Main(int argc, char **argv);
115
116#endif // __SIM_INIT_HH__