Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pmsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
caesr-pub
pmsi
Commits
2b5ecc15
Commit
2b5ecc15
authored
May 03, 2017
by
Anirudh Mohan Kaushik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network
parent
799a131f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gem5-stable/src/mem/ruby/network/simple/Throttle.cc
gem5-stable/src/mem/ruby/network/simple/Throttle.cc
+6
-4
No files found.
gem5-stable/src/mem/ruby/network/simple/Throttle.cc
View file @
2b5ecc15
...
...
@@ -149,7 +149,7 @@ Throttle::operateVnet(int vnet, int &bw_remaining, bool &schedule_wakeup,
MessageBuffer
*
demandQueue
=
m_in
[
2
];
if
(
!
BASELINE
)
{
if
(
slotStart
&&
(
vnet
==
6
)
&&
returnSID
()
<
7
)
{
if
(
slotStart
&&
(
vnet
==
6
)
&&
returnSID
()
<
4
)
{
setSlotType
();
bool
isWBSlot
=
getVnetToken
();
DPRINTF
(
RubyNetwork
,
"m_SID: %s, SlotOwner: %s, slotStart: %s, isWBSlot: %s, smBlock: %s vnet: %s
\n
"
,
returnSID
(),
slotOwner
,
slotStart
,
isWBSlot
,
getSharedMemStatus
(),
vnet
);
...
...
@@ -179,7 +179,7 @@ if (slotStart && (vnet == 6) && returnSID() <7) {
}
}
else
{
if
(
slotStart
&&
returnSID
()
<
7
)
{
if
(
slotStart
&&
returnSID
()
<
4
)
{
setSlotType
();
}
}
...
...
@@ -224,7 +224,7 @@ if (slotStart && returnSID() <7) {
if
(
vnet
==
6
||
vnet
==
2
)
vnetMatch
=
true
;
}
if
(
switchID
==
8
&&
SID
<
7
&&
vnetMatch
)
{
if
(
switchID
==
5
&&
SID
<
4
&&
vnetMatch
)
{
// This is for cases when the core sends a request (demand or WB) to the arbiter
if
(
slotOwner
==
SID
&&
slotStart
)
{
// This is the start of the slot of the core under analysis
...
...
@@ -312,7 +312,7 @@ if (slotStart && returnSID() <7) {
}
break
;
}
else
if
(
switchID
==
8
&&
SID
==
7
)
{
else
if
(
switchID
==
5
&&
SID
==
4
)
{
// This case is for shared memory requests/responses to the arbiter
bool
isSlotOwner
=
false
;
...
...
@@ -371,6 +371,8 @@ if (slotStart && returnSID() <7) {
int
diff
=
m_units_remaining
[
vnet
]
-
bw_remaining
;
m_units_remaining
[
vnet
]
=
max
(
0
,
diff
);
bw_remaining
=
max
(
0
,
-
diff
);
if
(
in
->
isReady
())
schedule_wakeup
=
true
;
}
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment