cpu_dummy.hh revision 11151
110235Syasuko.eckert@amd.com/* 210235Syasuko.eckert@amd.com * Copyright (c) 2013 ARM Limited 310235Syasuko.eckert@amd.com * All rights reserved 410235Syasuko.eckert@amd.com * 510235Syasuko.eckert@amd.com * The license below extends only to copyright in the software and shall 610235Syasuko.eckert@amd.com * not be construed as granting a license to any other intellectual 710235Syasuko.eckert@amd.com * property including but not limited to intellectual property relating 810235Syasuko.eckert@amd.com * to a hardware implementation of the functionality of the software 910235Syasuko.eckert@amd.com * licensed hereunder. You may use the software subject to the license 1010235Syasuko.eckert@amd.com * terms below provided that you ensure that this notice is replicated 1110235Syasuko.eckert@amd.com * unmodified and in its entirety in all distributions of the software, 1210235Syasuko.eckert@amd.com * modified or unmodified, in source code or in binary form. 1310235Syasuko.eckert@amd.com * 1410235Syasuko.eckert@amd.com * Redistribution and use in source and binary forms, with or without 1510235Syasuko.eckert@amd.com * modification, are permitted provided that the following conditions are 1610235Syasuko.eckert@amd.com * met: redistributions of source code must retain the above copyright 1710235Syasuko.eckert@amd.com * notice, this list of conditions and the following disclaimer; 1810235Syasuko.eckert@amd.com * redistributions in binary form must reproduce the above copyright 1910235Syasuko.eckert@amd.com * notice, this list of conditions and the following disclaimer in the 2010235Syasuko.eckert@amd.com * documentation and/or other materials provided with the distribution; 2110235Syasuko.eckert@amd.com * neither the name of the copyright holders nor the names of its 2210235Syasuko.eckert@amd.com * contributors may be used to endorse or promote products derived from 2310235Syasuko.eckert@amd.com * this software without specific prior written permission. 2410235Syasuko.eckert@amd.com * 2510235Syasuko.eckert@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2610235Syasuko.eckert@amd.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2710235Syasuko.eckert@amd.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2810235Syasuko.eckert@amd.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2910235Syasuko.eckert@amd.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3010235Syasuko.eckert@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3110235Syasuko.eckert@amd.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3210235Syasuko.eckert@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3310235Syasuko.eckert@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3410235Syasuko.eckert@amd.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3510235Syasuko.eckert@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3610235Syasuko.eckert@amd.com * 3710235Syasuko.eckert@amd.com * Authors: Andreas Hansson 3810235Syasuko.eckert@amd.com */ 3910235Syasuko.eckert@amd.com 4010235Syasuko.eckert@amd.com#ifndef __ARCH_NULL_CPU_DUMMY_HH__ 4110235Syasuko.eckert@amd.com#define __ARCH_NULL_CPU_DUMMY_HH__ 4210235Syasuko.eckert@amd.com 4310235Syasuko.eckert@amd.com#include "sim/core.hh" 4410235Syasuko.eckert@amd.com 4510235Syasuko.eckert@amd.comclass BaseCPU 4610235Syasuko.eckert@amd.com{ 4710235Syasuko.eckert@amd.com public: 4810235Syasuko.eckert@amd.com static int numSimulatedInsts() { return 0; } 4910235Syasuko.eckert@amd.com static int numSimulatedOps() { return 0; } 5010235Syasuko.eckert@amd.com static void wakeup(ThreadID tid) { ; } 5110235Syasuko.eckert@amd.com}; 5210235Syasuko.eckert@amd.com 5310235Syasuko.eckert@amd.com#endif // __ARCH_NULL_CPU_DUMMY_HH__ 5410235Syasuko.eckert@amd.com