diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-10 20:45:21 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-10 20:45:26 +0100 |
| commit | a5a7d9382ec09c89779ae66f3af2ca2255ea3003 (patch) | |
| tree | 6e1e55079aee2a6190766cf3d533662c44f0f48e /src/include/dynarec_native.h | |
| parent | bc770d908af3c310e2e0cd9e1fdc7ca6e0e80fb3 (diff) | |
| download | box64-a5a7d9382ec09c89779ae66f3af2ca2255ea3003.tar.gz box64-a5a7d9382ec09c89779ae66f3af2ca2255ea3003.zip | |
[DYNAREC] Limit temporary memory allocation on FillBlock64
Diffstat (limited to 'src/include/dynarec_native.h')
| -rw-r--r-- | src/include/dynarec_native.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/dynarec_native.h b/src/include/dynarec_native.h index 05bfc3b5..c61eb375 100644 --- a/src/include/dynarec_native.h +++ b/src/include/dynarec_native.h @@ -18,6 +18,8 @@ typedef struct instsize_s instsize_t; #define dynaFree box_free #endif +#define MAX_INSTS 8190 + void addInst(instsize_t* insts, size_t* size, int x64_size, int native_size); void CancelBlock64(int need_lock); |