summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/PeekStatementAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/PeekStatementAST.py')
-rw-r--r--src/mem/slicc/ast/PeekStatementAST.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/slicc/ast/PeekStatementAST.py b/src/mem/slicc/ast/PeekStatementAST.py
index 18244f507..cc3091c8a 100644
--- a/src/mem/slicc/ast/PeekStatementAST.py
+++ b/src/mem/slicc/ast/PeekStatementAST.py
@@ -77,6 +77,14 @@ class PeekStatementAST(StatementAST):
}
''')
+ if self.pairs.has_key("wake_up"):
+ address_field = self.pairs['wake_up']
+ code('''
+ if (m_waiting_buffers.count(in_msg_ptr->m_$address_field) > 0) {
+ wakeUpBuffers(in_msg_ptr->m_$address_field);
+ }
+ ''')
+
# The other statements
self.statements.generate(code, return_type)
self.symtab.popFrame()