Atomic: Remove the physmem_port and access memory directly
Review Request #1108 - Created March 20, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Atomic: Remove the physmem_port and access memory directly This patch removes the physmem_port from the Atomic CPU and instead uses the system pointer to access the physmem when using the fastmem option. The system already keeps track of the physmem and the valid memory address ranges, and with this patch we merely make use of that existing functionality. As a result of this change, the overloaded getMasterPort in the Atomic CPU can be removed, thus unifying the CPUs.
util/regress all passing (disregarding t1000 and eio), also running se.py and fs.py with --fastmem
Posted (March 20, 2012, 3:47 a.m.)
Andreas, can this same functionality not implemented while retaining the port abstraction? I mean, why do we do we prefer using the system pointer for accessing physical memory? Even if the system has multiple different memories, can we not have a single port that has access to all those memories? It might be that I am asking questions asked earlier by others.
Ship It!
Ship It!
