You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
449 B

  1. // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
  2. // +build !amd64,!386 gccgo
  3. package cpuid
  4. func initCPU() {
  5. cpuid = func(op uint32) (eax, ebx, ecx, edx uint32) {
  6. return 0, 0, 0, 0
  7. }
  8. cpuidex = func(op, op2 uint32) (eax, ebx, ecx, edx uint32) {
  9. return 0, 0, 0, 0
  10. }
  11. xgetbv = func(index uint32) (eax, edx uint32) {
  12. return 0, 0
  13. }
  14. rdtscpAsm = func() (eax, ebx, ecx, edx uint32) {
  15. return 0, 0, 0, 0
  16. }
  17. }