diff options
Diffstat (limited to 'src/mem/ruby/common')
-rw-r--r-- | src/mem/ruby/common/Global.cc | 1 | ||||
-rw-r--r-- | src/mem/ruby/common/Global.hh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mem/ruby/common/Global.cc b/src/mem/ruby/common/Global.cc index 407e37307..3fdbd28b6 100644 --- a/src/mem/ruby/common/Global.cc +++ b/src/mem/ruby/common/Global.cc @@ -32,3 +32,4 @@ using namespace std; RubySystem* g_system_ptr = 0; vector<map<uint32_t, AbstractController *> > g_abs_controls; +Cycles g_ruby_start; diff --git a/src/mem/ruby/common/Global.hh b/src/mem/ruby/common/Global.hh index 671f423f0..8282f5b01 100644 --- a/src/mem/ruby/common/Global.hh +++ b/src/mem/ruby/common/Global.hh @@ -33,6 +33,7 @@ #include <vector> #include "base/str.hh" +#include "base/types.hh" class RubySystem; extern RubySystem* g_system_ptr; @@ -40,5 +41,9 @@ extern RubySystem* g_system_ptr; class AbstractController; extern std::vector<std::map<uint32_t, AbstractController *> > g_abs_controls; +// A globally visible time at which the actual execution started. Meant only +// for components with in Ruby. Initialized in RubySystem::startup(). +extern Cycles g_ruby_start; + #endif // __MEM_RUBY_COMMON_GLOBAL_HH__ |