Index: src/ppc/simulator-ppc.cc |
diff --git a/src/ppc/simulator-ppc.cc b/src/ppc/simulator-ppc.cc |
index 79dc8252b7379c16b245fe7ffb99040d746712fb..1b01c1223da7a58acd7993cb82deaca3e14c37f5 100644 |
--- a/src/ppc/simulator-ppc.cc |
+++ b/src/ppc/simulator-ppc.cc |
@@ -1284,15 +1284,18 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { |
case ExternalReference::BUILTIN_FP_FP_CALL: |
case ExternalReference::BUILTIN_COMPARE_CALL: |
PrintF("Call to host function at %p with args %f, %f", |
- FUNCTION_ADDR(generic_target), dval0, dval1); |
+ static_cast<void*>(FUNCTION_ADDR(generic_target)), |
+ dval0, dval1); |
break; |
case ExternalReference::BUILTIN_FP_CALL: |
PrintF("Call to host function at %p with arg %f", |
- FUNCTION_ADDR(generic_target), dval0); |
+ static_cast<void*>(FUNCTION_ADDR(generic_target)), |
+ dval0); |
break; |
case ExternalReference::BUILTIN_FP_INT_CALL: |
PrintF("Call to host function at %p with args %f, %" V8PRIdPTR, |
- FUNCTION_ADDR(generic_target), dval0, ival); |
+ static_cast<void*>(FUNCTION_ADDR(generic_target)), |
+ dval0, ival); |
break; |
default: |
UNREACHABLE(); |
@@ -1434,8 +1437,8 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { |
"Call to host function at %p,\n" |
"\t\t\t\targs %08" V8PRIxPTR ", %08" V8PRIxPTR ", %08" V8PRIxPTR |
", %08" V8PRIxPTR ", %08" V8PRIxPTR ", %08" V8PRIxPTR, |
- FUNCTION_ADDR(target), arg[0], arg[1], arg[2], arg[3], arg[4], |
- arg[5]); |
+ static_cast<void*>(FUNCTION_ADDR(target)), arg[0], arg[1], |
+ arg[2], arg[3], arg[4], arg[5]); |
if (!stack_aligned) { |
PrintF(" with unaligned stack %08" V8PRIxPTR "\n", |
get_register(sp)); |