projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b41ab6
)
Make sure the "stack_min" variable is page aligned.
author
Gabe Black
<gblack@eecs.umich.edu>
Wed, 20 Dec 2006 20:44:37 +0000
(15:44 -0500)
committer
Gabe Black
<gblack@eecs.umich.edu>
Wed, 20 Dec 2006 20:44:37 +0000
(15:44 -0500)
--HG--
extra : convert_revision :
e78c53778de83bdb2eca13d98d418b17b386ab29
src/arch/sparc/process.cc
patch
|
blob
|
history
diff --git
a/src/arch/sparc/process.cc
b/src/arch/sparc/process.cc
index 073117a841ecaa2918165d80ba4e5fc9e91b5eec..1e639b9a581e6f55fa5d926e2f448e71e049a4cd 100644
(file)
--- 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++;
}