mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 22:57:43 -05:00
Configure: set cache line size for loongarch64
Section 8.2 table 54, registers 0x11 - 0x14 (2^6 = 64 bytes) <https://loongson.github.io/LoongArch-Documentation/Loongson-3A5000-usermanual-EN.html#instruction-set-features-implemented-in-3a5000> There is no intent to cover 32-bit LoongArch which acceptably falls through to the default.
This commit is contained in:
1 parent
e01f4fe3a9
commit
be84ac8bda
1 file changed
+5
@@ -130,6 +130,11 @@ case "$NGX_MACHINE" in
|
||||
NGX_MACH_CACHE_LINE=256
|
||||
;;
|
||||
|
||||
loongarch64)
|
||||
have=NGX_ALIGNMENT value=16 . auto/define
|
||||
NGX_MACH_CACHE_LINE=64
|
||||
;;
|
||||
|
||||
*)
|
||||
have=NGX_ALIGNMENT value=16 . auto/define
|
||||
NGX_MACH_CACHE_LINE=32
|
||||
|
||||
Reference in new issue
Block a user