utility.cc (10190:fb83d025d1c3) utility.cc (10318:98771a936b61)
1/*
2 * Copyright (c) 2009-2013 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

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

80
81 if (number < 8 /*NumArgumentRegs64*/) {
82 return tc->readIntReg(number);
83 } else {
84 panic("getArgument(): No support reading stack args for AArch64\n");
85 }
86 } else {
87 if (size == (uint16_t)(-1))
1/*
2 * Copyright (c) 2009-2013 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

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

80
81 if (number < 8 /*NumArgumentRegs64*/) {
82 return tc->readIntReg(number);
83 } else {
84 panic("getArgument(): No support reading stack args for AArch64\n");
85 }
86 } else {
87 if (size == (uint16_t)(-1))
88 // todo: should this not be sizeof(uint32_t) rather?
88 size = ArmISA::MachineBytes;
89
90 if (number < NumArgumentRegs) {
91 // If the argument is 64 bits, it must be in an even regiser
92 // number. Increment the number here if it isn't even.
93 if (size == sizeof(uint64_t)) {
94 if ((number % 2) != 0)
95 number++;

--- 887 unchanged lines hidden ---
89 size = ArmISA::MachineBytes;
90
91 if (number < NumArgumentRegs) {
92 // If the argument is 64 bits, it must be in an even regiser
93 // number. Increment the number here if it isn't even.
94 if (size == sizeof(uint64_t)) {
95 if ((number % 2) != 0)
96 number++;

--- 887 unchanged lines hidden ---