[aarch64-port-dev ] Fix format error

Edward Nevill edward.nevill at linaro.org
Tue Jul 8 09:42:30 UTC 2014


Hi,

The following patch fixes a format error which occurs with some versions of gcc.

Thanks to Andy Johnson for pointing this out.

All the best,
Ed.

--- CUT HERE ---
# HG changeset patch
# User Edward Nevill edward.nevill at linaro.org
# Date 1404812362 -3600
#      Tue Jul 08 10:39:22 2014 +0100
# Node ID e4009a9114af0814e2a6153001dd735ff73b1d4b
# Parent  f60e306e9ec6f570bba3bdc4a8b65dd459888092
Fix format error

diff -r f60e306e9ec6 -r e4009a9114af src/cpu/aarch64/vm/aarch64.ad
--- a/src/cpu/aarch64/vm/aarch64.ad	Tue Jul 08 10:32:24 2014 +0100
+++ b/src/cpu/aarch64/vm/aarch64.ad	Tue Jul 08 10:39:22 2014 +0100
@@ -1048,7 +1048,7 @@
 
   if (do_polling() && C->is_method_compilation()) {
     st->print("# touch polling page\n\t");
-    st->print("mov  rscratch1, #0x%x\n\t", os::get_polling_page());
+    st->print("mov  rscratch1, #" INTPTR_FORMAT "\n\t", p2i(os::get_polling_page()));
     st->print("ldr zr, [rscratch1]");
   }
 }
--- CUT HERE ---




More information about the aarch64-port-dev mailing list