| 122 | |
---|
| 123 | // initialize the 'prev ctr' values |
---|
| 124 | uint64_t local_time; |
---|
| 125 | int maxtries2 = 10; |
---|
| 126 | do { |
---|
| 127 | if(!m_Parent.readCycleTimerReg(&m_cycle_timer_prev, &local_time)) { |
---|
| 128 | debugError("Could not read cycle timer register\n"); |
---|
| 129 | return false; |
---|
| 130 | } |
---|
| 131 | if (m_cycle_timer_prev == 0) { |
---|
| 132 | debugOutput(DEBUG_LEVEL_VERBOSE, |
---|
| 133 | "Bogus CTR: %08X on try %02d\n", |
---|
| 134 | m_cycle_timer_prev, maxtries2); |
---|
| 135 | } |
---|
| 136 | } while (m_cycle_timer_prev == 0 && maxtries2--); |
---|
| 137 | m_cycle_timer_ticks_prev = CYCLE_TIMER_TO_TICKS(m_cycle_timer_prev); |
---|
| 138 | |
---|
143 | | |
---|
144 | | // initialize the 'prev ctr' values |
---|
145 | | uint64_t local_time; |
---|
146 | | int maxtries2 = 10; |
---|
147 | | do { |
---|
148 | | if(!m_Parent.readCycleTimerReg(&m_cycle_timer_prev, &local_time)) { |
---|
149 | | debugError("Could not read cycle timer register\n"); |
---|
150 | | return false; |
---|
151 | | } |
---|
152 | | if (m_cycle_timer_prev == 0) { |
---|
153 | | debugOutput(DEBUG_LEVEL_VERBOSE, |
---|
154 | | "Bogus CTR: %08X on try %02d\n", |
---|
155 | | m_cycle_timer_prev, maxtries2); |
---|
156 | | } |
---|
157 | | } while (m_cycle_timer_prev == 0 && maxtries2--); |
---|
158 | | m_cycle_timer_ticks_prev = CYCLE_TIMER_TO_TICKS(m_cycle_timer_prev); |
---|