annotate src/cpu/x86/vm/vm_version_x86_32.cpp @ 196:d1605aabd0a1 jdk7-b30

6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
author xdono
date Wed, 02 Jul 2008 12:55:16 -0700
parents 3d62cb85208d
children 9c2ecc2ffb12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
196
d1605aabd0a1 6719955: Update copyright year
xdono
parents: 71
diff changeset
2 * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
a61af66fc99e Initial load
duke
parents:
diff changeset
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 * CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 * have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 # include "incls/_precompiled.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # include "incls/_vm_version_x86_32.cpp.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 int VM_Version::_cpu;
a61af66fc99e Initial load
duke
parents:
diff changeset
30 int VM_Version::_model;
a61af66fc99e Initial load
duke
parents:
diff changeset
31 int VM_Version::_stepping;
a61af66fc99e Initial load
duke
parents:
diff changeset
32 int VM_Version::_cpuFeatures;
a61af66fc99e Initial load
duke
parents:
diff changeset
33 const char* VM_Version::_features_str = "";
a61af66fc99e Initial load
duke
parents:
diff changeset
34 VM_Version::CpuidInfo VM_Version::_cpuid_info = { 0, };
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 static BufferBlob* stub_blob;
a61af66fc99e Initial load
duke
parents:
diff changeset
37 static const int stub_size = 300;
a61af66fc99e Initial load
duke
parents:
diff changeset
38
a61af66fc99e Initial load
duke
parents:
diff changeset
39 extern "C" {
a61af66fc99e Initial load
duke
parents:
diff changeset
40 typedef void (*getPsrInfo_stub_t)(void*);
a61af66fc99e Initial load
duke
parents:
diff changeset
41 }
a61af66fc99e Initial load
duke
parents:
diff changeset
42 static getPsrInfo_stub_t getPsrInfo_stub = NULL;
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44
a61af66fc99e Initial load
duke
parents:
diff changeset
45 class VM_Version_StubGenerator: public StubCodeGenerator {
a61af66fc99e Initial load
duke
parents:
diff changeset
46 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 VM_Version_StubGenerator(CodeBuffer *c) : StubCodeGenerator(c) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 address generate_getPsrInfo() {
a61af66fc99e Initial load
duke
parents:
diff changeset
51 // Flags to test CPU type.
a61af66fc99e Initial load
duke
parents:
diff changeset
52 const uint32_t EFL_AC = 0x40000;
a61af66fc99e Initial load
duke
parents:
diff changeset
53 const uint32_t EFL_ID = 0x200000;
a61af66fc99e Initial load
duke
parents:
diff changeset
54 // Values for when we don't have a CPUID instruction.
a61af66fc99e Initial load
duke
parents:
diff changeset
55 const int CPU_FAMILY_SHIFT = 8;
a61af66fc99e Initial load
duke
parents:
diff changeset
56 const uint32_t CPU_FAMILY_386 = (3 << CPU_FAMILY_SHIFT);
a61af66fc99e Initial load
duke
parents:
diff changeset
57 const uint32_t CPU_FAMILY_486 = (4 << CPU_FAMILY_SHIFT);
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 Label detect_486, cpu486, detect_586, std_cpuid1;
a61af66fc99e Initial load
duke
parents:
diff changeset
60 Label ext_cpuid1, ext_cpuid5, done;
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 StubCodeMark mark(this, "VM_Version", "getPsrInfo_stub");
a61af66fc99e Initial load
duke
parents:
diff changeset
63 # define __ _masm->
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 address start = __ pc();
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 //
a61af66fc99e Initial load
duke
parents:
diff changeset
68 // void getPsrInfo(VM_Version::CpuidInfo* cpuid_info);
a61af66fc99e Initial load
duke
parents:
diff changeset
69 //
a61af66fc99e Initial load
duke
parents:
diff changeset
70 __ pushl(rbp);
a61af66fc99e Initial load
duke
parents:
diff changeset
71 __ movl(rbp, Address(rsp, 8)); // cpuid_info address
a61af66fc99e Initial load
duke
parents:
diff changeset
72 __ pushl(rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
73 __ pushl(rsi);
a61af66fc99e Initial load
duke
parents:
diff changeset
74 __ pushfd(); // preserve rbx, and flags
a61af66fc99e Initial load
duke
parents:
diff changeset
75 __ popl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
76 __ pushl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
77 __ movl(rcx, rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
78 //
a61af66fc99e Initial load
duke
parents:
diff changeset
79 // if we are unable to change the AC flag, we have a 386
a61af66fc99e Initial load
duke
parents:
diff changeset
80 //
a61af66fc99e Initial load
duke
parents:
diff changeset
81 __ xorl(rax, EFL_AC);
a61af66fc99e Initial load
duke
parents:
diff changeset
82 __ pushl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
83 __ popfd();
a61af66fc99e Initial load
duke
parents:
diff changeset
84 __ pushfd();
a61af66fc99e Initial load
duke
parents:
diff changeset
85 __ popl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
86 __ cmpl(rax, rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
87 __ jccb(Assembler::notEqual, detect_486);
a61af66fc99e Initial load
duke
parents:
diff changeset
88
a61af66fc99e Initial load
duke
parents:
diff changeset
89 __ movl(rax, CPU_FAMILY_386);
a61af66fc99e Initial load
duke
parents:
diff changeset
90 __ movl(Address(rbp, in_bytes(VM_Version::std_cpuid1_offset())), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
91 __ jmp(done);
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 //
a61af66fc99e Initial load
duke
parents:
diff changeset
94 // If we are unable to change the ID flag, we have a 486 which does
a61af66fc99e Initial load
duke
parents:
diff changeset
95 // not support the "cpuid" instruction.
a61af66fc99e Initial load
duke
parents:
diff changeset
96 //
a61af66fc99e Initial load
duke
parents:
diff changeset
97 __ bind(detect_486);
a61af66fc99e Initial load
duke
parents:
diff changeset
98 __ movl(rax, rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
99 __ xorl(rax, EFL_ID);
a61af66fc99e Initial load
duke
parents:
diff changeset
100 __ pushl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
101 __ popfd();
a61af66fc99e Initial load
duke
parents:
diff changeset
102 __ pushfd();
a61af66fc99e Initial load
duke
parents:
diff changeset
103 __ popl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
104 __ cmpl(rcx, rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
105 __ jccb(Assembler::notEqual, detect_586);
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 __ bind(cpu486);
a61af66fc99e Initial load
duke
parents:
diff changeset
108 __ movl(rax, CPU_FAMILY_486);
a61af66fc99e Initial load
duke
parents:
diff changeset
109 __ movl(Address(rbp, in_bytes(VM_Version::std_cpuid1_offset())), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
110 __ jmp(done);
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112 //
a61af66fc99e Initial load
duke
parents:
diff changeset
113 // at this point, we have a chip which supports the "cpuid" instruction
a61af66fc99e Initial load
duke
parents:
diff changeset
114 //
a61af66fc99e Initial load
duke
parents:
diff changeset
115 __ bind(detect_586);
a61af66fc99e Initial load
duke
parents:
diff changeset
116 __ xorl(rax, rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
117 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
118 __ orl(rax, rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
119 __ jcc(Assembler::equal, cpu486); // if cpuid doesn't support an input
a61af66fc99e Initial load
duke
parents:
diff changeset
120 // value of at least 1, we give up and
a61af66fc99e Initial load
duke
parents:
diff changeset
121 // assume a 486
a61af66fc99e Initial load
duke
parents:
diff changeset
122 __ leal(rsi, Address(rbp, in_bytes(VM_Version::std_cpuid0_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
123 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
124 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
125 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
126 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 __ cmpl(rax, 3); // Is cpuid(0x4) supported?
a61af66fc99e Initial load
duke
parents:
diff changeset
129 __ jccb(Assembler::belowEqual, std_cpuid1);
a61af66fc99e Initial load
duke
parents:
diff changeset
130
a61af66fc99e Initial load
duke
parents:
diff changeset
131 //
a61af66fc99e Initial load
duke
parents:
diff changeset
132 // cpuid(0x4) Deterministic cache params
a61af66fc99e Initial load
duke
parents:
diff changeset
133 //
a61af66fc99e Initial load
duke
parents:
diff changeset
134 __ movl(rax, 4); // and rcx already set to 0x0
a61af66fc99e Initial load
duke
parents:
diff changeset
135 __ xorl(rcx, rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
136 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
137 __ pushl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
138 __ andl(rax, 0x1f); // Determine if valid cache parameters used
a61af66fc99e Initial load
duke
parents:
diff changeset
139 __ orl(rax, rax); // rax,[4:0] == 0 indicates invalid cache
a61af66fc99e Initial load
duke
parents:
diff changeset
140 __ popl(rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
141 __ jccb(Assembler::equal, std_cpuid1);
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 __ leal(rsi, Address(rbp, in_bytes(VM_Version::dcp_cpuid4_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
144 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
145 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
146 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
147 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
148
a61af66fc99e Initial load
duke
parents:
diff changeset
149 //
a61af66fc99e Initial load
duke
parents:
diff changeset
150 // Standard cpuid(0x1)
a61af66fc99e Initial load
duke
parents:
diff changeset
151 //
a61af66fc99e Initial load
duke
parents:
diff changeset
152 __ bind(std_cpuid1);
a61af66fc99e Initial load
duke
parents:
diff changeset
153 __ movl(rax, 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
154 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
155 __ leal(rsi, Address(rbp, in_bytes(VM_Version::std_cpuid1_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
156 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
157 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
158 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
159 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
160
a61af66fc99e Initial load
duke
parents:
diff changeset
161 __ movl(rax, 0x80000000);
a61af66fc99e Initial load
duke
parents:
diff changeset
162 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
163 __ cmpl(rax, 0x80000000); // Is cpuid(0x80000001) supported?
a61af66fc99e Initial load
duke
parents:
diff changeset
164 __ jcc(Assembler::belowEqual, done);
a61af66fc99e Initial load
duke
parents:
diff changeset
165 __ cmpl(rax, 0x80000004); // Is cpuid(0x80000005) supported?
a61af66fc99e Initial load
duke
parents:
diff changeset
166 __ jccb(Assembler::belowEqual, ext_cpuid1);
a61af66fc99e Initial load
duke
parents:
diff changeset
167 __ cmpl(rax, 0x80000007); // Is cpuid(0x80000008) supported?
a61af66fc99e Initial load
duke
parents:
diff changeset
168 __ jccb(Assembler::belowEqual, ext_cpuid5);
a61af66fc99e Initial load
duke
parents:
diff changeset
169 //
a61af66fc99e Initial load
duke
parents:
diff changeset
170 // Extended cpuid(0x80000008)
a61af66fc99e Initial load
duke
parents:
diff changeset
171 //
a61af66fc99e Initial load
duke
parents:
diff changeset
172 __ movl(rax, 0x80000008);
a61af66fc99e Initial load
duke
parents:
diff changeset
173 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
174 __ leal(rsi, Address(rbp, in_bytes(VM_Version::ext_cpuid8_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
175 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
176 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
177 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
178 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
179
a61af66fc99e Initial load
duke
parents:
diff changeset
180 //
a61af66fc99e Initial load
duke
parents:
diff changeset
181 // Extended cpuid(0x80000005)
a61af66fc99e Initial load
duke
parents:
diff changeset
182 //
a61af66fc99e Initial load
duke
parents:
diff changeset
183 __ bind(ext_cpuid5);
a61af66fc99e Initial load
duke
parents:
diff changeset
184 __ movl(rax, 0x80000005);
a61af66fc99e Initial load
duke
parents:
diff changeset
185 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
186 __ leal(rsi, Address(rbp, in_bytes(VM_Version::ext_cpuid5_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
187 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
188 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
189 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
190 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
191
a61af66fc99e Initial load
duke
parents:
diff changeset
192 //
a61af66fc99e Initial load
duke
parents:
diff changeset
193 // Extended cpuid(0x80000001)
a61af66fc99e Initial load
duke
parents:
diff changeset
194 //
a61af66fc99e Initial load
duke
parents:
diff changeset
195 __ bind(ext_cpuid1);
a61af66fc99e Initial load
duke
parents:
diff changeset
196 __ movl(rax, 0x80000001);
a61af66fc99e Initial load
duke
parents:
diff changeset
197 __ cpuid();
a61af66fc99e Initial load
duke
parents:
diff changeset
198 __ leal(rsi, Address(rbp, in_bytes(VM_Version::ext_cpuid1_offset())));
a61af66fc99e Initial load
duke
parents:
diff changeset
199 __ movl(Address(rsi, 0), rax);
a61af66fc99e Initial load
duke
parents:
diff changeset
200 __ movl(Address(rsi, 4), rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
201 __ movl(Address(rsi, 8), rcx);
a61af66fc99e Initial load
duke
parents:
diff changeset
202 __ movl(Address(rsi,12), rdx);
a61af66fc99e Initial load
duke
parents:
diff changeset
203
a61af66fc99e Initial load
duke
parents:
diff changeset
204 //
a61af66fc99e Initial load
duke
parents:
diff changeset
205 // return
a61af66fc99e Initial load
duke
parents:
diff changeset
206 //
a61af66fc99e Initial load
duke
parents:
diff changeset
207 __ bind(done);
a61af66fc99e Initial load
duke
parents:
diff changeset
208 __ popfd();
a61af66fc99e Initial load
duke
parents:
diff changeset
209 __ popl(rsi);
a61af66fc99e Initial load
duke
parents:
diff changeset
210 __ popl(rbx);
a61af66fc99e Initial load
duke
parents:
diff changeset
211 __ popl(rbp);
a61af66fc99e Initial load
duke
parents:
diff changeset
212 __ ret(0);
a61af66fc99e Initial load
duke
parents:
diff changeset
213
a61af66fc99e Initial load
duke
parents:
diff changeset
214 # undef __
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216 return start;
a61af66fc99e Initial load
duke
parents:
diff changeset
217 };
a61af66fc99e Initial load
duke
parents:
diff changeset
218 };
a61af66fc99e Initial load
duke
parents:
diff changeset
219
a61af66fc99e Initial load
duke
parents:
diff changeset
220
a61af66fc99e Initial load
duke
parents:
diff changeset
221 void VM_Version::get_processor_features() {
a61af66fc99e Initial load
duke
parents:
diff changeset
222
a61af66fc99e Initial load
duke
parents:
diff changeset
223 _cpu = 4; // 486 by default
a61af66fc99e Initial load
duke
parents:
diff changeset
224 _model = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
225 _stepping = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
226 _cpuFeatures = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
227 _logical_processors_per_package = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
228 if (!Use486InstrsOnly) {
a61af66fc99e Initial load
duke
parents:
diff changeset
229 // Get raw processor info
a61af66fc99e Initial load
duke
parents:
diff changeset
230 getPsrInfo_stub(&_cpuid_info);
a61af66fc99e Initial load
duke
parents:
diff changeset
231 assert_is_initialized();
a61af66fc99e Initial load
duke
parents:
diff changeset
232 _cpu = extended_cpu_family();
a61af66fc99e Initial load
duke
parents:
diff changeset
233 _model = extended_cpu_model();
a61af66fc99e Initial load
duke
parents:
diff changeset
234 _stepping = cpu_stepping();
a61af66fc99e Initial load
duke
parents:
diff changeset
235 if (cpu_family() > 4) { // it supports CPUID
a61af66fc99e Initial load
duke
parents:
diff changeset
236 _cpuFeatures = feature_flags();
a61af66fc99e Initial load
duke
parents:
diff changeset
237 // Logical processors are only available on P4s and above,
a61af66fc99e Initial load
duke
parents:
diff changeset
238 // and only if hyperthreading is available.
a61af66fc99e Initial load
duke
parents:
diff changeset
239 _logical_processors_per_package = logical_processor_count();
a61af66fc99e Initial load
duke
parents:
diff changeset
240 }
a61af66fc99e Initial load
duke
parents:
diff changeset
241 }
a61af66fc99e Initial load
duke
parents:
diff changeset
242 _supports_cx8 = supports_cmpxchg8();
a61af66fc99e Initial load
duke
parents:
diff changeset
243 // if the OS doesn't support SSE, we can't use this feature even if the HW does
a61af66fc99e Initial load
duke
parents:
diff changeset
244 if( !os::supports_sse())
a61af66fc99e Initial load
duke
parents:
diff changeset
245 _cpuFeatures &= ~(CPU_SSE|CPU_SSE2|CPU_SSE3|CPU_SSSE3|CPU_SSE4|CPU_SSE4A);
a61af66fc99e Initial load
duke
parents:
diff changeset
246 if (UseSSE < 4)
a61af66fc99e Initial load
duke
parents:
diff changeset
247 _cpuFeatures &= ~CPU_SSE4;
a61af66fc99e Initial load
duke
parents:
diff changeset
248 if (UseSSE < 3) {
a61af66fc99e Initial load
duke
parents:
diff changeset
249 _cpuFeatures &= ~CPU_SSE3;
a61af66fc99e Initial load
duke
parents:
diff changeset
250 _cpuFeatures &= ~CPU_SSSE3;
a61af66fc99e Initial load
duke
parents:
diff changeset
251 _cpuFeatures &= ~CPU_SSE4A;
a61af66fc99e Initial load
duke
parents:
diff changeset
252 }
a61af66fc99e Initial load
duke
parents:
diff changeset
253 if (UseSSE < 2)
a61af66fc99e Initial load
duke
parents:
diff changeset
254 _cpuFeatures &= ~CPU_SSE2;
a61af66fc99e Initial load
duke
parents:
diff changeset
255 if (UseSSE < 1)
a61af66fc99e Initial load
duke
parents:
diff changeset
256 _cpuFeatures &= ~CPU_SSE;
a61af66fc99e Initial load
duke
parents:
diff changeset
257
a61af66fc99e Initial load
duke
parents:
diff changeset
258 if (logical_processors_per_package() == 1) {
a61af66fc99e Initial load
duke
parents:
diff changeset
259 // HT processor could be installed on a system which doesn't support HT.
a61af66fc99e Initial load
duke
parents:
diff changeset
260 _cpuFeatures &= ~CPU_HT;
a61af66fc99e Initial load
duke
parents:
diff changeset
261 }
a61af66fc99e Initial load
duke
parents:
diff changeset
262
a61af66fc99e Initial load
duke
parents:
diff changeset
263 char buf[256];
a61af66fc99e Initial load
duke
parents:
diff changeset
264 jio_snprintf(buf, sizeof(buf), "(%u cores per cpu, %u threads per core) family %d model %d stepping %d%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
a61af66fc99e Initial load
duke
parents:
diff changeset
265 cores_per_cpu(), threads_per_core(),
a61af66fc99e Initial load
duke
parents:
diff changeset
266 cpu_family(), _model, _stepping,
a61af66fc99e Initial load
duke
parents:
diff changeset
267 (supports_cmov() ? ", cmov" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
268 (supports_cmpxchg8() ? ", cx8" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
269 (supports_fxsr() ? ", fxsr" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
270 (supports_mmx() ? ", mmx" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
271 (supports_sse() ? ", sse" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
272 (supports_sse2() ? ", sse2" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
273 (supports_sse3() ? ", sse3" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
274 (supports_ssse3()? ", ssse3": ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
275 (supports_sse4() ? ", sse4" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
276 (supports_mmx_ext() ? ", mmxext" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
277 (supports_3dnow() ? ", 3dnow" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
278 (supports_3dnow2() ? ", 3dnowext" : ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
279 (supports_sse4a() ? ", sse4a": ""),
a61af66fc99e Initial load
duke
parents:
diff changeset
280 (supports_ht() ? ", ht": ""));
a61af66fc99e Initial load
duke
parents:
diff changeset
281 _features_str = strdup(buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
282
a61af66fc99e Initial load
duke
parents:
diff changeset
283 // UseSSE is set to the smaller of what hardware supports and what
a61af66fc99e Initial load
duke
parents:
diff changeset
284 // the command line requires. I.e., you cannot set UseSSE to 2 on
a61af66fc99e Initial load
duke
parents:
diff changeset
285 // older Pentiums which do not support it.
a61af66fc99e Initial load
duke
parents:
diff changeset
286 if( UseSSE > 4 ) UseSSE=4;
a61af66fc99e Initial load
duke
parents:
diff changeset
287 if( UseSSE < 0 ) UseSSE=0;
a61af66fc99e Initial load
duke
parents:
diff changeset
288 if( !supports_sse4() ) // Drop to 3 if no SSE4 support
a61af66fc99e Initial load
duke
parents:
diff changeset
289 UseSSE = MIN2((intx)3,UseSSE);
a61af66fc99e Initial load
duke
parents:
diff changeset
290 if( !supports_sse3() ) // Drop to 2 if no SSE3 support
a61af66fc99e Initial load
duke
parents:
diff changeset
291 UseSSE = MIN2((intx)2,UseSSE);
a61af66fc99e Initial load
duke
parents:
diff changeset
292 if( !supports_sse2() ) // Drop to 1 if no SSE2 support
a61af66fc99e Initial load
duke
parents:
diff changeset
293 UseSSE = MIN2((intx)1,UseSSE);
a61af66fc99e Initial load
duke
parents:
diff changeset
294 if( !supports_sse () ) // Drop to 0 if no SSE support
a61af66fc99e Initial load
duke
parents:
diff changeset
295 UseSSE = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
296
a61af66fc99e Initial load
duke
parents:
diff changeset
297 // On new cpus instructions which update whole XMM register should be used
a61af66fc99e Initial load
duke
parents:
diff changeset
298 // to prevent partial register stall due to dependencies on high half.
a61af66fc99e Initial load
duke
parents:
diff changeset
299 //
a61af66fc99e Initial load
duke
parents:
diff changeset
300 // UseXmmLoadAndClearUpper == true --> movsd(xmm, mem)
a61af66fc99e Initial load
duke
parents:
diff changeset
301 // UseXmmLoadAndClearUpper == false --> movlpd(xmm, mem)
a61af66fc99e Initial load
duke
parents:
diff changeset
302 // UseXmmRegToRegMoveAll == true --> movaps(xmm, xmm), movapd(xmm, xmm).
a61af66fc99e Initial load
duke
parents:
diff changeset
303 // UseXmmRegToRegMoveAll == false --> movss(xmm, xmm), movsd(xmm, xmm).
a61af66fc99e Initial load
duke
parents:
diff changeset
304
a61af66fc99e Initial load
duke
parents:
diff changeset
305 if( is_amd() ) { // AMD cpus specific settings
a61af66fc99e Initial load
duke
parents:
diff changeset
306 if( supports_sse2() && FLAG_IS_DEFAULT(UseAddressNop) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
307 // Use it on new AMD cpus starting from Opteron.
a61af66fc99e Initial load
duke
parents:
diff changeset
308 UseAddressNop = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
309 }
a61af66fc99e Initial load
duke
parents:
diff changeset
310 if( FLAG_IS_DEFAULT(UseXmmLoadAndClearUpper) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
311 if( supports_sse4a() ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
312 UseXmmLoadAndClearUpper = true; // use movsd only on '10h' Opteron
a61af66fc99e Initial load
duke
parents:
diff changeset
313 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
314 UseXmmLoadAndClearUpper = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
315 }
a61af66fc99e Initial load
duke
parents:
diff changeset
316 }
a61af66fc99e Initial load
duke
parents:
diff changeset
317 if( FLAG_IS_DEFAULT(UseXmmRegToRegMoveAll) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
318 if( supports_sse4a() ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
319 UseXmmRegToRegMoveAll = true; // use movaps, movapd only on '10h'
a61af66fc99e Initial load
duke
parents:
diff changeset
320 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
321 UseXmmRegToRegMoveAll = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
322 }
a61af66fc99e Initial load
duke
parents:
diff changeset
323 }
71
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
324 if( FLAG_IS_DEFAULT(UseXmmI2F) ) {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
325 if( supports_sse4a() ) {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
326 UseXmmI2F = true;
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
327 } else {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
328 UseXmmI2F = false;
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
329 }
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
330 }
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
331 if( FLAG_IS_DEFAULT(UseXmmI2D) ) {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
332 if( supports_sse4a() ) {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
333 UseXmmI2D = true;
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
334 } else {
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
335 UseXmmI2D = false;
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
336 }
3d62cb85208d 6662967: Optimize I2D conversion on new x86
kvn
parents: 0
diff changeset
337 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
338 }
a61af66fc99e Initial load
duke
parents:
diff changeset
339
a61af66fc99e Initial load
duke
parents:
diff changeset
340 if( is_intel() ) { // Intel cpus specific settings
a61af66fc99e Initial load
duke
parents:
diff changeset
341 if( FLAG_IS_DEFAULT(UseStoreImmI16) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
342 UseStoreImmI16 = false; // don't use it on Intel cpus
a61af66fc99e Initial load
duke
parents:
diff changeset
343 }
a61af66fc99e Initial load
duke
parents:
diff changeset
344 if( cpu_family() == 6 || cpu_family() == 15 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
345 if( FLAG_IS_DEFAULT(UseAddressNop) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
346 // Use it on all Intel cpus starting from PentiumPro
a61af66fc99e Initial load
duke
parents:
diff changeset
347 UseAddressNop = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
348 }
a61af66fc99e Initial load
duke
parents:
diff changeset
349 }
a61af66fc99e Initial load
duke
parents:
diff changeset
350 if( FLAG_IS_DEFAULT(UseXmmLoadAndClearUpper) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
351 UseXmmLoadAndClearUpper = true; // use movsd on all Intel cpus
a61af66fc99e Initial load
duke
parents:
diff changeset
352 }
a61af66fc99e Initial load
duke
parents:
diff changeset
353 if( FLAG_IS_DEFAULT(UseXmmRegToRegMoveAll) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
354 if( supports_sse3() ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
355 UseXmmRegToRegMoveAll = true; // use movaps, movapd on new Intel cpus
a61af66fc99e Initial load
duke
parents:
diff changeset
356 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
357 UseXmmRegToRegMoveAll = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
358 }
a61af66fc99e Initial load
duke
parents:
diff changeset
359 }
a61af66fc99e Initial load
duke
parents:
diff changeset
360 if( cpu_family() == 6 && supports_sse3() ) { // New Intel cpus
a61af66fc99e Initial load
duke
parents:
diff changeset
361 #ifdef COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
362 if( FLAG_IS_DEFAULT(MaxLoopPad) ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
363 // For new Intel cpus do the next optimization:
a61af66fc99e Initial load
duke
parents:
diff changeset
364 // don't align the beginning of a loop if there are enough instructions
a61af66fc99e Initial load
duke
parents:
diff changeset
365 // left (NumberOfLoopInstrToAlign defined in c2_globals.hpp)
a61af66fc99e Initial load
duke
parents:
diff changeset
366 // in current fetch line (OptoLoopAlignment) or the padding
a61af66fc99e Initial load
duke
parents:
diff changeset
367 // is big (> MaxLoopPad).
a61af66fc99e Initial load
duke
parents:
diff changeset
368 // Set MaxLoopPad to 11 for new Intel cpus to reduce number of
a61af66fc99e Initial load
duke
parents:
diff changeset
369 // generated NOP instructions. 11 is the largest size of one
a61af66fc99e Initial load
duke
parents:
diff changeset
370 // address NOP instruction '0F 1F' (see Assembler::nop(i)).
a61af66fc99e Initial load
duke
parents:
diff changeset
371 MaxLoopPad = 11;
a61af66fc99e Initial load
duke
parents:
diff changeset
372 }
a61af66fc99e Initial load
duke
parents:
diff changeset
373 #endif // COMPILER2
a61af66fc99e Initial load
duke
parents:
diff changeset
374 }
a61af66fc99e Initial load
duke
parents:
diff changeset
375 }
a61af66fc99e Initial load
duke
parents:
diff changeset
376
a61af66fc99e Initial load
duke
parents:
diff changeset
377 assert(0 <= ReadPrefetchInstr && ReadPrefetchInstr <= 3, "invalid value");
a61af66fc99e Initial load
duke
parents:
diff changeset
378 assert(0 <= AllocatePrefetchInstr && AllocatePrefetchInstr <= 3, "invalid value");
a61af66fc99e Initial load
duke
parents:
diff changeset
379
a61af66fc99e Initial load
duke
parents:
diff changeset
380 // set valid Prefetch instruction
a61af66fc99e Initial load
duke
parents:
diff changeset
381 if( ReadPrefetchInstr < 0 ) ReadPrefetchInstr = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
382 if( ReadPrefetchInstr > 3 ) ReadPrefetchInstr = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
383 if( ReadPrefetchInstr == 3 && !supports_3dnow() ) ReadPrefetchInstr = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
384 if( !supports_sse() && supports_3dnow() ) ReadPrefetchInstr = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
385
a61af66fc99e Initial load
duke
parents:
diff changeset
386 if( AllocatePrefetchInstr < 0 ) AllocatePrefetchInstr = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
387 if( AllocatePrefetchInstr > 3 ) AllocatePrefetchInstr = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
388 if( AllocatePrefetchInstr == 3 && !supports_3dnow() ) AllocatePrefetchInstr=0;
a61af66fc99e Initial load
duke
parents:
diff changeset
389 if( !supports_sse() && supports_3dnow() ) AllocatePrefetchInstr = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
390
a61af66fc99e Initial load
duke
parents:
diff changeset
391 // Allocation prefetch settings
a61af66fc99e Initial load
duke
parents:
diff changeset
392 intx cache_line_size = L1_data_cache_line_size();
a61af66fc99e Initial load
duke
parents:
diff changeset
393 if( cache_line_size > AllocatePrefetchStepSize )
a61af66fc99e Initial load
duke
parents:
diff changeset
394 AllocatePrefetchStepSize = cache_line_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
395 if( FLAG_IS_DEFAULT(AllocatePrefetchLines) )
a61af66fc99e Initial load
duke
parents:
diff changeset
396 AllocatePrefetchLines = 3; // Optimistic value
a61af66fc99e Initial load
duke
parents:
diff changeset
397 assert(AllocatePrefetchLines > 0, "invalid value");
a61af66fc99e Initial load
duke
parents:
diff changeset
398 if( AllocatePrefetchLines < 1 ) // set valid value in product VM
a61af66fc99e Initial load
duke
parents:
diff changeset
399 AllocatePrefetchLines = 1; // Conservative value
a61af66fc99e Initial load
duke
parents:
diff changeset
400
a61af66fc99e Initial load
duke
parents:
diff changeset
401 AllocatePrefetchDistance = allocate_prefetch_distance();
a61af66fc99e Initial load
duke
parents:
diff changeset
402 AllocatePrefetchStyle = allocate_prefetch_style();
a61af66fc99e Initial load
duke
parents:
diff changeset
403
a61af66fc99e Initial load
duke
parents:
diff changeset
404 if( AllocatePrefetchStyle == 2 && is_intel() &&
a61af66fc99e Initial load
duke
parents:
diff changeset
405 cpu_family() == 6 && supports_sse3() ) { // watermark prefetching on Core
a61af66fc99e Initial load
duke
parents:
diff changeset
406 AllocatePrefetchDistance = 320;
a61af66fc99e Initial load
duke
parents:
diff changeset
407 }
a61af66fc99e Initial load
duke
parents:
diff changeset
408 assert(AllocatePrefetchDistance % AllocatePrefetchStepSize == 0, "invalid value");
a61af66fc99e Initial load
duke
parents:
diff changeset
409
a61af66fc99e Initial load
duke
parents:
diff changeset
410 #ifndef PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
411 if (PrintMiscellaneous && Verbose) {
a61af66fc99e Initial load
duke
parents:
diff changeset
412 tty->print_cr("Logical CPUs per package: %u",
a61af66fc99e Initial load
duke
parents:
diff changeset
413 logical_processors_per_package());
a61af66fc99e Initial load
duke
parents:
diff changeset
414 tty->print_cr("UseSSE=%d",UseSSE);
a61af66fc99e Initial load
duke
parents:
diff changeset
415 tty->print("Allocation: ");
a61af66fc99e Initial load
duke
parents:
diff changeset
416 if (AllocatePrefetchStyle <= 0 || UseSSE == 0 && !supports_3dnow()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
417 tty->print_cr("no prefetching");
a61af66fc99e Initial load
duke
parents:
diff changeset
418 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
419 if (UseSSE == 0 && supports_3dnow()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
420 tty->print("PREFETCHW");
a61af66fc99e Initial load
duke
parents:
diff changeset
421 } else if (UseSSE >= 1) {
a61af66fc99e Initial load
duke
parents:
diff changeset
422 if (AllocatePrefetchInstr == 0) {
a61af66fc99e Initial load
duke
parents:
diff changeset
423 tty->print("PREFETCHNTA");
a61af66fc99e Initial load
duke
parents:
diff changeset
424 } else if (AllocatePrefetchInstr == 1) {
a61af66fc99e Initial load
duke
parents:
diff changeset
425 tty->print("PREFETCHT0");
a61af66fc99e Initial load
duke
parents:
diff changeset
426 } else if (AllocatePrefetchInstr == 2) {
a61af66fc99e Initial load
duke
parents:
diff changeset
427 tty->print("PREFETCHT2");
a61af66fc99e Initial load
duke
parents:
diff changeset
428 } else if (AllocatePrefetchInstr == 3) {
a61af66fc99e Initial load
duke
parents:
diff changeset
429 tty->print("PREFETCHW");
a61af66fc99e Initial load
duke
parents:
diff changeset
430 }
a61af66fc99e Initial load
duke
parents:
diff changeset
431 }
a61af66fc99e Initial load
duke
parents:
diff changeset
432 if (AllocatePrefetchLines > 1) {
a61af66fc99e Initial load
duke
parents:
diff changeset
433 tty->print_cr(" %d, %d lines with step %d bytes", AllocatePrefetchDistance, AllocatePrefetchLines, AllocatePrefetchStepSize);
a61af66fc99e Initial load
duke
parents:
diff changeset
434 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
435 tty->print_cr(" %d, one line", AllocatePrefetchDistance);
a61af66fc99e Initial load
duke
parents:
diff changeset
436 }
a61af66fc99e Initial load
duke
parents:
diff changeset
437 }
a61af66fc99e Initial load
duke
parents:
diff changeset
438 }
a61af66fc99e Initial load
duke
parents:
diff changeset
439 #endif // !PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
440 }
a61af66fc99e Initial load
duke
parents:
diff changeset
441
a61af66fc99e Initial load
duke
parents:
diff changeset
442 void VM_Version::initialize() {
a61af66fc99e Initial load
duke
parents:
diff changeset
443 ResourceMark rm;
a61af66fc99e Initial load
duke
parents:
diff changeset
444 // Making this stub must be FIRST use of assembler
a61af66fc99e Initial load
duke
parents:
diff changeset
445
a61af66fc99e Initial load
duke
parents:
diff changeset
446 stub_blob = BufferBlob::create("getPsrInfo_stub", stub_size);
a61af66fc99e Initial load
duke
parents:
diff changeset
447 if (stub_blob == NULL) {
a61af66fc99e Initial load
duke
parents:
diff changeset
448 vm_exit_during_initialization("Unable to allocate getPsrInfo_stub");
a61af66fc99e Initial load
duke
parents:
diff changeset
449 }
a61af66fc99e Initial load
duke
parents:
diff changeset
450 CodeBuffer c(stub_blob->instructions_begin(),
a61af66fc99e Initial load
duke
parents:
diff changeset
451 stub_blob->instructions_size());
a61af66fc99e Initial load
duke
parents:
diff changeset
452 VM_Version_StubGenerator g(&c);
a61af66fc99e Initial load
duke
parents:
diff changeset
453 getPsrInfo_stub = CAST_TO_FN_PTR(getPsrInfo_stub_t,
a61af66fc99e Initial load
duke
parents:
diff changeset
454 g.generate_getPsrInfo());
a61af66fc99e Initial load
duke
parents:
diff changeset
455
a61af66fc99e Initial load
duke
parents:
diff changeset
456 get_processor_features();
a61af66fc99e Initial load
duke
parents:
diff changeset
457 }