summaryrefslogtreecommitdiff
path: root/src/mem/slicc/symbols
diff options
context:
space:
mode:
authorLisa Hsu <Lisa.Hsu@amd.com>2011-03-31 17:17:47 -0700
committerLisa Hsu <Lisa.Hsu@amd.com>2011-03-31 17:17:47 -0700
commit225e67f5310f44cc8390c77dbb2c939c58c6b46e (patch)
tree34c0d9a93a7a99039e7cb644d3402f461b7c15e5 /src/mem/slicc/symbols
parentf6a0b63d7b5d6f5c85eb3af7086b86b753911173 (diff)
downloadgem5-225e67f5310f44cc8390c77dbb2c939c58c6b46e.tar.xz
Ruby: pass Packet->Req->contextId() to Ruby.
It is useful for Ruby to understand from whence request packets came. This has all request packets going into Ruby pass the contextId value, if it exists. This supplants the old libruby proc_id value passed around in all the Messages, so I've also removed the unused unsigned proc_id; member generated by SLICC for all Message types.
Diffstat (limited to 'src/mem/slicc/symbols')
-rw-r--r--src/mem/slicc/symbols/Type.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mem/slicc/symbols/Type.py b/src/mem/slicc/symbols/Type.py
index da9ecba3a..9aea286d7 100644
--- a/src/mem/slicc/symbols/Type.py
+++ b/src/mem/slicc/symbols/Type.py
@@ -261,9 +261,6 @@ $klass ${{self.c_ident}}$parent
for dm in self.data_members.values():
code('m_${{dm.ident}} = other.m_${{dm.ident}};')
- if self.isMessage:
- code('proc_id = other.proc_id;')
-
code.dedent()
code('}')
@@ -272,9 +269,6 @@ $klass ${{self.c_ident}}$parent
params = [ 'const %s& local_%s' % (dm.type.c_ident, dm.ident) \
for dm in self.data_members.itervalues() ]
- if self.isMessage:
- params.append('const unsigned local_proc_id')
-
params = ', '.join(params)
code('${{self.c_ident}}($params)')
@@ -289,9 +283,6 @@ $klass ${{self.c_ident}}$parent
if "nextLineCallHack" in dm:
code('m_${{dm.ident}}${{dm["nextLineCallHack"]}};')
- if self.isMessage:
- code('proc_id = local_proc_id;')
-
code.dedent()
code('}')
@@ -377,9 +368,6 @@ set${{dm.ident}}(const ${{dm.type.c_ident}}& local_${{dm.ident}})
code('$const${{dm.type.c_ident}} m_${{dm.ident}}$init;')
- if self.isMessage:
- code('unsigned proc_id;')
-
code.dedent()
code('};')