cpu_dummy.hh revision 11151
11039SN/A/*
21762SN/A * Copyright (c) 2013 ARM Limited
31039SN/A * All rights reserved
41039SN/A *
51039SN/A * The license below extends only to copyright in the software and shall
61039SN/A * not be construed as granting a license to any other intellectual
71039SN/A * property including but not limited to intellectual property relating
81039SN/A * to a hardware implementation of the functionality of the software
91039SN/A * licensed hereunder.  You may use the software subject to the license
101039SN/A * terms below provided that you ensure that this notice is replicated
111039SN/A * unmodified and in its entirety in all distributions of the software,
121039SN/A * modified or unmodified, in source code or in binary form.
131039SN/A *
141039SN/A * Redistribution and use in source and binary forms, with or without
151039SN/A * modification, are permitted provided that the following conditions are
161039SN/A * met: redistributions of source code must retain the above copyright
171039SN/A * notice, this list of conditions and the following disclaimer;
181039SN/A * redistributions in binary form must reproduce the above copyright
191039SN/A * notice, this list of conditions and the following disclaimer in the
201039SN/A * documentation and/or other materials provided with the distribution;
211039SN/A * neither the name of the copyright holders nor the names of its
221039SN/A * contributors may be used to endorse or promote products derived from
231039SN/A * this software without specific prior written permission.
241039SN/A *
251039SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
261039SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
272665Ssaidi@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
282665Ssaidi@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
291039SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
301039SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
311039SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
321039SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
331039SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
342521SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
351039SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
362521SN/A *
371039SN/A * Authors: Andreas Hansson
381039SN/A */
39
40#ifndef __ARCH_NULL_CPU_DUMMY_HH__
41#define __ARCH_NULL_CPU_DUMMY_HH__
42
43#include "sim/core.hh"
44
45class BaseCPU
46{
47  public:
48    static int numSimulatedInsts() { return 0; }
49    static int numSimulatedOps() { return 0; }
50    static void wakeup(ThreadID tid) { ; }
51};
52
53#endif // __ARCH_NULL_CPU_DUMMY_HH__
54