< prev index next >

src/cpu/x86/vm/vm_version_x86.hpp

Print this page




  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 #ifndef CPU_X86_VM_VM_VERSION_X86_HPP
  26 #define CPU_X86_VM_VM_VERSION_X86_HPP
  27 
  28 #include "runtime/globals_extension.hpp"
  29 #include "runtime/vm_version.hpp"
  30 
  31 class VM_Version : public Abstract_VM_Version {

  32 public:
  33   // cpuid result register layouts.  These are all unions of a uint32_t
  34   // (in case anyone wants access to the register as a whole) and a bitfield.
  35 
  36   union StdCpuid1Eax {
  37     uint32_t value;
  38     struct {
  39       uint32_t stepping   : 4,
  40                model      : 4,
  41                family     : 4,
  42                proc_type  : 2,
  43                           : 2,
  44                ext_model  : 4,
  45                ext_family : 8,
  46                           : 4;
  47     } bits;
  48   };
  49 
  50   union StdCpuid1Ebx { // example, unused
  51     uint32_t value;




  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 #ifndef CPU_X86_VM_VM_VERSION_X86_HPP
  26 #define CPU_X86_VM_VM_VERSION_X86_HPP
  27 
  28 #include "runtime/globals_extension.hpp"
  29 #include "runtime/vm_version.hpp"
  30 
  31 class VM_Version : public Abstract_VM_Version {
  32   friend class VMStructs;
  33 public:
  34   // cpuid result register layouts.  These are all unions of a uint32_t
  35   // (in case anyone wants access to the register as a whole) and a bitfield.
  36 
  37   union StdCpuid1Eax {
  38     uint32_t value;
  39     struct {
  40       uint32_t stepping   : 4,
  41                model      : 4,
  42                family     : 4,
  43                proc_type  : 2,
  44                           : 2,
  45                ext_model  : 4,
  46                ext_family : 8,
  47                           : 4;
  48     } bits;
  49   };
  50 
  51   union StdCpuid1Ebx { // example, unused
  52     uint32_t value;


< prev index next >