ruby: Added bcast msg profiling to hammer and token
This commit is contained in:
parent
1f82eb1a03
commit
a3b4b9b3e3
6 changed files with 12 additions and 10 deletions
|
@ -730,9 +730,9 @@ machine(L1Cache, "Token protocol")
|
|||
out_msg.RetryNum := L1_TBEs[address].IssueCount;
|
||||
out_msg.isLocal := true;
|
||||
if (L1_TBEs[address].IssueCount == 0) {
|
||||
out_msg.MessageSize := MessageSizeType:Request_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
} else {
|
||||
out_msg.MessageSize := MessageSizeType:Reissue_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
}
|
||||
out_msg.Prefetch := L1_TBEs[address].Prefetch;
|
||||
out_msg.AccessMode := L1_TBEs[address].AccessMode;
|
||||
|
@ -854,9 +854,9 @@ machine(L1Cache, "Token protocol")
|
|||
|
||||
out_msg.RetryNum := L1_TBEs[address].IssueCount;
|
||||
if (L1_TBEs[address].IssueCount == 0) {
|
||||
out_msg.MessageSize := MessageSizeType:Request_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
} else {
|
||||
out_msg.MessageSize := MessageSizeType:Reissue_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
}
|
||||
out_msg.Prefetch := L1_TBEs[address].Prefetch;
|
||||
out_msg.AccessMode := L1_TBEs[address].AccessMode;
|
||||
|
|
|
@ -748,7 +748,7 @@ machine(L2Cache, "Token protocol")
|
|||
|
||||
out_msg.Type := in_msg.Type;
|
||||
out_msg.isLocal := false;
|
||||
out_msg.MessageSize := MessageSizeType:Request_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
out_msg.AccessMode := in_msg.AccessMode;
|
||||
out_msg.Prefetch := in_msg.Prefetch;
|
||||
}
|
||||
|
|
|
@ -434,7 +434,7 @@ machine(Directory, "Token protocol")
|
|||
l2_select_num_bits));
|
||||
|
||||
out_msg.RetryNum := 0;
|
||||
out_msg.MessageSize := MessageSizeType:Request_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
out_msg.Prefetch := PrefetchBit:No;
|
||||
out_msg.AccessMode := AccessModeType:SupervisorMode;
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ machine(Directory, "Token protocol")
|
|||
l2_select_num_bits));
|
||||
|
||||
out_msg.RetryNum := 0;
|
||||
out_msg.MessageSize := MessageSizeType:Request_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
out_msg.Prefetch := PrefetchBit:No;
|
||||
out_msg.AccessMode := AccessModeType:SupervisorMode;
|
||||
}
|
||||
|
|
|
@ -477,7 +477,7 @@ machine(Directory, "AMD Hammer-like protocol")
|
|||
out_msg.Requestor := in_msg.Requestor;
|
||||
out_msg.Destination.broadcast(MachineType:L1Cache); // Send to all L1 caches
|
||||
out_msg.Destination.remove(in_msg.Requestor); // Don't include the original requestor
|
||||
out_msg.MessageSize := MessageSizeType:Forwarded_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -494,7 +494,7 @@ machine(Directory, "AMD Hammer-like protocol")
|
|||
//
|
||||
out_msg.Requestor := machineID;
|
||||
out_msg.Destination.broadcast(MachineType:L1Cache);
|
||||
out_msg.MessageSize := MessageSizeType:Forwarded_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -510,7 +510,7 @@ machine(Directory, "AMD Hammer-like protocol")
|
|||
//
|
||||
out_msg.Requestor := machineID;
|
||||
out_msg.Destination.broadcast(MachineType:L1Cache);
|
||||
out_msg.MessageSize := MessageSizeType:Forwarded_Control;
|
||||
out_msg.MessageSize := MessageSizeType:Broadcast_Control;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -200,6 +200,7 @@ enumeration(MessageSizeType, default="MessageSizeType_Undefined", desc="...") {
|
|||
Response_Control, desc="non-data response";
|
||||
Writeback_Data, desc="Writeback data";
|
||||
Writeback_Control, desc="Writeback control";
|
||||
Broadcast_Control, desc="Broadcast control";
|
||||
Forwarded_Control, desc="Forwarded control";
|
||||
Invalidate_Control, desc="Invalidate control";
|
||||
Unblock_Control, desc="Unblock control";
|
||||
|
|
|
@ -71,6 +71,7 @@ Network::MessageSizeType_to_int(MessageSizeType size_type)
|
|||
case MessageSizeType_Reissue_Control:
|
||||
case MessageSizeType_Response_Control:
|
||||
case MessageSizeType_Writeback_Control:
|
||||
case MessageSizeType_Broadcast_Control:
|
||||
case MessageSizeType_Forwarded_Control:
|
||||
case MessageSizeType_Invalidate_Control:
|
||||
case MessageSizeType_Unblock_Control:
|
||||
|
|
Loading…
Reference in a new issue