process.cc (7676:92274350b953) | process.cc (7720:65d338a8dba4) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 162 unchanged lines hidden (view full) --- 171 } 172 173 ThreadContext *tc = system->getThreadContext(contextIds[0]); 174 175 setSyscallArg(tc, 0, argc); 176 setSyscallArg(tc, 1, argv_array_base); 177 tc->setIntReg(StackPointerReg, stack_min); 178 | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 162 unchanged lines hidden (view full) --- 171 } 172 173 ThreadContext *tc = system->getThreadContext(contextIds[0]); 174 175 setSyscallArg(tc, 0, argc); 176 setSyscallArg(tc, 1, argv_array_base); 177 tc->setIntReg(StackPointerReg, stack_min); 178 |
179 Addr prog_entry = objFile->entryPoint(); 180 tc->setPC(prog_entry); 181 tc->setNextPC(prog_entry + sizeof(MachInst)); 182 tc->setNextNPC(prog_entry + (2 * sizeof(MachInst))); | 179 tc->pcState(objFile->entryPoint()); |
183} 184 185 186MipsISA::IntReg 187MipsLiveProcess::getSyscallArg(ThreadContext *tc, int &i) 188{ 189 assert(i < 6); 190 return tc->readIntReg(FirstArgumentReg + i++); --- 24 unchanged lines hidden --- | 180} 181 182 183MipsISA::IntReg 184MipsLiveProcess::getSyscallArg(ThreadContext *tc, int &i) 185{ 186 assert(i < 6); 187 return tc->readIntReg(FirstArgumentReg + i++); --- 24 unchanged lines hidden --- |