summaryrefslogtreecommitdiff
path: root/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2015-11-13 17:30:58 -0500
committerTony Gutierrez <anthony.gutierrez@amd.com>2015-11-13 17:30:58 -0500
commitd10fac27bc940d2cdd65c40ca6e6db80371b2d3b (patch)
tree2a407e51794760a234670407c2b9b191c0dcf4de /src/mem/ruby/slicc_interface/RubySlicc_Util.hh
parent5143d480f381b6f27316646f8129bc452c11c9f8 (diff)
downloadgem5-d10fac27bc940d2cdd65c40ca6e6db80371b2d3b.tar.xz
slicc: fixes for the Address to Addr changeset (11025)
misc changes now that Address has become Addr including int to address util function
Diffstat (limited to 'src/mem/ruby/slicc_interface/RubySlicc_Util.hh')
-rw-r--r--src/mem/ruby/slicc_interface/RubySlicc_Util.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
index 4a48d3efe..55f229d20 100644
--- a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
+++ b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
@@ -65,6 +65,13 @@ addressToInt(Addr addr)
return addr;
}
+inline Addr
+intToAddress(int addr)
+{
+ assert(!(addr & 0xffffffff00000000));
+ return addr;
+}
+
inline int
mod(int val, int mod)
{