[compat] fix spinlock default ctor causing crash on OpenBSD
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
7da9381eea
commit
29e687994d
3 changed files with 5 additions and 5 deletions
2
docs/build/OpenBSD.md
vendored
2
docs/build/OpenBSD.md
vendored
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pkg_add -u
|
pkg_add -u
|
||||||
pkg_add cmake nasm git boost unzip--iconv autoconf-2.72p0 bash ffmpeg glslang gmake llvm-19.1.7p3
|
pkg_add cmake nasm git boost unzip--iconv autoconf-2.72p0 bash ffmpeg glslang gmake llvm-19.1.7p3 qt6
|
||||||
git --recursive https://git.eden-emu.dev/eden-emu/eden
|
git --recursive https://git.eden-emu.dev/eden-emu/eden
|
||||||
cmake -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DDYNARMIC_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_BUILD_TYPE=Debug -DENABLE_QT=OFF -DENABLE_OPENSSL=OFF -DENABLE_WEB_SERVICE=OFF -B /usr/obj/eden
|
cmake -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DDYNARMIC_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_BUILD_TYPE=Debug -DENABLE_QT=OFF -DENABLE_OPENSSL=OFF -DENABLE_WEB_SERVICE=OFF -B /usr/obj/eden
|
||||||
```
|
```
|
||||||
|
|
|
@ -225,10 +225,10 @@ bool IsUnderRosetta() {
|
||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT
|
||||||
constexpr auto default_cg_mode = Xbyak::DontSetProtectRWE;
|
static const auto default_cg_mode = Xbyak::DontSetProtectRWE;
|
||||||
#else
|
#else
|
||||||
constexpr auto default_cg_mode = nullptr; //Allow RWE
|
static const auto default_cg_mode = nullptr; //Allow RWE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BlockOfCode::BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp)
|
BlockOfCode::BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp)
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace {
|
||||||
struct SpinLockImpl {
|
struct SpinLockImpl {
|
||||||
void Initialize();
|
void Initialize();
|
||||||
|
|
||||||
Xbyak::CodeGenerator code;
|
Xbyak::CodeGenerator code = Xbyak::CodeGenerator(4096, Xbyak::DontSetProtectRWE);
|
||||||
|
|
||||||
void (*lock)(volatile int*);
|
void (*lock)(volatile int*);
|
||||||
void (*unlock)(volatile int*);
|
void (*unlock)(volatile int*);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue