# Copyright (c) 2008 The Hewlett-Packard Development Company
+# Copyright (c) 2018 Metempsy Technology Consulting
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Authors: Gabe Black
+# Ivan Pizarro
-from m5.SimObject import SimObject
+from m5.params import *
+from MemObject import MemObject
-class BaseTLB(SimObject):
+class BaseTLB(MemObject):
type = 'BaseTLB'
abstract = True
cxx_header = "arch/generic/tlb.hh"
+ # Ports to connect with other TLB levels
+ slave = VectorSlavePort("Port closer to the CPU side")
+ master = MasterPort("Port closer to memory side")
#define __ARCH_GENERIC_TLB_HH__
#include "base/logging.hh"
+#include "mem/mem_object.hh"
#include "mem/request.hh"
-#include "sim/sim_object.hh"
class ThreadContext;
class BaseMasterPort;
-class BaseTLB : public SimObject
+class BaseTLB : public MemObject
{
protected:
BaseTLB(const Params *p)
- : SimObject(p)
+ : MemObject(p)
{}
public: