X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Fblockcache.h;h=3b782f47909be6f0e9016e3144e886bc329e9314;hb=98fa08a56df29aeed65dfbc7697603c90bc66144;hp=ff636514a01b52aacaf18f18eb4fa1f84b8e0042;hpb=70575e81838e2c8d842dd28c3fc7fbb91b395061;p=pcsx_rearmed.git diff --git a/deps/lightrec/blockcache.h b/deps/lightrec/blockcache.h index ff636514..3b782f47 100644 --- a/deps/lightrec/blockcache.h +++ b/deps/lightrec/blockcache.h @@ -1,15 +1,6 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* - * Copyright (C) 2014-2020 Paul Cercueil - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Copyright (C) 2014-2021 Paul Cercueil */ #ifndef __BLOCKCACHE_H__ @@ -20,6 +11,10 @@ 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); @@ -27,6 +22,6 @@ 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 block *block); +_Bool lightrec_block_is_outdated(struct lightrec_state *state, struct block *block); #endif /* __BLOCKCACHE_H__ */