mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-26 18:30:26 +00:00
781094c597
subrepo: subdir: "deps/lightrec" merged: "0df4ec86" upstream: origin: "https://github.com/pcercuei/lightrec.git" branch: "master" commit: "0df4ec86" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596"
28 lines
925 B
C
28 lines
925 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2014-2021 Paul Cercueil <paul@crapouillou.net>
|
|
*/
|
|
|
|
#ifndef __BLOCKCACHE_H__
|
|
#define __BLOCKCACHE_H__
|
|
|
|
#include "lightrec.h"
|
|
|
|
struct blockcache;
|
|
|
|
struct block * lightrec_find_block(struct blockcache *cache, u32 pc);
|
|
struct block * lightrec_find_block_from_lut(struct blockcache *cache,
|
|
u16 lut_entry, u32 addr_in_block);
|
|
u16 lightrec_get_lut_entry(const struct block *block);
|
|
|
|
void lightrec_register_block(struct blockcache *cache, struct block *block);
|
|
void lightrec_unregister_block(struct blockcache *cache, struct block *block);
|
|
|
|
struct blockcache * lightrec_blockcache_init(struct lightrec_state *state);
|
|
void lightrec_free_block_cache(struct blockcache *cache);
|
|
|
|
u32 lightrec_calculate_block_hash(const struct block *block);
|
|
_Bool lightrec_block_is_outdated(struct lightrec_state *state, struct block *block);
|
|
|
|
#endif /* __BLOCKCACHE_H__ */
|