It is now handled inside lightrec_set_cycles_per_opcode().
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
deps/lightrec/reaper.o
endif
OBJS += deps/lightrec/tlsf/tlsf.o
-OBJS += libpcsxcore/lightrec/plugin.o \
- libpcsxcore/lightrec/internals.o
+OBJS += libpcsxcore/lightrec/plugin.o
OBJS += deps/lightning/lib/jit_disasm.o \
deps/lightning/lib/jit_memory.o \
deps/lightning/lib/jit_names.o \
+++ /dev/null
-// internals: stuff lightrec's public API doesn't provide
-#include <assert.h>
-#include "lightrec-private.h"
-#include "blockcache.h"
-#include "internals.h"
-
-void lightrec_plugin_clear_block_caches(struct lightrec_state *state)
-{
- if (state == NULL)
- return;
-
- lightrec_invalidate_all(state);
- lightrec_free_block_cache(state->block_cache);
- state->block_cache = lightrec_blockcache_init(state);
- assert(state->block_cache);
-}
+++ /dev/null
-struct lightrec_state;
-void lightrec_plugin_clear_block_caches(struct lightrec_state *state);
#endif
#include "lightrec.h"
-#include "internals.h"
#include "../cdrom.h"
#include "../gpu.h"
#include "../gte.h"
if (cycles_per_op_old && cycles_per_op_old != cycles_per_op) {
SysPrintf("lightrec: reinit block cache for cycles_per_op %.2f\n",
cycles_per_op / 1024.f);
- lightrec_plugin_clear_block_caches(lightrec_state);
}
cycles_per_op_old = cycles_per_op;
lightrec_set_cycles_per_opcode(lightrec_state, cycles_per_op);