Skip to content

Commit bcd0ebb

Browse files
committed
internal/cpu: use correct variable when parsing CPU features lamcas and lam_bh on loong64
Change-Id: I5019f4e32243911f735f775bcb3c0dba5adb4162 Reviewed-on: https://go-review.googlesource.com/c/go/+/655395 Reviewed-by: David Chase <[email protected]> Reviewed-by: Junyang Shao <[email protected]> Reviewed-by: Meidan Li <[email protected]> Reviewed-by: sophie zhao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 4364893 commit bcd0ebb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal/cpu/cpu_loong64.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func doinit() {
4444
cfg2 := get_cpucfg(2)
4545

4646
Loong64.HasCRC32 = cfgIsSet(cfg1, cpucfg1_CRC32)
47-
Loong64.HasLAMCAS = cfgIsSet(cfg2, cpucfg2_LAM_BH)
48-
Loong64.HasLAM_BH = cfgIsSet(cfg2, cpucfg2_LAMCAS)
47+
Loong64.HasLAMCAS = cfgIsSet(cfg2, cpucfg2_LAMCAS)
48+
Loong64.HasLAM_BH = cfgIsSet(cfg2, cpucfg2_LAM_BH)
4949

5050
osInit()
5151
}

0 commit comments

Comments
 (0)