mem-ruby: int to Cycle converter
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
|
||||
inline Cycles zero_time() { return Cycles(0); }
|
||||
|
||||
inline Cycles intToCycles(int c) { return Cycles(c); }
|
||||
|
||||
inline NodeID
|
||||
intToID(int nodenum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user