summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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