utility.cc (13915:24ae4ea846c9) | utility.cc (14020:c9bf7a011602) |
---|---|
1/* 2 * Copyright (c) 2003-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; --- 39 unchanged lines hidden (view full) --- 48 const int NumArgumentRegs = 6; 49 if (number < NumArgumentRegs) { 50 if (fp) 51 return tc->readFloatReg(16 + number); 52 else 53 return tc->readIntReg(16 + number); 54 } else { 55 Addr sp = tc->readIntReg(StackPointerReg); | 1/* 2 * Copyright (c) 2003-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; --- 39 unchanged lines hidden (view full) --- 48 const int NumArgumentRegs = 6; 49 if (number < NumArgumentRegs) { 50 if (fp) 51 return tc->readFloatReg(16 + number); 52 else 53 return tc->readIntReg(16 + number); 54 } else { 55 Addr sp = tc->readIntReg(StackPointerReg); |
56 FSTranslatingPortProxy &vp = tc->getVirtProxy(); | 56 PortProxy &vp = tc->getVirtProxy(); |
57 uint64_t arg = vp.read<uint64_t>(sp + 58 (number-NumArgumentRegs) * 59 sizeof(uint64_t)); 60 return arg; 61 } 62} 63 64void --- 46 unchanged lines hidden --- | 57 uint64_t arg = vp.read<uint64_t>(sp + 58 (number-NumArgumentRegs) * 59 sizeof(uint64_t)); 60 return arg; 61 } 62} 63 64void --- 46 unchanged lines hidden --- |