diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-06-24 14:18:45 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-06-24 14:18:45 +0200 |
| commit | acc0d451bb83be5c8e349b497a261742bf8cd6f5 (patch) | |
| tree | 56c8b6d5f1914198b12e535798f6526c61736749 /src | |
| parent | 1f5ce7ec18c563a701bbe5fb69eaa7b76252ecd8 (diff) | |
| download | box64-acc0d451bb83be5c8e349b497a261742bf8cd6f5.tar.gz box64-acc0d451bb83be5c8e349b497a261742bf8cd6f5.zip | |
[LA64_DYNAREC] This should help certain builds (for #2769)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynarec/dynacache_reloc.c | 8 | ||||
| -rw-r--r-- | src/dynarec/dynacache_reloc.h | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/dynarec/dynacache_reloc.c b/src/dynarec/dynacache_reloc.c index d3d4fa0b..3184ad13 100644 --- a/src/dynarec/dynacache_reloc.c +++ b/src/dynarec/dynacache_reloc.c @@ -241,3 +241,11 @@ uintptr_t RelocGetNext() { return getConst(const_native_next); } + +#ifdef FAKE_GETCONST +inline uintptr_t getConst(native_consts_t which) +{ + (void)which; + return 0; // dummy +} +#endif \ No newline at end of file diff --git a/src/dynarec/dynacache_reloc.h b/src/dynarec/dynacache_reloc.h index 904788ea..dc86d8ac 100644 --- a/src/dynarec/dynacache_reloc.h +++ b/src/dynarec/dynacache_reloc.h @@ -13,11 +13,8 @@ typedef enum native_consts_s { const_native_next, const_last } native_consts_t; -inline uintptr_t getConst(native_consts_t which) -{ - (void)which; - return 0; // dummy -} +#define FAKE_GETCONST +uintptr_t getConst(native_consts_t which); #endif void AddRelocTable64Const(dynarec_native_t* dyn, int ninst, native_consts_t C, int pass); |