process.cc (6701:4842482e1bd1) | process.cc (7512:ffac9df60637) |
---|---|
1/* 2 * Copyright (c) 2007-2008 The Florida State University 3 * Copyright (c) 2009 The University of Edinburgh 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 --- 270 unchanged lines hidden (view full) --- 279 assert(i < 5); 280 tc->setIntReg(ArgumentReg0 + i, val); 281} 282 283void 284PowerLiveProcess::setSyscallReturn(ThreadContext *tc, 285 SyscallReturn return_value) 286{ | 1/* 2 * Copyright (c) 2007-2008 The Florida State University 3 * Copyright (c) 2009 The University of Edinburgh 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 --- 270 unchanged lines hidden (view full) --- 279 assert(i < 5); 280 tc->setIntReg(ArgumentReg0 + i, val); 281} 282 283void 284PowerLiveProcess::setSyscallReturn(ThreadContext *tc, 285 SyscallReturn return_value) 286{ |
287 Cr cr = tc->readIntReg(INTREG_CR); 288 if (return_value.successful()) { 289 cr.cr0.so = 0; 290 } else { 291 cr.cr0.so = 1; 292 } 293 tc->setIntReg(INTREG_CR, cr); |
|
287 tc->setIntReg(ReturnValueReg, return_value.value()); 288} | 294 tc->setIntReg(ReturnValueReg, return_value.value()); 295} |