diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-12-20 15:44:37 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-12-20 15:44:37 -0500 |
commit | 841d76d37bb86b2ad05ce378282605a748c314eb (patch) | |
tree | bbfc2adfe4b586d6cc7def87146a10877da28f6e /src/arch/sparc | |
parent | 5b41ab694c9f1f2ae7183da48704eba34fc049ab (diff) | |
download | gem5-841d76d37bb86b2ad05ce378282605a748c314eb.tar.xz |
Make sure the "stack_min" variable is page aligned.
--HG--
extra : convert_revision : e78c53778de83bdb2eca13d98d418b17b386ab29
Diffstat (limited to 'src/arch/sparc')
-rw-r--r-- | src/arch/sparc/process.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc index 073117a84..1e639b9a5 100644 --- a/src/arch/sparc/process.cc +++ b/src/arch/sparc/process.cc @@ -432,5 +432,8 @@ SparcLiveProcess::argsInit(int intSize, int pageSize) threadContexts[0]->setNextPC(prog_entry + sizeof(MachInst)); threadContexts[0]->setNextNPC(prog_entry + (2 * sizeof(MachInst))); + //Align the "stack_min" to a page boundary. + stack_min = roundDown(stack_min, pageSize); + // num_processes++; } |