diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:57 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:57 -0800 |
commit | b7cc66af311923610d612463d401447fb814f258 (patch) | |
tree | 9919c58d8166d2efbe9f4b9622b13f832edc1e4e /src/mem/rubymem.cc | |
parent | 5492f71755d71ba47f3510e51510b1bbe96b743a (diff) | |
download | gem5-b7cc66af311923610d612463d401447fb814f258.tar.xz |
ruby: Ruby destruction fix.
Diffstat (limited to 'src/mem/rubymem.cc')
-rw-r--r-- | src/mem/rubymem.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mem/rubymem.cc b/src/mem/rubymem.cc index 2fb529e12..14b2048a0 100644 --- a/src/mem/rubymem.cc +++ b/src/mem/rubymem.cc @@ -60,7 +60,7 @@ RubyMemory::RubyMemory(const Params *p) vector<RubyObjConf> sys_conf; while (!config.eof()) { - char buffer[4096]; + char buffer[65536]; config.getline(buffer, sizeof(buffer)); string line = buffer; if (line.empty()) @@ -119,8 +119,8 @@ RubyMemory::init() } //Print stats at exit - RubyExitCallback* rc = new RubyExitCallback(this); - registerExitCallback(rc); + rubyExitCB = new RubyExitCallback(this); + registerExitCallback(rubyExitCB); //Sched RubyEvent, automatically reschedules to advance ruby cycles rubyTickEvent = new RubyEvent(this); @@ -138,6 +138,7 @@ RubyMemory::tick() RubyMemory::~RubyMemory() { + delete g_system_ptr; } void |