RubyDirectedTester.cc (7632:acf43d6bbc18) RubyDirectedTester.cc (7823:dac01f14f20f)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109RubyDirectedTester::hitCallback(NodeID proc, Addr addr)
110{
111 DPRINTF(DirectedTest,
112 "completed request for proc: %d addr: 0x%x\n",
113 proc,
114 addr);
115
116 generator->performCallback(proc, addr);
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109RubyDirectedTester::hitCallback(NodeID proc, Addr addr)
110{
111 DPRINTF(DirectedTest,
112 "completed request for proc: %d addr: 0x%x\n",
113 proc,
114 addr);
115
116 generator->performCallback(proc, addr);
117 schedule(directedStartEvent, curTick);
117 schedule(directedStartEvent, curTick());
118}
119
120void
121RubyDirectedTester::wakeup()
122{
123 if (m_requests_completed < m_requests_to_complete) {
124 if (!generator->initiate()) {
118}
119
120void
121RubyDirectedTester::wakeup()
122{
123 if (m_requests_completed < m_requests_to_complete) {
124 if (!generator->initiate()) {
125 schedule(directedStartEvent, curTick + 1);
125 schedule(directedStartEvent, curTick() + 1);
126 }
127 } else {
128 exitSimLoop("Ruby DirectedTester completed");
129 }
130}
131
132RubyDirectedTester *
133RubyDirectedTesterParams::create()
134{
135 return new RubyDirectedTester(this);
136}
126 }
127 } else {
128 exitSimLoop("Ruby DirectedTester completed");
129 }
130}
131
132RubyDirectedTester *
133RubyDirectedTesterParams::create()
134{
135 return new RubyDirectedTester(this);
136}