utility.cc (5498:2af99511ded4) | utility.cc (5499:8bfc7650c344) |
---|---|
1/* 2 * Copyright (c) 2007 MIPS Technologies, Inc. 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; --- 48 unchanged lines hidden (view full) --- 57 return tc->readFloatRegBits(ArgumentReg[number]); 58 else 59 return tc->readIntReg(ArgumentReg[number]); 60 } else { 61 Addr sp = tc->readIntReg(StackPointerReg); 62 VirtualPort *vp = tc->getVirtPort(); 63 uint64_t arg = vp->read<uint64_t>(sp + 64 (number-NumArgumentRegs) * sizeof(uint64_t)); | 1/* 2 * Copyright (c) 2007 MIPS Technologies, Inc. 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; --- 48 unchanged lines hidden (view full) --- 57 return tc->readFloatRegBits(ArgumentReg[number]); 58 else 59 return tc->readIntReg(ArgumentReg[number]); 60 } else { 61 Addr sp = tc->readIntReg(StackPointerReg); 62 VirtualPort *vp = tc->getVirtPort(); 63 uint64_t arg = vp->read<uint64_t>(sp + 64 (number-NumArgumentRegs) * sizeof(uint64_t)); |
65 tc->delVirtPort(vp); | |
66 return arg; 67 } 68#else 69 panic("getArgument() is Full system only\n"); 70 M5_DUMMY_RETURN 71#endif 72} 73 --- 193 unchanged lines hidden --- | 65 return arg; 66 } 67#else 68 panic("getArgument() is Full system only\n"); 69 M5_DUMMY_RETURN 70#endif 71} 72 --- 193 unchanged lines hidden --- |