process.cc (13634:748418e0ca3f) | process.cc (13648:27e2153a4ea5) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * Copyright (c) 2016 The University of Virginia 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 265 unchanged lines hidden (view full) --- 274void 275RiscvProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret) 276{ 277 if (sysret.successful()) { 278 // no error 279 tc->setIntReg(SyscallPseudoReturnReg, sysret.returnValue()); 280 } else { 281 // got an error, return details | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * Copyright (c) 2016 The University of Virginia 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 265 unchanged lines hidden (view full) --- 274void 275RiscvProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret) 276{ 277 if (sysret.successful()) { 278 // no error 279 tc->setIntReg(SyscallPseudoReturnReg, sysret.returnValue()); 280 } else { 281 // got an error, return details |
282 tc->setIntReg(SyscallPseudoReturnReg, sysret.errnoValue()); | 282 tc->setIntReg(SyscallPseudoReturnReg, sysret.encodedValue()); |
283 } 284} | 283 } 284} |