CPU: Moving towards a more general port across CPU models
This patch performs minimal changes to move the instruction and data ports from specialised subclasses to the base CPU (to the largest degree possible). Ultimately it servers to make the CPU(s) have a well-defined interface to the memory sub-system.
This commit is contained in:
@@ -152,9 +152,12 @@ class BaseCPU(MemObject):
|
||||
|
||||
tracer = Param.InstTracer(default_tracer, "Instruction tracer")
|
||||
|
||||
_cached_ports = []
|
||||
icache_port = Port("Instruction Port")
|
||||
dcache_port = Port("Data Port")
|
||||
_cached_ports = ['icache_port', 'dcache_port']
|
||||
|
||||
if buildEnv['TARGET_ISA'] in ['x86', 'arm'] and buildEnv['FULL_SYSTEM']:
|
||||
_cached_ports = ["itb.walker.port", "dtb.walker.port"]
|
||||
_cached_ports += ["itb.walker.port", "dtb.walker.port"]
|
||||
|
||||
_uncached_ports = []
|
||||
if buildEnv['TARGET_ISA'] == 'x86' and buildEnv['FULL_SYSTEM']:
|
||||
|
||||
Reference in New Issue
Block a user