src/cpu/x86/vm/vm_version_x86.cpp

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 # include "incls/_precompiled.incl"
  26 # include "incls/_vm_version_x86.cpp.incl"













  27 
  28 
  29 int VM_Version::_cpu;
  30 int VM_Version::_model;
  31 int VM_Version::_stepping;
  32 int VM_Version::_cpuFeatures;
  33 const char*           VM_Version::_features_str = "";
  34 VM_Version::CpuidInfo VM_Version::_cpuid_info   = { 0, };
  35 
  36 static BufferBlob* stub_blob;
  37 static const int stub_size = 400;
  38 
  39 extern "C" {
  40   typedef void (*getPsrInfo_stub_t)(void*);
  41 }
  42 static getPsrInfo_stub_t getPsrInfo_stub = NULL;
  43 
  44 
  45 class VM_Version_StubGenerator: public StubCodeGenerator {
  46  public:




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "assembler_x86.inline.hpp"
  27 #include "memory/resourceArea.hpp"
  28 #include "runtime/java.hpp"
  29 #include "runtime/stubCodeGenerator.hpp"
  30 #include "vm_version_x86.hpp"
  31 #ifdef TARGET_OS_FAMILY_linux
  32 # include "os_linux.inline.hpp"
  33 #endif
  34 #ifdef TARGET_OS_FAMILY_solaris
  35 # include "os_solaris.inline.hpp"
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_windows
  38 # include "os_windows.inline.hpp"
  39 #endif
  40 
  41 
  42 int VM_Version::_cpu;
  43 int VM_Version::_model;
  44 int VM_Version::_stepping;
  45 int VM_Version::_cpuFeatures;
  46 const char*           VM_Version::_features_str = "";
  47 VM_Version::CpuidInfo VM_Version::_cpuid_info   = { 0, };
  48 
  49 static BufferBlob* stub_blob;
  50 static const int stub_size = 400;
  51 
  52 extern "C" {
  53   typedef void (*getPsrInfo_stub_t)(void*);
  54 }
  55 static getPsrInfo_stub_t getPsrInfo_stub = NULL;
  56 
  57 
  58 class VM_Version_StubGenerator: public StubCodeGenerator {
  59  public: