summaryrefslogtreecommitdiff
path: root/src/arch/alpha/process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/alpha/process.cc')
-rw-r--r--src/arch/alpha/process.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/alpha/process.cc b/src/arch/alpha/process.cc
index 314769535..b8fb7a99b 100644
--- a/src/arch/alpha/process.cc
+++ b/src/arch/alpha/process.cc
@@ -170,8 +170,8 @@ AlphaProcess::argsInit(int intSize, int pageSize)
ThreadContext *tc = system->getThreadContext(contextIds[0]);
- setSyscallArg(tc, 0, argc);
- setSyscallArg(tc, 1, argv_array_base);
+ tc->setIntReg(FirstArgumentReg, argc);
+ tc->setIntReg(FirstArgumentReg + 1, argv_array_base);
tc->setIntReg(StackPointerReg, memState->getStackMin());
tc->pcState(getStartPC());