changeset 6f67329c0091 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=6f67329c0091
description:
inorder: don't overuse getLatency()
resources don't need to call getLatency because the latency is already
a member
in the class. If there is some type of special case where different
instructions
impose a different latency inside a resource then we can revisit this
and
add getLatency() back in
diffstat:
src/cpu/inorder/resource.cc | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (16 lines):
diff -r bcb70863827d -r 6f67329c0091 src/cpu/inorder/resource.cc
--- a/src/cpu/inorder/resource.cc Fri Feb 18 14:29:31 2011 -0500
+++ b/src/cpu/inorder/resource.cc Fri Feb 18 14:29:40 2011 -0500
@@ -325,10 +325,8 @@
void
Resource::scheduleExecution(int slot_num)
{
- int res_latency = getLatency(slot_num);
-
- if (res_latency >= 1) {
- scheduleEvent(slot_num, res_latency);
+ if (latency >= 1) {
+ scheduleEvent(slot_num, latency);
} else {
execute(slot_num);
}
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev