tsunami_cchip.hh revision 777
18968Snilay@cs.wisc.edu/* 28968Snilay@cs.wisc.edu * Copyright (c) 2003 The Regents of The University of Michigan 38968Snilay@cs.wisc.edu * All rights reserved. 48968Snilay@cs.wisc.edu * 58968Snilay@cs.wisc.edu * Redistribution and use in source and binary forms, with or without 68968Snilay@cs.wisc.edu * modification, are permitted provided that the following conditions are 78968Snilay@cs.wisc.edu * met: redistributions of source code must retain the above copyright 88968Snilay@cs.wisc.edu * notice, this list of conditions and the following disclaimer; 98968Snilay@cs.wisc.edu * redistributions in binary form must reproduce the above copyright 108968Snilay@cs.wisc.edu * notice, this list of conditions and the following disclaimer in the 118968Snilay@cs.wisc.edu * documentation and/or other materials provided with the distribution; 128968Snilay@cs.wisc.edu * neither the name of the copyright holders nor the names of its 138968Snilay@cs.wisc.edu * contributors may be used to endorse or promote products derived from 148968Snilay@cs.wisc.edu * this software without specific prior written permission. 158968Snilay@cs.wisc.edu * 168968Snilay@cs.wisc.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 178968Snilay@cs.wisc.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 188968Snilay@cs.wisc.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 198968Snilay@cs.wisc.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 208968Snilay@cs.wisc.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 218968Snilay@cs.wisc.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 228968Snilay@cs.wisc.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 238968Snilay@cs.wisc.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 248968Snilay@cs.wisc.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 258968Snilay@cs.wisc.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 268968Snilay@cs.wisc.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 278968Snilay@cs.wisc.edu */ 288968Snilay@cs.wisc.edu 298968Snilay@cs.wisc.edu/* @file 308968Snilay@cs.wisc.edu * Turbolaser system bus node (processor, memory, or IO) 318968Snilay@cs.wisc.edu */ 328968Snilay@cs.wisc.edu 338968Snilay@cs.wisc.edu#ifndef __TSUNAMI_CCHIP_HH__ 348968Snilay@cs.wisc.edu#define __TSUNAMI_CCHIP_HH__ 358968Snilay@cs.wisc.edu 369123Sandreas.hansson@arm.com#include "mem/functional_mem/mmap_device.hh" 378968Snilay@cs.wisc.edu#include "dev/tsunami.hh" 388968Snilay@cs.wisc.edu 398968Snilay@cs.wisc.edu/* 408968Snilay@cs.wisc.edu * Tsunami CChip 418968Snilay@cs.wisc.edu */ 428968Snilay@cs.wisc.educlass TsunamiCChip : public MmapDevice 438968Snilay@cs.wisc.edu{ 448968Snilay@cs.wisc.edu public: 458968Snilay@cs.wisc.edu 468968Snilay@cs.wisc.edu protected: 478968Snilay@cs.wisc.edu Tsunami *tsunami; 488968Snilay@cs.wisc.edu uint64_t dim[Tsunami::Max_CPUs]; 498968Snilay@cs.wisc.edu uint64_t dir[Tsunami::Max_CPUs]; 508968Snilay@cs.wisc.edu bool dirInterrupting[Tsunami::Max_CPUs]; 518968Snilay@cs.wisc.edu uint64_t drir; 528968Snilay@cs.wisc.edu 538968Snilay@cs.wisc.edu public: 548968Snilay@cs.wisc.edu TsunamiCChip(const std::string &name, Tsunami *t, 558968Snilay@cs.wisc.edu Addr addr, Addr mask, MemoryController *mmu); 568968Snilay@cs.wisc.edu 578968Snilay@cs.wisc.edu virtual Fault read(MemReqPtr req, uint8_t *data); 589728Sandreas.hansson@arm.com virtual Fault write(MemReqPtr req, const uint8_t *data); 599802Snilay@cs.wisc.edu 609793Sakash.bagdia@arm.com void postDRIR(uint64_t bitvector); 618968Snilay@cs.wisc.edu void clearDRIR(uint64_t bitvector); 629802Snilay@cs.wisc.edu 639802Snilay@cs.wisc.edu virtual void serialize(std::ostream &os); 649802Snilay@cs.wisc.edu virtual void unserialize(Checkpoint *cp, const std::string §ion); 659802Snilay@cs.wisc.edu 669793Sakash.bagdia@arm.com uint64_t misc; 678968Snilay@cs.wisc.edu bool RTCInterrupting; 688968Snilay@cs.wisc.edu}; 699793Sakash.bagdia@arm.com 709793Sakash.bagdia@arm.com#endif // __TSUNAMI_CCHIP_HH__ 719793Sakash.bagdia@arm.com