DirectedGenerator.hh revision 7553
15222Sksewell@umich.edu/* 25254Sksewell@umich.edu * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 35254Sksewell@umich.edu * All rights reserved. 45222Sksewell@umich.edu * 55254Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without 65254Sksewell@umich.edu * modification, are permitted provided that the following conditions are 75254Sksewell@umich.edu * met: redistributions of source code must retain the above copyright 85254Sksewell@umich.edu * notice, this list of conditions and the following disclaimer; 95254Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright 105254Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the 115254Sksewell@umich.edu * documentation and/or other materials provided with the distribution; 125254Sksewell@umich.edu * neither the name of the copyright holders nor the names of its 135254Sksewell@umich.edu * contributors may be used to endorse or promote products derived from 145254Sksewell@umich.edu * this software without specific prior written permission. 155222Sksewell@umich.edu * 165254Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 175254Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 185254Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 195254Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 205254Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 215254Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 225254Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235254Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245254Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255254Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 265254Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275222Sksewell@umich.edu */ 285254Sksewell@umich.edu 295254Sksewell@umich.edu#ifndef __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 305254Sksewell@umich.edu#define __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 315222Sksewell@umich.edu 325222Sksewell@umich.edu#include "cpu/directedtest/DirectedGenerator.hh" 335222Sksewell@umich.edu#include "cpu/directedtest/RubyDirectedTester.hh" 345222Sksewell@umich.edu#include "params/DirectedGenerator.hh" 355222Sksewell@umich.edu#include "sim/sim_object.hh" 365222Sksewell@umich.edu 375567Snate@binkert.orgclass DirectedGenerator : public SimObject 385222Sksewell@umich.edu{ 395222Sksewell@umich.edu public: 405222Sksewell@umich.edu typedef DirectedGeneratorParams Params; 415222Sksewell@umich.edu DirectedGenerator(const Params *p); 425222Sksewell@umich.edu 435222Sksewell@umich.edu virtual ~DirectedGenerator() {} 445222Sksewell@umich.edu 455222Sksewell@umich.edu virtual bool initiate() = 0; 465222Sksewell@umich.edu virtual void performCallback(uint proc, Addr address) = 0; 475222Sksewell@umich.edu 485222Sksewell@umich.edu void setDirectedTester(RubyDirectedTester* directed_tester); 49 50 protected: 51 int m_num_cpus; 52 RubyDirectedTester* m_directed_tester; 53}; 54 55#endif //__CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__ 56 57