InvalidateGenerator.hh revision 11320:42ecb523c64a
12292SN/A/* 29383SAli.Saidi@ARM.com * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 37597Sminkyu.jeong@arm.com * All rights reserved. 47597Sminkyu.jeong@arm.com * 57597Sminkyu.jeong@arm.com * Redistribution and use in source and binary forms, with or without 67597Sminkyu.jeong@arm.com * modification, are permitted provided that the following conditions are 77597Sminkyu.jeong@arm.com * met: redistributions of source code must retain the above copyright 87597Sminkyu.jeong@arm.com * notice, this list of conditions and the following disclaimer; 97597Sminkyu.jeong@arm.com * redistributions in binary form must reproduce the above copyright 107597Sminkyu.jeong@arm.com * notice, this list of conditions and the following disclaimer in the 117597Sminkyu.jeong@arm.com * documentation and/or other materials provided with the distribution; 127597Sminkyu.jeong@arm.com * neither the name of the copyright holders nor the names of its 137597Sminkyu.jeong@arm.com * contributors may be used to endorse or promote products derived from 142292SN/A * this software without specific prior written permission. 152292SN/A * 162292SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172292SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182292SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192292SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202292SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212292SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222292SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232292SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242292SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252292SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262292SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272292SN/A */ 282292SN/A 292292SN/A// 302292SN/A// This Directed Generator generates GETX requests for all nodes in the 312292SN/A// system. The GETX requests are generated one at a time in round-robin fashion 322292SN/A// 0...1...2...etc. 332292SN/A// 342292SN/A 352292SN/A#ifndef __CPU_DIRECTEDTEST_INVALIDATEGENERATOR_HH__ 362292SN/A#define __CPU_DIRECTEDTEST_INVALIDATEGENERATOR_HH__ 372292SN/A 382292SN/A#include "cpu/testers/directedtest/DirectedGenerator.hh" 392689Sktlim@umich.edu#include "cpu/testers/directedtest/RubyDirectedTester.hh" 402689Sktlim@umich.edu#include "mem/protocol/InvalidateGeneratorStatus.hh" 412689Sktlim@umich.edu#include "params/InvalidateGenerator.hh" 422292SN/A 432292SN/Aclass InvalidateGenerator : public DirectedGenerator 448591Sgblack@eecs.umich.edu{ 453326Sktlim@umich.edu public: 468229Snate@binkert.org typedef InvalidateGeneratorParams Params; 476658Snate@binkert.org InvalidateGenerator(const Params *p); 488887Sgeoffrey.blake@arm.com 492907Sktlim@umich.edu ~InvalidateGenerator(); 502292SN/A 518232Snate@binkert.org bool initiate(); 528232Snate@binkert.org void performCallback(uint32_t proc, Addr address); 538232Snate@binkert.org 542722Sktlim@umich.edu private: 552669Sktlim@umich.edu InvalidateGeneratorStatus m_status; 562292SN/A Addr m_address; 572669Sktlim@umich.edu uint32_t m_active_read_node; 582678Sktlim@umich.edu uint32_t m_active_inv_node; 592678Sktlim@umich.edu uint32_t m_addr_increment_size; 608581Ssteve.reinhardt@amd.com}; 618581Ssteve.reinhardt@amd.com 622292SN/A#endif //__CPU_DIRECTEDTEST_INVALIDATEGENERATOR_HH__ 632292SN/A 642292SN/A