weather-monitor: use uint32_t for instruction pointer

This fixes a gcc 4.7 warning: comparison between signed and unsigned
integer expressions [-Wsign-compare].

Change-Id: If440567c2767494f456e8e68df29e2f8d1582955
This commit is contained in:
Horst Schirmeier
2014-05-05 14:30:28 +02:00
parent 07968377b3
commit 0afd619ec3

View File

@ -227,7 +227,7 @@ bool WeatherMonitorExperiment::run()
byte_t newdata = data ^ (1 << bit_offset);
mm.setByte(data_address, newdata);
// note at what IP we did it
int32_t injection_ip = simulator.getCPU(0).getInstructionPointer();
uint32_t injection_ip = simulator.getCPU(0).getInstructionPointer();
result->set_iter_before_fi(count_loop_iter_before);
log << "fault injected @ ip " << injection_ip
<< " 0x" << hex << ((int)data) << " -> 0x" << ((int)newdata) << endl;