src/hotspot/cpu/x86/c2_init_x86.cpp
changeset 53841 48b50573dee4
parent 47216 71c04702a3d5
child 53868 1bd7233074c1
equal deleted inserted replaced
53840:9a0fd1f82406 53841:48b50573dee4
    27 #include "opto/node.hpp"
    27 #include "opto/node.hpp"
    28 #include "opto/optoreg.hpp"
    28 #include "opto/optoreg.hpp"
    29 
    29 
    30 // processor dependent initialization for i486
    30 // processor dependent initialization for i486
    31 
    31 
       
    32 extern void reg_mask_init();
       
    33 
    32 void Compile::pd_compiler2_init() {
    34 void Compile::pd_compiler2_init() {
    33   guarantee(CodeEntryAlignment >= InteriorEntryAlignment, "" );
    35   guarantee(CodeEntryAlignment >= InteriorEntryAlignment, "" );
    34   // QQQ presumably all 64bit cpu's support this. Seems like the ifdef could
    36   // QQQ presumably all 64bit cpu's support this. Seems like the ifdef could
    35   // simply be left out.
    37   // simply be left out.
    36 #ifndef AMD64
    38 #ifndef AMD64
    56     // mark the upper zmm bank bad and all the mask registers bad in this case
    58     // mark the upper zmm bank bad and all the mask registers bad in this case
    57     for (OptoReg::Name i = OptoReg::Name(middle); i<OptoReg::Name(_last_Mach_Reg - 1); i = OptoReg::add(i, 1)) {
    59     for (OptoReg::Name i = OptoReg::Name(middle); i<OptoReg::Name(_last_Mach_Reg - 1); i = OptoReg::add(i, 1)) {
    58       OptoReg::invalidate(i);
    60       OptoReg::invalidate(i);
    59     }
    61     }
    60   }
    62   }
       
    63   reg_mask_init();
    61 }
    64 }