mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
stage1: update zig1.wasm
Needed due to LoongArch CPU model changes. Signed-off-by: Alex Rønne Petersen <alex@alexrp.com>
This commit is contained in:
parent
5e9e1fb0c8
commit
4aa35160eb
12
stage1/zig.h
12
stage1/zig.h
@ -4195,7 +4195,17 @@ static inline void* zig_x86_64_windows_teb(void) {
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(zig_x86)
|
||||
#if defined(zig_loongarch)
|
||||
|
||||
static inline void zig_loongarch_cpucfg(uint32_t word, uint32_t* result) {
|
||||
#if defined(zig_gnuc_asm)
|
||||
__asm__("cpucfg %[result], %[word]" : [result] "=r" (result) : [word] "r" (word));
|
||||
#else
|
||||
*result = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#elif defined(zig_x86)
|
||||
|
||||
static inline void zig_x86_cpuid(uint32_t leaf_id, uint32_t subid, uint32_t* eax, uint32_t* ebx, uint32_t* ecx, uint32_t* edx) {
|
||||
#if defined(zig_msvc)
|
||||
|
||||
BIN
stage1/zig1.wasm
BIN
stage1/zig1.wasm
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user