SE: move page allocation from PageTable to Process
authorSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 23 Oct 2011 05:30:08 +0000 (22:30 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 23 Oct 2011 05:30:08 +0000 (22:30 -0700)
commit6f9d294e8685f49d91af48065736ac1d67e53718
tree1481f450d43324b79da17c80f27bdb1946b7c232
parent4d5f2c28a88f83d390e80407f55a8a02ead33878
SE: move page allocation from PageTable to Process

PageTable supported an allocate() call that called back
through the Process to allocate memory, but did not have
a method to map addresses without allocating new pages.
It makes more sense for Process to do the allocation, so
this method was renamed allocateMem() and moved to Process,
and uses a new map() call on PageTable.

The remaining uses of the process pointer in PageTable
were only to get the name and the PID, so by passing these
in directly in the constructor, we can make PageTable
completely independent of Process.
17 files changed:
src/arch/alpha/process.cc
src/arch/arm/linux/process.cc
src/arch/arm/process.cc
src/arch/mips/process.cc
src/arch/power/process.cc
src/arch/sparc/process.cc
src/arch/x86/process.cc
src/kern/tru64/tru64.hh
src/mem/page_table.cc
src/mem/page_table.hh
src/mem/translating_port.cc
src/sim/process.cc
src/sim/process.hh
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh
src/sim/system.cc
src/sim/system.hh