diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc index 730aa8883b..1a870c5c05 100644 --- a/src/arm/simulator-arm.cc +++ b/src/arm/simulator-arm.cc @@ -387,7 +387,7 @@ void ArmDebugger::Debug() { end = cur + words; while (cur < end) { - PrintF(" 0x%08x: 0x%08x %10d", + PrintF(" 0x%08" V8PRIxPTR ": 0x%08x %10d", reinterpret_cast(cur), *cur, *cur); HeapObject* obj = reinterpret_cast(*cur); int value = *cur; @@ -449,8 +449,8 @@ void ArmDebugger::Debug() { while (cur < end) { prev = cur; cur += dasm.InstructionDecode(buffer, cur); - PrintF(" 0x%08x %s\n", - reinterpret_cast(prev), buffer.start()); + PrintF(" 0x%08" V8PRIxPTR " %s\n", reinterpret_cast(prev), + buffer.start()); } } else if (strcmp(cmd, "gdb") == 0) { PrintF("relinquishing control to gdb\n"); @@ -1271,7 +1271,7 @@ uintptr_t Simulator::StackLimit(uintptr_t c_limit) const { // Unsupported instructions use Format to print an error and stop execution. void Simulator::Format(Instruction* instr, const char* format) { - PrintF("Simulator found unsupported instruction:\n 0x%08x: %s\n", + PrintF("Simulator found unsupported instruction:\n 0x%08" V8PRIxPTR ": %s\n", reinterpret_cast(instr), format); UNIMPLEMENTED(); } @@ -4087,7 +4087,8 @@ void Simulator::InstructionDecode(Instruction* instr) { v8::internal::EmbeddedVector buffer; dasm.InstructionDecode(buffer, reinterpret_cast(instr)); - PrintF(" 0x%08x %s\n", reinterpret_cast(instr), buffer.start()); + PrintF(" 0x%08" V8PRIxPTR " %s\n", reinterpret_cast(instr), + buffer.start()); } if (instr->ConditionField() == kSpecialCondition) { DecodeSpecialCondition(instr);