mem-ruby: int to Cycle converter
authorTiago Mück <tiago.muck@arm.com>
Wed, 27 May 2020 21:40:33 +0000 (16:40 -0500)
committerTiago Mück <tiago.muck@arm.com>
Mon, 12 Oct 2020 14:09:55 +0000 (14:09 +0000)
Change-Id: I493b16a0bdd01a4cef4891e273a376ebe9509fe8
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31266
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/protocol/RubySlicc_Util.sm
src/mem/ruby/slicc_interface/RubySlicc_Util.hh

index f509d09ad44c0787480440d3306ef2f1e847fe17..b8b005ab263ce1b711fb1278a715351f881dfe83 100644 (file)
@@ -32,6 +32,7 @@
 void error(std::string msg);
 void assert(bool condition);
 Cycles zero_time();
+Cycles intToCycles(int c);
 NodeID intToID(int nodenum);
 int IDToInt(NodeID id);
 int addressToInt(Addr addr);
index a5a18ff6d826e5b6f1660b7f69904248c316ea2f..b51b30c631127920aaac0f57050ca224b0db70fb 100644 (file)
@@ -59,6 +59,8 @@
 
 inline Cycles zero_time() { return Cycles(0); }
 
+inline Cycles intToCycles(int c) { return Cycles(c); }
+
 inline NodeID
 intToID(int nodenum)
 {