summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/AST.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-09-10 12:20:34 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-09-10 12:20:34 -0500
commit4e6f048ef0f201718ac1a24ff917fb4d42a2b181 (patch)
tree22260ebc09f7ea9c82ed842d78361e16d47736d9 /src/mem/slicc/ast/AST.py
parent0b1108c7a3a71bc994e9af00b992c2c693c65e97 (diff)
downloadgem5-4e6f048ef0f201718ac1a24ff917fb4d42a2b181.tar.xz
Ruby Slicc: remove the call to cin.get() function
If I understand correctly, this was put in place so that a debugger can be attached when the protocol aborts. While this sounds useful, it is a problem when the simulation is not being actively monitored. I think it is better to remove this.
Diffstat (limited to 'src/mem/slicc/ast/AST.py')
-rw-r--r--src/mem/slicc/ast/AST.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mem/slicc/ast/AST.py b/src/mem/slicc/ast/AST.py
index b99451019..9e3844445 100644
--- a/src/mem/slicc/ast/AST.py
+++ b/src/mem/slicc/ast/AST.py
@@ -54,14 +54,7 @@ class AST(PairContainer):
message = message % args
code = self.slicc.codeFormatter()
code('''
-char c;
-cerr << "Runtime Error at ${{self.location}}, Ruby Time: "
- << g_system_ptr->getTime() << ": "
- << $message
- << ", PID: " << getpid() << endl
- << "press return to continue." << endl;
-cin.get(c);
-abort();
+panic("Runtime Error at ${{self.location}}, Ruby Time: %d, %s.\\n",
+ g_system_ptr->getTime(), $message);
''')
-
return code