summaryrefslogtreecommitdiff
path: root/src/arch/sparc/process.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-05-08 13:02:19 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-05-08 13:02:19 +0000
commitdc1c9e03007f084caabc995b41616603e0a004dc (patch)
tree1402fed796d3368c96a35f5cc48b400e3e5b93dc /src/arch/sparc/process.cc
parent6fec6d278a625756d4eec6fd2cb88c4d99cec4ae (diff)
downloadgem5-dc1c9e03007f084caabc995b41616603e0a004dc.tar.xz
Add a hack to truncate addresses to 32 bits in SE. Paging should be changed to use the architecture's TLB, at which point this can be removed.
--HG-- extra : convert_revision : 54f3c18e5aead727d0ac244ed00fd97d3ca8ad75
Diffstat (limited to 'src/arch/sparc/process.cc')
-rw-r--r--src/arch/sparc/process.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc
index e4774ab54..11fa9be28 100644
--- a/src/arch/sparc/process.cc
+++ b/src/arch/sparc/process.cc
@@ -87,8 +87,8 @@ Sparc32LiveProcess::startup()
//From the SPARC ABI
- //The process runs in user mode
- threadContexts[0]->setMiscReg(MISCREG_PSTATE, 0x02);
+ //The process runs in user mode with 32 bit addresses
+ threadContexts[0]->setMiscReg(MISCREG_PSTATE, 0x0a);
//Setup default FP state
threadContexts[0]->setMiscRegNoEffect(MISCREG_FSR, 0);