diff --git a/stage1/zig.h b/stage1/zig.h index 98e8e6a579..dedaeb4f96 100644 --- a/stage1/zig.h +++ b/stage1/zig.h @@ -99,6 +99,8 @@ #define zig_x86 #elif defined(__xtensa__) #define zig_xtensa +#elif defined (__z80) +#define zig_z80 #elif defined (__ez80) #define zig_ez80 #define zig_z80 @@ -261,6 +263,12 @@ #define zig_no_builtin #endif +#if zig_has_attribute(patchable_function_entry) +#define zig_patchable_function_entry(count) __attribute__((patchable_function_entry(count))) +#else +#define zig_patchable_function_entry(count) zig_patchable_function_entry_unavailable +#endif + #if zig_has_attribute(aligned) || defined(zig_tinyc) #define zig_under_align(alignment) __attribute__((aligned(alignment))) #elif defined(zig_msvc) @@ -6725,19 +6733,7 @@ static inline void* zig_e_zig_windows_peb(void) { #endif -#if defined(zig_loongarch) - -static inline void zig_e_zig_loongarch_cpucfg(uint32_t word, uint32_t* result) zig_mangled(zig_e_zig_loongarch_cpucfg, "zig_loongarch_cpucfg"); - -static inline void zig_e_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) && !defined(zig_x86_16) +#if defined(zig_x86) && !defined(zig_x86_16) static inline void zig_e_zig_x86_cpuid(uint32_t leaf_id, uint32_t subid, uint32_t* eax, uint32_t* ebx, uint32_t* ecx, uint32_t* edx) zig_mangled(zig_e_zig_x86_cpuid, "zig_x86_cpuid"); static inline uint32_t zig_e_zig_x86_get_xcr0(void) zig_mangled(zig_e_zig_x86_get_xcr0, "zig_x86_get_xcr0"); diff --git a/stage1/zig1.wasm b/stage1/zig1.wasm index 8587696fd7..36eecad204 100644 Binary files a/stage1/zig1.wasm and b/stage1/zig1.wasm differ