dummy_checker.cc revision 14298:e1c8c253ce95
12381SN/A/*
213732Snikos.nikoleris@arm.com * Copyright (c) 2011, 2019 ARM Limited
38949Sandreas.hansson@arm.com * All rights reserved
48949Sandreas.hansson@arm.com *
58949Sandreas.hansson@arm.com * The license below extends only to copyright in the software and shall
68949Sandreas.hansson@arm.com * not be construed as granting a license to any other intellectual
78949Sandreas.hansson@arm.com * property including but not limited to intellectual property relating
88949Sandreas.hansson@arm.com * to a hardware implementation of the functionality of the software
98949Sandreas.hansson@arm.com * licensed hereunder.  You may use the software subject to the license
108949Sandreas.hansson@arm.com * terms below provided that you ensure that this notice is replicated
118949Sandreas.hansson@arm.com * unmodified and in its entirety in all distributions of the software,
128949Sandreas.hansson@arm.com * modified or unmodified, in source code or in binary form.
138949Sandreas.hansson@arm.com *
142592SN/A * Redistribution and use in source and binary forms, with or without
1510975Sdavid.hashe@amd.com * modification, are permitted provided that the following conditions are
162381SN/A * met: redistributions of source code must retain the above copyright
172381SN/A * notice, this list of conditions and the following disclaimer;
182381SN/A * redistributions in binary form must reproduce the above copyright
192381SN/A * notice, this list of conditions and the following disclaimer in the
202381SN/A * documentation and/or other materials provided with the distribution;
212381SN/A * neither the name of the copyright holders nor the names of its
222381SN/A * contributors may be used to endorse or promote products derived from
232381SN/A * this software without specific prior written permission.
242381SN/A *
252381SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
262381SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
272381SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
282381SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
292381SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
302381SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
312381SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
322381SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
332381SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
342381SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
352381SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
362381SN/A *
372381SN/A * Authors: Geoffrey Blake
382381SN/A */
392381SN/A
402665Ssaidi@eecs.umich.edu#include "cpu/dummy_checker.hh"
412665Ssaidi@eecs.umich.edu
422665Ssaidi@eecs.umich.edu#include "params/DummyChecker.hh"
432665Ssaidi@eecs.umich.edu
449031Sandreas.hansson@arm.comDummyChecker *
4512349Snikos.nikoleris@arm.comDummyCheckerParams::create()
462381SN/A{
472381SN/A    // The checker should check all instructions executed by the main
482381SN/A    // cpu and therefore any parameters for early exit don't make much
492381SN/A    // sense.
502662Sstever@eecs.umich.edu    fatal_if(max_insts_any_thread || max_insts_all_threads ||
512381SN/A             max_loads_any_thread || max_loads_all_threads ||
522381SN/A             progress_interval, "Invalid checker parameters");
532381SN/A
542381SN/A    return new DummyChecker(this);
552381SN/A}
568229Snate@binkert.org