process.cc (6337:cac56cd6b015) | process.cc (6701:4842482e1bd1) |
---|---|
1/* 2 * Copyright (c) 2003-2004 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; --- 500 unchanged lines hidden (view full) --- 509 } 510 } 511 tc->setIntReg(NumIntArchRegs + 3, Cansave); 512 tc->setIntReg(NumIntArchRegs + 4, Canrestore); 513 tc->setMiscReg(MISCREG_CWP, origCWP); 514} 515 516IntReg | 1/* 2 * Copyright (c) 2003-2004 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; --- 500 unchanged lines hidden (view full) --- 509 } 510 } 511 tc->setIntReg(NumIntArchRegs + 3, Cansave); 512 tc->setIntReg(NumIntArchRegs + 4, Canrestore); 513 tc->setMiscReg(MISCREG_CWP, origCWP); 514} 515 516IntReg |
517Sparc32LiveProcess::getSyscallArg(ThreadContext *tc, int i) | 517Sparc32LiveProcess::getSyscallArg(ThreadContext *tc, int &i) |
518{ 519 assert(i < 6); | 518{ 519 assert(i < 6); |
520 return bits(tc->readIntReg(FirstArgumentReg + i), 31, 0); | 520 return bits(tc->readIntReg(FirstArgumentReg + i++), 31, 0); |
521} 522 523void 524Sparc32LiveProcess::setSyscallArg(ThreadContext *tc, int i, IntReg val) 525{ 526 assert(i < 6); 527 tc->setIntReg(FirstArgumentReg + i, bits(val, 31, 0)); 528} 529 530IntReg | 521} 522 523void 524Sparc32LiveProcess::setSyscallArg(ThreadContext *tc, int i, IntReg val) 525{ 526 assert(i < 6); 527 tc->setIntReg(FirstArgumentReg + i, bits(val, 31, 0)); 528} 529 530IntReg |
531Sparc64LiveProcess::getSyscallArg(ThreadContext *tc, int i) | 531Sparc64LiveProcess::getSyscallArg(ThreadContext *tc, int &i) |
532{ 533 assert(i < 6); | 532{ 533 assert(i < 6); |
534 return tc->readIntReg(FirstArgumentReg + i); | 534 return tc->readIntReg(FirstArgumentReg + i++); |
535} 536 537void 538Sparc64LiveProcess::setSyscallArg(ThreadContext *tc, int i, IntReg val) 539{ 540 assert(i < 6); 541 tc->setIntReg(FirstArgumentReg + i, val); 542} --- 32 unchanged lines hidden --- | 535} 536 537void 538Sparc64LiveProcess::setSyscallArg(ThreadContext *tc, int i, IntReg val) 539{ 540 assert(i < 6); 541 tc->setIntReg(FirstArgumentReg + i, val); 542} --- 32 unchanged lines hidden --- |