process.cc (6650:f23a18fec0ef) process.cc (6701:4842482e1bd1)
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;

--- 133 unchanged lines hidden (view full) ---

142 Addr prog_entry = objFile->entryPoint();
143 tc->setPC(prog_entry);
144 tc->setNextPC(prog_entry + sizeof(MachInst));
145 tc->setNextNPC(prog_entry + (2 * sizeof(MachInst)));
146}
147
148
149MipsISA::IntReg
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;

--- 133 unchanged lines hidden (view full) ---

142 Addr prog_entry = objFile->entryPoint();
143 tc->setPC(prog_entry);
144 tc->setNextPC(prog_entry + sizeof(MachInst));
145 tc->setNextNPC(prog_entry + (2 * sizeof(MachInst)));
146}
147
148
149MipsISA::IntReg
150MipsLiveProcess::getSyscallArg(ThreadContext *tc, int i)
150MipsLiveProcess::getSyscallArg(ThreadContext *tc, int &i)
151{
152 assert(i < 6);
151{
152 assert(i < 6);
153 return tc->readIntReg(FirstArgumentReg + i);
153 return tc->readIntReg(FirstArgumentReg + i++);
154}
155
156void
157MipsLiveProcess::setSyscallArg(ThreadContext *tc,
158 int i, MipsISA::IntReg val)
159{
160 assert(i < 6);
161 tc->setIntReg(FirstArgumentReg + i, val);

--- 16 unchanged lines hidden ---
154}
155
156void
157MipsLiveProcess::setSyscallArg(ThreadContext *tc,
158 int i, MipsISA::IntReg val)
159{
160 assert(i < 6);
161 tc->setIntReg(FirstArgumentReg + i, val);

--- 16 unchanged lines hidden ---