process.cc (13028:9a09c342891e) process.cc (13388:6a07d5867a26)
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;

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

219MipsProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
220{
221 if (sysret.successful()) {
222 // no error
223 tc->setIntReg(SyscallSuccessReg, 0);
224 tc->setIntReg(ReturnValueReg, sysret.returnValue());
225 } else {
226 // got an error, return details
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;

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

219MipsProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
220{
221 if (sysret.successful()) {
222 // no error
223 tc->setIntReg(SyscallSuccessReg, 0);
224 tc->setIntReg(ReturnValueReg, sysret.returnValue());
225 } else {
226 // got an error, return details
227 tc->setIntReg(SyscallSuccessReg, (IntReg) -1);
227 tc->setIntReg(SyscallSuccessReg, (uint32_t)(-1));
228 tc->setIntReg(ReturnValueReg, sysret.errnoValue());
229 }
230}
228 tc->setIntReg(ReturnValueReg, sysret.errnoValue());
229 }
230}