Skip to content

Commit c64c51d

Browse files
mengzhuogopherbot
authored andcommitted
unix: update riscv64 hwprobe to Linux kernel 6.10
Change-Id: Ic74816df459b17302a3ba746060b49e987e5da5c Reviewed-on: https://go-review.googlesource.com/c/sys/+/604435 Reviewed-by: Mark Ryan <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent da77c6b commit c64c51d

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

unix/linux/types.go

+66
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,46 @@ struct my_can_bittiming_const {
451451
#define RISCV_HWPROBE_EXT_ZBA (1 << 3)
452452
#define RISCV_HWPROBE_EXT_ZBB (1 << 4)
453453
#define RISCV_HWPROBE_EXT_ZBS (1 << 5)
454+
#define RISCV_HWPROBE_EXT_ZICBOZ (1 << 6)
455+
#define RISCV_HWPROBE_EXT_ZBC (1 << 7)
456+
#define RISCV_HWPROBE_EXT_ZBKB (1 << 8)
457+
#define RISCV_HWPROBE_EXT_ZBKC (1 << 9)
458+
#define RISCV_HWPROBE_EXT_ZBKX (1 << 10)
459+
#define RISCV_HWPROBE_EXT_ZKND (1 << 11)
460+
#define RISCV_HWPROBE_EXT_ZKNE (1 << 12)
461+
#define RISCV_HWPROBE_EXT_ZKNH (1 << 13)
462+
#define RISCV_HWPROBE_EXT_ZKSED (1 << 14)
463+
#define RISCV_HWPROBE_EXT_ZKSH (1 << 15)
464+
#define RISCV_HWPROBE_EXT_ZKT (1 << 16)
465+
#define RISCV_HWPROBE_EXT_ZVBB (1 << 17)
466+
#define RISCV_HWPROBE_EXT_ZVBC (1 << 18)
467+
#define RISCV_HWPROBE_EXT_ZVKB (1 << 19)
468+
#define RISCV_HWPROBE_EXT_ZVKG (1 << 20)
469+
#define RISCV_HWPROBE_EXT_ZVKNED (1 << 21)
470+
#define RISCV_HWPROBE_EXT_ZVKNHA (1 << 22)
471+
#define RISCV_HWPROBE_EXT_ZVKNHB (1 << 23)
472+
#define RISCV_HWPROBE_EXT_ZVKSED (1 << 24)
473+
#define RISCV_HWPROBE_EXT_ZVKSH (1 << 25)
474+
#define RISCV_HWPROBE_EXT_ZVKT (1 << 26)
475+
#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
476+
#define RISCV_HWPROBE_EXT_ZFHMIN (1 << 28)
477+
#define RISCV_HWPROBE_EXT_ZIHINTNTL (1 << 29)
478+
#define RISCV_HWPROBE_EXT_ZVFH (1 << 30)
479+
#define RISCV_HWPROBE_EXT_ZVFHMIN (1ULL << 31)
480+
#define RISCV_HWPROBE_EXT_ZFA (1ULL << 32)
481+
#define RISCV_HWPROBE_EXT_ZTSO (1ULL << 33)
482+
#define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34)
483+
#define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35)
484+
#define RISCV_HWPROBE_EXT_ZIHINTPAUSE (1ULL << 36)
454485
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
455486
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
456487
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)
457488
#define RISCV_HWPROBE_MISALIGNED_SLOW (2 << 0)
458489
#define RISCV_HWPROBE_MISALIGNED_FAST (3 << 0)
459490
#define RISCV_HWPROBE_MISALIGNED_UNSUPPORTED (4 << 0)
460491
#define RISCV_HWPROBE_MISALIGNED_MASK (7 << 0)
492+
#define RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE 6
493+
#define RISCV_HWPROBE_WHICH_CPUS (1 << 0)
461494
462495
struct riscv_hwprobe {};
463496
#endif
@@ -5906,13 +5939,46 @@ const (
59065939
RISCV_HWPROBE_EXT_ZBA = C.RISCV_HWPROBE_EXT_ZBA
59075940
RISCV_HWPROBE_EXT_ZBB = C.RISCV_HWPROBE_EXT_ZBB
59085941
RISCV_HWPROBE_EXT_ZBS = C.RISCV_HWPROBE_EXT_ZBS
5942+
RISCV_HWPROBE_EXT_ZICBOZ = C.RISCV_HWPROBE_EXT_ZICBOZ
5943+
RISCV_HWPROBE_EXT_ZBC = C.RISCV_HWPROBE_EXT_ZBC
5944+
RISCV_HWPROBE_EXT_ZBKB = C.RISCV_HWPROBE_EXT_ZBKB
5945+
RISCV_HWPROBE_EXT_ZBKC = C.RISCV_HWPROBE_EXT_ZBKC
5946+
RISCV_HWPROBE_EXT_ZBKX = C.RISCV_HWPROBE_EXT_ZBKX
5947+
RISCV_HWPROBE_EXT_ZKND = C.RISCV_HWPROBE_EXT_ZKND
5948+
RISCV_HWPROBE_EXT_ZKNE = C.RISCV_HWPROBE_EXT_ZKNE
5949+
RISCV_HWPROBE_EXT_ZKNH = C.RISCV_HWPROBE_EXT_ZKNH
5950+
RISCV_HWPROBE_EXT_ZKSED = C.RISCV_HWPROBE_EXT_ZKSED
5951+
RISCV_HWPROBE_EXT_ZKSH = C.RISCV_HWPROBE_EXT_ZKSH
5952+
RISCV_HWPROBE_EXT_ZKT = C.RISCV_HWPROBE_EXT_ZKT
5953+
RISCV_HWPROBE_EXT_ZVBB = C.RISCV_HWPROBE_EXT_ZVBB
5954+
RISCV_HWPROBE_EXT_ZVBC = C.RISCV_HWPROBE_EXT_ZVBC
5955+
RISCV_HWPROBE_EXT_ZVKB = C.RISCV_HWPROBE_EXT_ZVKB
5956+
RISCV_HWPROBE_EXT_ZVKG = C.RISCV_HWPROBE_EXT_ZVKG
5957+
RISCV_HWPROBE_EXT_ZVKNED = C.RISCV_HWPROBE_EXT_ZVKNED
5958+
RISCV_HWPROBE_EXT_ZVKNHA = C.RISCV_HWPROBE_EXT_ZVKNHA
5959+
RISCV_HWPROBE_EXT_ZVKNHB = C.RISCV_HWPROBE_EXT_ZVKNHB
5960+
RISCV_HWPROBE_EXT_ZVKSED = C.RISCV_HWPROBE_EXT_ZVKSED
5961+
RISCV_HWPROBE_EXT_ZVKSH = C.RISCV_HWPROBE_EXT_ZVKSH
5962+
RISCV_HWPROBE_EXT_ZVKT = C.RISCV_HWPROBE_EXT_ZVKT
5963+
RISCV_HWPROBE_EXT_ZFH = C.RISCV_HWPROBE_EXT_ZFH
5964+
RISCV_HWPROBE_EXT_ZFHMIN = C.RISCV_HWPROBE_EXT_ZFHMIN
5965+
RISCV_HWPROBE_EXT_ZIHINTNTL = C.RISCV_HWPROBE_EXT_ZIHINTNTL
5966+
RISCV_HWPROBE_EXT_ZVFH = C.RISCV_HWPROBE_EXT_ZVFH
5967+
RISCV_HWPROBE_EXT_ZVFHMIN = C.RISCV_HWPROBE_EXT_ZVFHMIN
5968+
RISCV_HWPROBE_EXT_ZFA = C.RISCV_HWPROBE_EXT_ZFA
5969+
RISCV_HWPROBE_EXT_ZTSO = C.RISCV_HWPROBE_EXT_ZTSO
5970+
RISCV_HWPROBE_EXT_ZACAS = C.RISCV_HWPROBE_EXT_ZACAS
5971+
RISCV_HWPROBE_EXT_ZICOND = C.RISCV_HWPROBE_EXT_ZICOND
5972+
RISCV_HWPROBE_EXT_ZIHINTPAUSE = C.RISCV_HWPROBE_EXT_ZIHINTPAUSE
59095973
RISCV_HWPROBE_KEY_CPUPERF_0 = C.RISCV_HWPROBE_KEY_CPUPERF_0
59105974
RISCV_HWPROBE_MISALIGNED_UNKNOWN = C.RISCV_HWPROBE_MISALIGNED_UNKNOWN
59115975
RISCV_HWPROBE_MISALIGNED_EMULATED = C.RISCV_HWPROBE_MISALIGNED_EMULATED
59125976
RISCV_HWPROBE_MISALIGNED_SLOW = C.RISCV_HWPROBE_MISALIGNED_SLOW
59135977
RISCV_HWPROBE_MISALIGNED_FAST = C.RISCV_HWPROBE_MISALIGNED_FAST
59145978
RISCV_HWPROBE_MISALIGNED_UNSUPPORTED = C.RISCV_HWPROBE_MISALIGNED_UNSUPPORTED
59155979
RISCV_HWPROBE_MISALIGNED_MASK = C.RISCV_HWPROBE_MISALIGNED_MASK
5980+
RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE = C.RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE
5981+
RISCV_HWPROBE_WHICH_CPUS = C.RISCV_HWPROBE_WHICH_CPUS
59165982
)
59175983

59185984
type SchedAttr C.struct_sched_attr

unix/ztypes_linux_riscv64.go

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)