arch,mem: Remove the default value for page size.

This breaks one more architecture dependence outside of the ISAs.

Change-Id: I071f9ed73aef78e1cd1752247c183e30854b2d28
Reviewed-on: https://gem5-review.googlesource.com/6982
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Alexandru Duțu <alexandru.dutu@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
This commit is contained in:
Gabe Black
2017-12-22 17:14:47 -08:00
parent 54a9d471fa
commit ad0056d2e8
10 changed files with 23 additions and 16 deletions

View File

@@ -49,7 +49,8 @@ using namespace AlphaISA;
using namespace std;
AlphaProcess::AlphaProcess(ProcessParams *params, ObjectFile *objFile)
: Process(params, new FuncPageTable(params->name, params->pid), objFile)
: Process(params, new FuncPageTable(params->name, params->pid, PageBytes),
objFile)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");
Addr brk_point = objFile->dataBase() + objFile->dataSize() +

View File

@@ -63,7 +63,8 @@ using namespace ArmISA;
ArmProcess::ArmProcess(ProcessParams *params, ObjectFile *objFile,
ObjectFile::Arch _arch)
: Process(params, new FuncPageTable(params->name, params->pid), objFile),
: Process(params, new FuncPageTable(params->name, params->pid, PageBytes),
objFile),
arch(_arch)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");

View File

@@ -50,7 +50,8 @@ using namespace std;
using namespace MipsISA;
MipsProcess::MipsProcess(ProcessParams *params, ObjectFile *objFile)
: Process(params, new FuncPageTable(params->name, params->pid), objFile)
: Process(params, new FuncPageTable(params->name, params->pid, PageBytes),
objFile)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");
// Set up stack. On MIPS, stack starts at the top of kuseg

View File

@@ -50,7 +50,8 @@ using namespace std;
using namespace PowerISA;
PowerProcess::PowerProcess(ProcessParams *params, ObjectFile *objFile)
: Process(params, new FuncPageTable(params->name, params->pid), objFile)
: Process(params, new FuncPageTable(params->name, params->pid, PageBytes),
objFile)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");
// Set up break point (Top of Heap)

View File

@@ -60,7 +60,9 @@ using namespace std;
using namespace RiscvISA;
RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) :
Process(params, new FuncPageTable(params->name, params->pid), objFile)
Process(params, new FuncPageTable(params->name, params->pid,
PageBytes),
objFile)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");
const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;

View File

@@ -56,8 +56,9 @@ static const int FirstArgumentReg = 8;
SparcProcess::SparcProcess(ProcessParams *params, ObjectFile *objFile,
Addr _StackBias)
: Process(params, new FuncPageTable(params->name, params->pid), objFile),
StackBias(_StackBias)
: Process(params, new FuncPageTable(params->name, params->pid, PageBytes),
objFile),
StackBias(_StackBias)
{
fatal_if(!params->useArchPT, "Arch page tables not implemented.");
// Initialize these to 0s

View File

@@ -101,9 +101,10 @@ X86Process::X86Process(ProcessParams *params, ObjectFile *objFile,
: Process(params, params->useArchPT ?
static_cast<PageTableBase *>(
new ArchPageTable(params->name, params->pid,
params->system)) :
params->system, PageBytes)) :
static_cast<PageTableBase *>(
new FuncPageTable(params->name, params->pid)),
new FuncPageTable(params->name, params->pid,
PageBytes)),
objFile),
syscallDescs(_syscallDescs), numSyscallDescs(_numSyscallDescs)
{