changeset 01202c147598 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=01202c147598
description:
ruby: Added error check for openning the ruby config file
diffstat:
1 file changed, 7 insertions(+)
src/mem/rubymem.cc | 7 +++++++
diffs (19 lines):
diff -r b5101309174d -r 01202c147598 src/mem/rubymem.cc
--- a/src/mem/rubymem.cc Wed Nov 18 13:55:58 2009 -0800
+++ b/src/mem/rubymem.cc Wed Nov 18 13:55:58 2009 -0800
@@ -58,8 +58,15 @@
ruby_clock = p->clock;
ruby_phase = p->phase;
+ DPRINTF(Ruby, "creating Ruby Memory from file %s\n",
+ p->config_file.c_str());
+
ifstream config(p->config_file.c_str());
+ if (config.good() == false) {
+ fatal("Did not successfully open %s.\n", p->config_file.c_str());
+ }
+
vector<RubyObjConf> sys_conf;
while (!config.eof()) {
char buffer[65536];
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev