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;

--- 43 unchanged lines hidden (view full) ---

52 M5_DUMMY_RETURN
53 }
54
55 const int NumArgumentRegs = 6;
56 if (number < NumArgumentRegs) {
57 return tc->readIntReg(8 + number);
58 } else {
59 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;

--- 43 unchanged lines hidden (view full) ---

52 M5_DUMMY_RETURN
53 }
54
55 const int NumArgumentRegs = 6;
56 if (number < NumArgumentRegs) {
57 return tc->readIntReg(8 + number);
58 } else {
59 Addr sp = tc->readIntReg(StackPointerReg);
60 FSTranslatingPortProxy &vp = tc->getVirtProxy();
60 PortProxy &vp = tc->getVirtProxy();
61 uint64_t arg = vp.read<uint64_t>(sp + 92 +
62 (number-NumArgumentRegs) * sizeof(uint64_t));
63 return arg;
64 }
65}
66
67void
68copyMiscRegs(ThreadContext *src, ThreadContext *dest)

--- 197 unchanged lines hidden ---
61 uint64_t arg = vp.read<uint64_t>(sp + 92 +
62 (number-NumArgumentRegs) * sizeof(uint64_t));
63 return arg;
64 }
65}
66
67void
68copyMiscRegs(ThreadContext *src, ThreadContext *dest)

--- 197 unchanged lines hidden ---