diff options
Diffstat (limited to 'test/wasm2c/minimal.txt')
-rw-r--r-- | test/wasm2c/minimal.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/wasm2c/minimal.txt b/test/wasm2c/minimal.txt index 3fb8ad8b..7ffa3bca 100644 --- a/test/wasm2c/minimal.txt +++ b/test/wasm2c/minimal.txt @@ -119,6 +119,14 @@ static inline void* wasm_rt_segue_read_base() { } } static inline void wasm_rt_segue_write_base(void* base) { +#if WASM_RT_SEGUE_FREE_SEGMENT + if (wasm_rt_last_segment_val == base) { + return; + } + + wasm_rt_last_segment_val = base; +#endif + if (wasm_rt_fsgsbase_inst_supported) { __builtin_ia32_wrgsbase64((uintptr_t)base); } else { |