mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Get TEST_LIBC_STR passing on AARCH64
It's now possible to run commands like: make -j8 m=aarch64 o/aarch64/test/libc/str Which will cross-compile and run the test suites in a qemu-aarch64 binary that's vendored in the third_party/qemu/ folder within your x86_64 build environment.
This commit is contained in:
parent
45186c74ac
commit
414667b1c9
24 changed files with 657 additions and 61 deletions
|
@ -18,6 +18,8 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.internal.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
.initbss 202,_init_kHalfCache3
|
||||
// Half size of level 3 cache in bytes.
|
||||
kHalfCache3:
|
||||
|
@ -60,3 +62,14 @@ kHalfCache3:
|
|||
4: shr %eax
|
||||
stosq
|
||||
.init.end 202,_init_kHalfCache3
|
||||
|
||||
#else
|
||||
|
||||
.rodata
|
||||
.align 8
|
||||
kHalfCache3:
|
||||
.quad 4 * 1024 * 1024
|
||||
.endobj kHalfCache3,globl
|
||||
.previous
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue