Skip to content

Commit 05e00fc

Browse files
authored
Fix llvm-libunwind context sizes (#114105)
* Fix llvm-libunwind context sizes * Update __libunwind_config.h * Revert riscv (we need to do it differently for 32 bit)
1 parent 3d68955 commit 05e00fc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/native/external/llvm-libunwind/include/__libunwind_config.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# if defined(__i386__)
4343
# define _LIBUNWIND_TARGET_I386
4444
# define _LIBUNWIND_CONTEXT_SIZE 13
45-
# define _LIBUNWIND_CURSOR_SIZE 19
45+
# define _LIBUNWIND_CURSOR_SIZE 20
4646
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86
4747
# elif defined(__x86_64__)
4848
# define _LIBUNWIND_TARGET_X86_64 1
@@ -178,17 +178,13 @@
178178
#if __loongarch_grlen == 64
179179
#define _LIBUNWIND_CONTEXT_SIZE 98
180180
#define _LIBUNWIND_CURSOR_SIZE 110
181-
#elif defined(HOST_WASM)
182-
#define _LIBUNWIND_TARGET_WASM 1
183-
// TODO: Determine the right values
184-
#define _LIBUNWIND_CONTEXT_SIZE 0xbadf00d
185-
#define _LIBUNWIND_CURSOR_SIZE 0xbadf00d
186181
#else
187182
#error "Unsupported LoongArch ABI"
188183
#endif
189184
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER \
190185
_LIBUNWIND_HIGHEST_DWARF_REGISTER_LOONGARCH
191186
#elif defined(__wasm__)
187+
#define _LIBUNWIND_TARGET_WASM 1
192188
// Unused
193189
#define _LIBUNWIND_CONTEXT_SIZE 0
194190
#define _LIBUNWIND_CURSOR_SIZE 0

0 commit comments

Comments
 (0)