8219011: Implement MacroAssembler::warn method on AArch64
authormbalao
Fri, 15 Feb 2019 11:46:15 -0300
changeset 53783 72709e703abd
parent 53782 37c12515c30f
child 53784 31e3aa9c0c71
8219011: Implement MacroAssembler::warn method on AArch64 Reviewed-by: adinn
src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Fri Feb 15 12:33:11 2019 -0800
+++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Fri Feb 15 11:46:15 2019 -0300
@@ -2167,6 +2167,14 @@
   hlt(0);
 }
 
+void MacroAssembler::warn(const char* msg) {
+  pusha();
+  mov(c_rarg0, (address)msg);
+  mov(lr, CAST_FROM_FN_PTR(address, warning));
+  blrt(lr, 1, 0, MacroAssembler::ret_type_void);
+  popa();
+}
+
 void MacroAssembler::unimplemented(const char* what) {
   const char* buf = NULL;
   {