mem: Put gem5 protocols in their own directory.
This reduces clutter in the src/mem directory, and makes it clear that those protocols are for the classic gem5 memory system, not ruby, TLM, etc. Change-Id: I6cf6b21134d82f4f01991e4fe92dbea8c7e82081 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20231 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
@@ -60,14 +60,12 @@ SimObject('MemDelay.py')
|
||||
|
||||
Source('abstract_mem.cc')
|
||||
Source('addr_mapper.cc')
|
||||
Source('atomic_protocol.cc')
|
||||
Source('bridge.cc')
|
||||
Source('coherent_xbar.cc')
|
||||
Source('drampower.cc')
|
||||
Source('dram_ctrl.cc')
|
||||
Source('external_master.cc')
|
||||
Source('external_slave.cc')
|
||||
Source('functional_protocol.cc')
|
||||
Source('mem_object.cc')
|
||||
Source('mport.cc')
|
||||
Source('noncoherent_xbar.cc')
|
||||
@@ -77,7 +75,6 @@ Source('packet_queue.cc')
|
||||
Source('port_proxy.cc')
|
||||
Source('physical.cc')
|
||||
Source('secure_port_proxy.cc')
|
||||
Source('timing_protocol.cc')
|
||||
Source('simple_mem.cc')
|
||||
Source('snoop_filter.cc')
|
||||
Source('stack_dist_calc.cc')
|
||||
|
||||
@@ -51,10 +51,10 @@
|
||||
#define __MEM_PORT_HH__
|
||||
|
||||
#include "base/addr_range.hh"
|
||||
#include "mem/atomic_protocol.hh"
|
||||
#include "mem/functional_protocol.hh"
|
||||
#include "mem/packet.hh"
|
||||
#include "mem/timing_protocol.hh"
|
||||
#include "mem/protocol/atomic.hh"
|
||||
#include "mem/protocol/functional.hh"
|
||||
#include "mem/protocol/timing.hh"
|
||||
#include "sim/port.hh"
|
||||
|
||||
class SimObject;
|
||||
|
||||
32
src/mem/protocol/SConscript
Normal file
32
src/mem/protocol/SConscript
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 2019 Google Inc.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met: redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer;
|
||||
# redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution;
|
||||
# neither the name of the copyright holders nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# Authors: Gabe Black
|
||||
|
||||
Import('*')
|
||||
|
||||
Source('atomic.cc')
|
||||
Source('functional.cc')
|
||||
Source('timing.cc')
|
||||
@@ -42,7 +42,7 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#include "mem/atomic_protocol.hh"
|
||||
#include "mem/protocol/atomic.hh"
|
||||
|
||||
#include "base/trace.hh"
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#ifndef __MEM_ATOMIC_PROTOCOL_HH__
|
||||
#define __MEM_ATOMIC_PROTOCOL_HH__
|
||||
#ifndef __MEM_GEM5_PROTOCOL_ATOMIC_HH__
|
||||
#define __MEM_GEM5_PROTOCOL_ATOMIC_HH__
|
||||
|
||||
#include "mem/backdoor.hh"
|
||||
#include "mem/packet.hh"
|
||||
@@ -117,4 +117,4 @@ class AtomicResponseProtocol
|
||||
PacketPtr pkt, MemBackdoorPtr &backdoor) = 0;
|
||||
};
|
||||
|
||||
#endif //__MEM_ATOMIC_PROTOCOL_HH__
|
||||
#endif //__MEM_GEM5_PROTOCOL_ATOMIC_HH__
|
||||
@@ -42,7 +42,7 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#include "mem/functional_protocol.hh"
|
||||
#include "mem/protocol/functional.hh"
|
||||
|
||||
/* The request protocol. */
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#ifndef __MEM_FUNCTIONAL_PROTOCOL_HH__
|
||||
#define __MEM_FUNCTIONAL_PROTOCOL_HH__
|
||||
#ifndef __MEM_GEM5_PROTOCOL_FUNCTIONAL_HH__
|
||||
#define __MEM_GEM5_PROTOCOL_FUNCTIONAL_HH__
|
||||
|
||||
#include "mem/packet.hh"
|
||||
|
||||
@@ -89,4 +89,4 @@ class FunctionalResponseProtocol
|
||||
virtual void recvFunctional(PacketPtr pkt) = 0;
|
||||
};
|
||||
|
||||
#endif //__MEM_FUNCTIONAL_PROTOCOL_HH__
|
||||
#endif //__MEM_GEM5_PROTOCOL_FUNCTIONAL_HH__
|
||||
@@ -42,7 +42,7 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#include "mem/timing_protocol.hh"
|
||||
#include "mem/protocol/timing.hh"
|
||||
|
||||
/* The request protocol. */
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
* William Wang
|
||||
*/
|
||||
|
||||
#ifndef __MEM_TIMING_PROTOCOL_HH__
|
||||
#define __MEM_TIMING_PROTOCOL_HH__
|
||||
#ifndef __MEM_GEM5_PROTOCOL_TIMING_HH__
|
||||
#define __MEM_GEM5_PROTOCOL_TIMING_HH__
|
||||
|
||||
#include "mem/packet.hh"
|
||||
|
||||
@@ -187,4 +187,4 @@ class TimingResponseProtocol
|
||||
virtual void recvRespRetry() = 0;
|
||||
};
|
||||
|
||||
#endif //__MEM_TIMING_PROTOCOL_HH__
|
||||
#endif //__MEM_GEM5_PROTOCOL_TIMING_HH__
|
||||
Reference in New Issue
Block a user