This helper function is very useful converting address offsets to integers
that can be used for protocol specific destination mapping.
Cycles zero_time();
NodeID intToID(int nodenum);
int IDToInt(NodeID id);
+int addressToInt(Address addr);
void procProfileCoherenceRequest(NodeID node, bool needCLB);
void dirProfileCoherenceRequest(NodeID node, bool needCLB);
int max_tokens();
return nodenum;
}
+inline int
+addressToInt(Address addr)
+{
+ assert(!(addr.getAddress() & 0xffffffff00000000));
+
+ return (int)addr.getAddress();
+}
+
// Appends an offset to an address
inline Address
setOffset(Address addr, int offset)