@@ -57,25 +57,20 @@ use std::task::{Context, Poll, Waker};
57
57
) ,
58
58
repr( align( 128 ) )
59
59
) ]
60
- // arm, mips, mips64, riscv64, sparc, and hexagon have 32-byte cache line size.
60
+ // arm, mips, mips64, sparc, and hexagon have 32-byte cache line size.
61
61
//
62
62
// Sources:
63
63
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_arm.go#L7
64
64
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_mips.go#L7
65
65
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_mipsle.go#L7
66
66
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_mips64x.go#L9
67
- // - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_riscv64.go#L7
68
67
// - https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/arch/sparc/include/asm/cache.h#L17
69
68
// - https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/arch/hexagon/include/asm/cache.h#L12
70
- //
71
- // riscv32 is assumed not to exceed the cache line size of riscv64.
72
69
#[ cfg_attr(
73
70
any(
74
71
target_arch = "arm" ,
75
72
target_arch = "mips" ,
76
73
target_arch = "mips64" ,
77
- target_arch = "riscv32" ,
78
- target_arch = "riscv64" ,
79
74
target_arch = "sparc" ,
80
75
target_arch = "hexagon" ,
81
76
) ,
@@ -92,12 +87,13 @@ use std::task::{Context, Poll, Waker};
92
87
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_s390x.go#L7
93
88
// - https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/arch/s390/include/asm/cache.h#L13
94
89
#[ cfg_attr( target_arch = "s390x" , repr( align( 256 ) ) ) ]
95
- // x86, wasm, and sparc64 have 64-byte cache line size.
90
+ // x86, riscv, wasm, and sparc64 have 64-byte cache line size.
96
91
//
97
92
// Sources:
98
93
// - https://github.com/golang/go/blob/dda2991c2ea0c5914714469c4defc2562a907230/src/internal/cpu/cpu_x86.go#L9
99
94
// - https://github.com/golang/go/blob/3dd58676054223962cd915bb0934d1f9f489d4d2/src/internal/cpu/cpu_wasm.go#L7
100
95
// - https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/arch/sparc/include/asm/cache.h#L19
96
+ // - https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/arch/riscv/include/asm/cache.h#L10
101
97
//
102
98
// All others are assumed to have 64-byte cache line size.
103
99
#[ cfg_attr(
@@ -108,8 +104,6 @@ use std::task::{Context, Poll, Waker};
108
104
target_arch = "arm" ,
109
105
target_arch = "mips" ,
110
106
target_arch = "mips64" ,
111
- target_arch = "riscv32" ,
112
- target_arch = "riscv64" ,
113
107
target_arch = "sparc" ,
114
108
target_arch = "hexagon" ,
115
109
target_arch = "m68k" ,
0 commit comments