microcode_rom.hh revision 11800:54436a1784dc
110802Srene.dejong@arm.com/* 210802Srene.dejong@arm.com * Copyright (c) 2008 The Regents of The University of Michigan 310802Srene.dejong@arm.com * All rights reserved. 410802Srene.dejong@arm.com * 510802Srene.dejong@arm.com * Redistribution and use in source and binary forms, with or without 610802Srene.dejong@arm.com * modification, are permitted provided that the following conditions are 710802Srene.dejong@arm.com * met: redistributions of source code must retain the above copyright 810802Srene.dejong@arm.com * notice, this list of conditions and the following disclaimer; 910802Srene.dejong@arm.com * redistributions in binary form must reproduce the above copyright 1010802Srene.dejong@arm.com * notice, this list of conditions and the following disclaimer in the 1110802Srene.dejong@arm.com * documentation and/or other materials provided with the distribution; 1210802Srene.dejong@arm.com * neither the name of the copyright holders nor the names of its 1310802Srene.dejong@arm.com * contributors may be used to endorse or promote products derived from 1410802Srene.dejong@arm.com * this software without specific prior written permission. 1510802Srene.dejong@arm.com * 1610802Srene.dejong@arm.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1710802Srene.dejong@arm.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1810802Srene.dejong@arm.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1910802Srene.dejong@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2010802Srene.dejong@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2110802Srene.dejong@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2210802Srene.dejong@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2310802Srene.dejong@arm.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2410802Srene.dejong@arm.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2510802Srene.dejong@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2610802Srene.dejong@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2710802Srene.dejong@arm.com * 2810802Srene.dejong@arm.com * Authors: Gabe Black 2910802Srene.dejong@arm.com */ 3010802Srene.dejong@arm.com 3110802Srene.dejong@arm.com#ifndef __SIM_MICROCODE_ROM_HH__ 3210802Srene.dejong@arm.com#define __SIM_MICROCODE_ROM_HH__ 3310802Srene.dejong@arm.com 3410802Srene.dejong@arm.com/* 3510802Srene.dejong@arm.com * This is a generic stub microcode ROM ISAs can use if they don't need 3610802Srene.dejong@arm.com * anything more. 3710802Srene.dejong@arm.com */ 3810802Srene.dejong@arm.com 3910802Srene.dejong@arm.com#include <inttypes.h> 4010802Srene.dejong@arm.com 4110802Srene.dejong@arm.com#include "cpu/static_inst_fwd.hh" 4210802Srene.dejong@arm.com 4310802Srene.dejong@arm.comtypedef uint16_t MicroPC; 4410802Srene.dejong@arm.com 4510802Srene.dejong@arm.comclass MicrocodeRom 4610802Srene.dejong@arm.com{ 4710802Srene.dejong@arm.com public: 4810802Srene.dejong@arm.com StaticInstPtr fetchMicroop(MicroPC micropc, StaticInstPtr curMacroop); 4910802Srene.dejong@arm.com}; 5010802Srene.dejong@arm.com 5110802Srene.dejong@arm.com#endif // __SIM_MICROCODE_ROM_HH__ 5210802Srene.dejong@arm.com