utility.cc (5254:c555f8b07345) utility.cc (5498:2af99511ded4)
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;

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

54#if FULL_SYSTEM
55 if (number < NumArgumentRegs) {
56 if (fp)
57 return tc->readFloatRegBits(ArgumentReg[number]);
58 else
59 return tc->readIntReg(ArgumentReg[number]);
60 } else {
61 Addr sp = tc->readIntReg(StackPointerReg);
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;

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

54#if FULL_SYSTEM
55 if (number < NumArgumentRegs) {
56 if (fp)
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(tc);
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

--- 196 unchanged lines hidden ---
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

--- 196 unchanged lines hidden ---