16145SN/A/*
26386SN/A * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
36386SN/A * All rights reserved.
46386SN/A *
56386SN/A * Redistribution and use in source and binary forms, with or without
66386SN/A * modification, are permitted provided that the following conditions are
76386SN/A * met: redistributions of source code must retain the above copyright
86386SN/A * notice, this list of conditions and the following disclaimer;
96386SN/A * redistributions in binary form must reproduce the above copyright
106386SN/A * notice, this list of conditions and the following disclaimer in the
116386SN/A * documentation and/or other materials provided with the distribution;
126386SN/A * neither the name of the copyright holders nor the names of its
136386SN/A * contributors may be used to endorse or promote products derived from
146386SN/A * this software without specific prior written permission.
156386SN/A *
166386SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
176386SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
186386SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
196386SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
206386SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
216386SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
226386SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
236386SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
246386SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
256386SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
266386SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
276386SN/A */
286145SN/A
297553SN/A#ifndef __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__
307553SN/A#define __CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__
316145SN/A
327632SBrad.Beckmann@amd.com#include "cpu/testers/directedtest/DirectedGenerator.hh"
337632SBrad.Beckmann@amd.com#include "cpu/testers/directedtest/RubyDirectedTester.hh"
347553SN/A#include "params/DirectedGenerator.hh"
357553SN/A#include "sim/sim_object.hh"
366145SN/A
3711320Ssteve.reinhardt@amd.comclass DirectedGenerator : public SimObject
387553SN/A{
397553SN/A  public:
407553SN/A    typedef DirectedGeneratorParams Params;
417553SN/A    DirectedGenerator(const Params *p);
4211320Ssteve.reinhardt@amd.com
437553SN/A    virtual ~DirectedGenerator() {}
4411320Ssteve.reinhardt@amd.com
457553SN/A    virtual bool initiate() = 0;
468655Sandreas.hansson@arm.com    virtual void performCallback(uint32_t proc, Addr address) = 0;
4711320Ssteve.reinhardt@amd.com
487553SN/A    void setDirectedTester(RubyDirectedTester* directed_tester);
4911320Ssteve.reinhardt@amd.com
507553SN/A  protected:
517553SN/A    int m_num_cpus;
528832SAli.Saidi@ARM.com    MasterID masterId;
537553SN/A    RubyDirectedTester* m_directed_tester;
546145SN/A};
556145SN/A
567553SN/A#endif //__CPU_DIRECTEDTEST_DIRECTEDGENERATOR_HH__
576145SN/A
58