mem_object.hh revision 2381
16145SN/A/* 28688SN/A * Copyright (c) 2002-2005 The Regents of The University of Michigan 36145SN/A * All rights reserved. 46145SN/A * 56145SN/A * Redistribution and use in source and binary forms, with or without 66145SN/A * modification, are permitted provided that the following conditions are 76145SN/A * met: redistributions of source code must retain the above copyright 86145SN/A * notice, this list of conditions and the following disclaimer; 96145SN/A * redistributions in binary form must reproduce the above copyright 106145SN/A * notice, this list of conditions and the following disclaimer in the 116145SN/A * documentation and/or other materials provided with the distribution; 126145SN/A * neither the name of the copyright holders nor the names of its 136145SN/A * contributors may be used to endorse or promote products derived from 146145SN/A * this software without specific prior written permission. 156145SN/A * 166145SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 176145SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 186145SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 196145SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 206145SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 216145SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 226145SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 236145SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 246145SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 256145SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 266145SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 276145SN/A */ 286145SN/A 2911108Sdavid.hashe@amd.com/** 3011108Sdavid.hashe@amd.com * @file 318688SN/A * Base Memory Object decleration. 328688SN/A */ 338688SN/A 348688SN/A#ifndef __MEM_MEM_OBJECT_HH__ 3510991SN/A#define __MEM_MEM_OBJECT_HH__ 368688SN/A 377056SN/A#include "sim/sim_object.hh" 389350SN/A 398937SN/A/** 409270SN/A * The base MemoryObject class, allows for an accesor function to a 417039SN/A * simobj that returns the Port. 427039SN/A */ 4310706SN/Aclass MemoryObject : public SimObject 448937SN/A{ 458688SN/A public: 466145SN/A /** Additional function to return the Port of a memory object. */ 477055SN/A virtual Port *getPort(const char *if_name) = 0; 487055SN/A}; 496285SN/A 509504SN/A#endif //__MEM_MEM_OBJECT_HH__ 519504SN/A