dummy_checker.cc revision 14298
110816SN/A/*
29288SN/A * Copyright (c) 2011, 2019 ARM Limited
39288SN/A * All rights reserved
49288SN/A *
59288SN/A * The license below extends only to copyright in the software and shall
69288SN/A * not be construed as granting a license to any other intellectual
79288SN/A * property including but not limited to intellectual property relating
89288SN/A * to a hardware implementation of the functionality of the software
99288SN/A * licensed hereunder.  You may use the software subject to the license
109288SN/A * terms below provided that you ensure that this notice is replicated
119288SN/A * unmodified and in its entirety in all distributions of the software,
129288SN/A * modified or unmodified, in source code or in binary form.
134486SN/A *
144486SN/A * Redistribution and use in source and binary forms, with or without
154486SN/A * modification, are permitted provided that the following conditions are
164486SN/A * met: redistributions of source code must retain the above copyright
174486SN/A * notice, this list of conditions and the following disclaimer;
184486SN/A * redistributions in binary form must reproduce the above copyright
194486SN/A * notice, this list of conditions and the following disclaimer in the
204486SN/A * documentation and/or other materials provided with the distribution;
214486SN/A * neither the name of the copyright holders nor the names of its
224486SN/A * contributors may be used to endorse or promote products derived from
234486SN/A * this software without specific prior written permission.
244486SN/A *
254486SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
264486SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
274486SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
284486SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
294486SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
304486SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
314486SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
324486SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
334486SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
344486SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
354486SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
364486SN/A *
374486SN/A * Authors: Geoffrey Blake
384486SN/A */
394486SN/A
4011053Sandreas.hansson@arm.com#include "cpu/dummy_checker.hh"
414486SN/A
423102SN/A#include "params/DummyChecker.hh"
438833SN/A
442826SN/ADummyChecker *
458831SN/ADummyCheckerParams::create()
469796SN/A{
471615SN/A    // The checker should check all instructions executed by the main
482826SN/A    // cpu and therefore any parameters for early exit don't make much
491366SN/A    // sense.
5011053Sandreas.hansson@arm.com    fatal_if(max_insts_any_thread || max_insts_all_threads ||
519338SN/A             max_loads_any_thread || max_loads_all_threads ||
5210816SN/A             progress_interval, "Invalid checker parameters");
5310816SN/A
5410816SN/A    return new DummyChecker(this);
5510816SN/A}
5610816SN/A