12350SN/A/*
214298Snikos.nikoleris@arm.com * Copyright (c) 2011, 2019 ARM Limited
38733SN/A * All rights reserved
48733SN/A *
58733SN/A * The license below extends only to copyright in the software and shall
68733SN/A * not be construed as granting a license to any other intellectual
78733SN/A * property including but not limited to intellectual property relating
88733SN/A * to a hardware implementation of the functionality of the software
98733SN/A * licensed hereunder.  You may use the software subject to the license
108733SN/A * terms below provided that you ensure that this notice is replicated
118733SN/A * unmodified and in its entirety in all distributions of the software,
128733SN/A * modified or unmodified, in source code or in binary form.
138733SN/A *
142350SN/A * Copyright (c) 2006 The Regents of The University of Michigan
152350SN/A * All rights reserved.
162350SN/A *
172350SN/A * Redistribution and use in source and binary forms, with or without
182350SN/A * modification, are permitted provided that the following conditions are
192350SN/A * met: redistributions of source code must retain the above copyright
202350SN/A * notice, this list of conditions and the following disclaimer;
212350SN/A * redistributions in binary form must reproduce the above copyright
222350SN/A * notice, this list of conditions and the following disclaimer in the
232350SN/A * documentation and/or other materials provided with the distribution;
242350SN/A * neither the name of the copyright holders nor the names of its
252350SN/A * contributors may be used to endorse or promote products derived from
262350SN/A * this software without specific prior written permission.
272350SN/A *
282350SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
292350SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
302350SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
312350SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
322350SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
332350SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
342350SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
352350SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
362350SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
372350SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
382350SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
392689SN/A *
402689SN/A * Authors: Kevin Lim
412350SN/A */
422315SN/A
4311793Sbrandon.potter@amd.com#include "cpu/o3/checker.hh"
4411793Sbrandon.potter@amd.com
452765SN/A#include "cpu/checker/cpu_impl.hh"
464762SN/A#include "params/O3Checker.hh"
472315SN/A
482765SN/Atemplate
498733SN/Aclass Checker<O3CPUImpl>;
502765SN/A
514762SN/AO3Checker *
524762SN/AO3CheckerParams::create()
532315SN/A{
5414298Snikos.nikoleris@arm.com    // The checker should check all instructions executed by the main
5514298Snikos.nikoleris@arm.com    // cpu and therefore any parameters for early exit don't make much
5614298Snikos.nikoleris@arm.com    // sense.
5714298Snikos.nikoleris@arm.com    fatal_if(max_insts_any_thread || max_insts_all_threads ||
5814298Snikos.nikoleris@arm.com             max_loads_any_thread || max_loads_all_threads ||
5914298Snikos.nikoleris@arm.com             progress_interval, "Invalid checker parameters");
602315SN/A
6114298Snikos.nikoleris@arm.com    return new O3Checker(this);
622315SN/A}
63