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:
Alex Rønne Petersen 2025-09-17 21:21:09 +02:00
parent 5e9e1fb0c8
commit 4aa35160eb
No known key found for this signature in database
2 changed files with 13 additions and 3 deletions

View File

@ -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)

Binary file not shown.