cpu_loong64.s 358 B

12345678910111213
  1. // Copyright 2025 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. #include "textflag.h"
  5. // func get_cpucfg(reg uint32) uint32
  6. TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0
  7. MOVW reg+0(FP), R5
  8. // CPUCFG R5, R4 = 0x00006ca4
  9. WORD $0x00006ca4
  10. MOVW R4, ret+8(FP)
  11. RET