add loong64 support (#106)

* fix loong64 support

* fix cacheLineSize to CacheLineSize

Co-authored-by: Xi Zhang <zhangxi@loongson.cn>
This commit is contained in:
Xi Zhang 2022-10-18 05:13:41 +08:00 committed by GitHub
parent 54f1f4e2f9
commit 862fe372d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
cpu/cpu_loong64.go Normal file
View file

@ -0,0 +1,13 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build loong64
// +build loong64
package cpu
const CacheLineSize = 64
func initOptions() {
}