noncaching.hh revision 13113
15795Ssaidi@eecs.umich.edu/*
25795Ssaidi@eecs.umich.edu * Copyright (c) 2012, 2018 ARM Limited
35795Ssaidi@eecs.umich.edu * All rights reserved.
45795Ssaidi@eecs.umich.edu *
55795Ssaidi@eecs.umich.edu * The license below extends only to copyright in the software and shall
65795Ssaidi@eecs.umich.edu * not be construed as granting a license to any other intellectual
75795Ssaidi@eecs.umich.edu * property including but not limited to intellectual property relating
85795Ssaidi@eecs.umich.edu * to a hardware implementation of the functionality of the software
95795Ssaidi@eecs.umich.edu * licensed hereunder.  You may use the software subject to the license
105795Ssaidi@eecs.umich.edu * terms below provided that you ensure that this notice is replicated
115795Ssaidi@eecs.umich.edu * unmodified and in its entirety in all distributions of the software,
125795Ssaidi@eecs.umich.edu * modified or unmodified, in source code or in binary form.
135795Ssaidi@eecs.umich.edu *
145795Ssaidi@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
155795Ssaidi@eecs.umich.edu * modification, are permitted provided that the following conditions are
165795Ssaidi@eecs.umich.edu * met: redistributions of source code must retain the above copyright
175795Ssaidi@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
185795Ssaidi@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
195795Ssaidi@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
205795Ssaidi@eecs.umich.edu * documentation and/or other materials provided with the distribution;
215795Ssaidi@eecs.umich.edu * neither the name of the copyright holders nor the names of its
225795Ssaidi@eecs.umich.edu * contributors may be used to endorse or promote products derived from
235795Ssaidi@eecs.umich.edu * this software without specific prior written permission.
245795Ssaidi@eecs.umich.edu *
255795Ssaidi@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
265795Ssaidi@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
275795Ssaidi@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
285795Ssaidi@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
295795Ssaidi@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
305795Ssaidi@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
315795Ssaidi@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3211793Sbrandon.potter@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3311793Sbrandon.potter@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
348229Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
355795Ssaidi@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
365795Ssaidi@eecs.umich.edu *
379143Ssteve.reinhardt@amd.com * Authors: Andreas Sandberg
389143Ssteve.reinhardt@amd.com */
395795Ssaidi@eecs.umich.edu
409143Ssteve.reinhardt@amd.com#ifndef __CPU_SIMPLE_NONCACHING_HH__
415795Ssaidi@eecs.umich.edu#define __CPU_SIMPLE_NONCACHING_HH__
425795Ssaidi@eecs.umich.edu
435795Ssaidi@eecs.umich.edu#include "cpu/simple/atomic.hh"
445795Ssaidi@eecs.umich.edu#include "params/NonCachingSimpleCPU.hh"
455795Ssaidi@eecs.umich.edu
465795Ssaidi@eecs.umich.edu/**
47 * The NonCachingSimpleCPU is an AtomicSimpleCPU using the
48 * 'atomic_noncaching' memory mode instead of just 'atomic'.
49 */
50class NonCachingSimpleCPU : public AtomicSimpleCPU
51{
52  public:
53    NonCachingSimpleCPU(NonCachingSimpleCPUParams *p);
54
55    void verifyMemoryMode() const override;
56
57  protected:
58    Tick sendPacket(MasterPort &port, const PacketPtr &pkt) override;
59};
60
61#endif // __CPU_SIMPLE_NONCACHING_HH__
62