diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2006-10-11 18:53:50 -0400 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2006-10-11 18:53:50 -0400 |
commit | 8acecfef9b0e9a1c34b338a6862a3cc38b2f490b (patch) | |
tree | 7acd4343306a5793fdcf6c2a9f4fb18118071c5a /src/sim/sim_object.hh | |
parent | 024b33a1ef6f83be634f7afe644777f070ccd692 (diff) | |
download | gem5-8acecfef9b0e9a1c34b338a6862a3cc38b2f490b.tar.xz |
since memoryMode was put into the System (from SimObject), things got broken - this fixes it so that changeToTiming/changeToAtomic works.
src/python/m5/SimObject.py:
now that setMemoryMode is a method in System, need to convert the SimObject * _ccObject into a system ptr to call setMemoryMode.
src/sim/main.cc:
need this conversion now.
src/sim/sim_object.hh:
put the enum back into SimObject.
src/sim/system.hh:
memoryMode is now a part of SimObject, need the ::'s
--HG--
extra : convert_revision : 0ade06957fa57b497798e1f50c237ca1badc821d
Diffstat (limited to 'src/sim/sim_object.hh')
-rw-r--r-- | src/sim/sim_object.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh index 38f2bdd23..32807b69d 100644 --- a/src/sim/sim_object.hh +++ b/src/sim/sim_object.hh @@ -64,6 +64,13 @@ class SimObject : public Serializable, protected StartupCallback Draining, Drained }; + + enum MemoryMode { + Invalid=0, + Atomic, + Timing + }; + private: State state; |