DirectedGenerator.hh revision 8655
11689SN/A/* 22329SN/A * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 31689SN/A * All rights reserved. 41689SN/A * 51689SN/A * Redistribution and use in source and binary forms, with or without 61689SN/A * modification, are permitted provided that the following conditions are 71689SN/A * met: redistributions of source code must retain the above copyright 81689SN/A * notice, this list of conditions and the following disclaimer; 91689SN/A * redistributions in binary form must reproduce the above copyright 101689SN/A * notice, this list of conditions and the following disclaimer in the 111689SN/A * documentation and/or other materials provided with the distribution; 121689SN/A * neither the name of the copyright holders nor the names of its 131689SN/A * contributors may be used to endorse or promote products derived from 141689SN/A * this software without specific prior written permission. 151689SN/A * 161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu */ 282665Ssaidi@eecs.umich.edu 292935Sksewell@umich.edu#ifndef __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 301689SN/A#define __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 311689SN/A 321060SN/A#include "cpu/testers/directedtest/DirectedGenerator.hh" 331060SN/A#include "cpu/testers/directedtest/RubyDirectedTester.hh" 343773Sgblack@eecs.umich.edu#include "params/DirectedGenerator.hh" 353773Sgblack@eecs.umich.edu#include "sim/sim_object.hh" 361858SN/A 371717SN/Aclass DirectedGenerator : public SimObject 381060SN/A{ 391061SN/A public: 404329Sktlim@umich.edu typedef DirectedGeneratorParams Params; 414329Sktlim@umich.edu DirectedGenerator(const Params *p); 424329Sktlim@umich.edu 432292SN/A virtual ~DirectedGenerator() {} 442292SN/A 452292SN/A virtual bool initiate() = 0; 462292SN/A virtual void performCallback(uint32_t proc, Addr address) = 0; 473788Sgblack@eecs.umich.edu 483798Sgblack@eecs.umich.edu void setDirectedTester(RubyDirectedTester* directed_tester); 492361SN/A 502361SN/A protected: 511060SN/A int m_num_cpus; 522292SN/A RubyDirectedTester* m_directed_tester; 532292SN/A}; 542292SN/A 552292SN/A#endif //__CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 562292SN/A 572292SN/A