utility.cc (7111:ee902ae075bb) | utility.cc (7650:42684e4656e6) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2009 ARM Limited | 2 * Copyright (c) 2009-2010 ARM Limited |
3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 43 unchanged lines hidden (view full) --- 54 55 static Fault reset = new Reset; 56 if (cpuId == 0) 57 reset->invoke(tc); 58} 59 60uint64_t getArgument(ThreadContext *tc, int number, bool fp) { 61#if FULL_SYSTEM | 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 43 unchanged lines hidden (view full) --- 54 55 static Fault reset = new Reset; 56 if (cpuId == 0) 57 reset->invoke(tc); 58} 59 60uint64_t getArgument(ThreadContext *tc, int number, bool fp) { 61#if FULL_SYSTEM |
62 panic("getArgument() not implemented for ARM!\n"); | 62 if (number < NumArgumentRegs) { 63 if (fp) 64 panic("getArgument(): Floating point arguments not implemented\n"); 65 else 66 return tc->readIntReg(number); 67 } 68 else { 69 panic("getArgument(): Argument index %d beyond max supported (%d).\n", 70 number, NumArgumentRegs - 1); 71 } |
63#else 64 panic("getArgument() only implemented for FULL_SYSTEM\n"); 65 M5_DUMMY_RETURN 66#endif 67} 68 69Fault 70setCp15Register(uint32_t &Rd, int CRn, int opc1, int CRm, int opc2) --- 15 unchanged lines hidden --- | 72#else 73 panic("getArgument() only implemented for FULL_SYSTEM\n"); 74 M5_DUMMY_RETURN 75#endif 76} 77 78Fault 79setCp15Register(uint32_t &Rd, int CRn, int opc1, int CRm, int opc2) --- 15 unchanged lines hidden --- |