nativetrace.cc (8302:9f23d01421de) nativetrace.cc (8303:5a95f1d2494e)
1/*
2 * Copyright (c) 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

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

110 changed[i] = (oldState[i] != newState[i]);
111 }
112
113 //R15, aliased with the PC
114 newState[STATE_PC] = tc->pcState().npc();
115 changed[STATE_PC] = (newState[STATE_PC] != oldState[STATE_PC]);
116
117 //CPSR
1/*
2 * Copyright (c) 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

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

110 changed[i] = (oldState[i] != newState[i]);
111 }
112
113 //R15, aliased with the PC
114 newState[STATE_PC] = tc->pcState().npc();
115 changed[STATE_PC] = (newState[STATE_PC] != oldState[STATE_PC]);
116
117 //CPSR
118 newState[STATE_CPSR] = tc->readMiscReg(MISCREG_CPSR) |
119 tc->readIntReg(INTREG_CONDCODES_F) |
120 tc->readIntReg(INTREG_CONDCODES_GE);
118 CPSR cpsr = tc->readMiscReg(MISCREG_CPSR);
119 cpsr.nz = tc->readIntReg(INTREG_CONDCODES_NZ);
120 cpsr.c = tc->readIntReg(INTREG_CONDCODES_C);
121 cpsr.v = tc->readIntReg(INTREG_CONDCODES_V);
122 cpsr.ge = tc->readIntReg(INTREG_CONDCODES_GE);
123
124 newState[STATE_CPSR] = cpsr;
121 changed[STATE_CPSR] = (newState[STATE_CPSR] != oldState[STATE_CPSR]);
122
123 for (int i = 0; i < NumFloatArchRegs; i += 2) {
124 newState[STATE_F0 + (i >> 1)] =
125 static_cast<uint64_t>(tc->readFloatRegBits(i + 1)) << 32 |
126 tc->readFloatRegBits(i);
127 }
128 newState[STATE_FPSCR] = tc->readMiscRegNoEffect(MISCREG_FPSCR) |

--- 91 unchanged lines hidden ---
125 changed[STATE_CPSR] = (newState[STATE_CPSR] != oldState[STATE_CPSR]);
126
127 for (int i = 0; i < NumFloatArchRegs; i += 2) {
128 newState[STATE_F0 + (i >> 1)] =
129 static_cast<uint64_t>(tc->readFloatRegBits(i + 1)) << 32 |
130 tc->readFloatRegBits(i);
131 }
132 newState[STATE_FPSCR] = tc->readMiscRegNoEffect(MISCREG_FPSCR) |

--- 91 unchanged lines hidden ---