< prev index next >

src/hotspot/cpu/x86/c2_init_x86.cpp

Print this page
rev 53861 : 8219486: Missing reg_mask_init() breaks x86_32 build

@@ -27,11 +27,13 @@
 #include "opto/node.hpp"
 #include "opto/optoreg.hpp"
 
 // processor dependent initialization for i486
 
+#ifdef _LP64
 extern void reg_mask_init();
+#endif
 
 void Compile::pd_compiler2_init() {
   guarantee(CodeEntryAlignment >= InteriorEntryAlignment, "" );
   // QQQ presumably all 64bit cpu's support this. Seems like the ifdef could
   // simply be left out.

@@ -58,7 +60,9 @@
     // mark the upper zmm bank bad and all the mask registers bad in this case
     for (OptoReg::Name i = OptoReg::Name(middle); i<OptoReg::Name(_last_Mach_Reg - 1); i = OptoReg::add(i, 1)) {
       OptoReg::invalidate(i);
     }
   }
+#ifdef _LP64
   reg_mask_init();
+#endif
 }
< prev index next >