X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Frecompiler.h;h=b9fc57981d17c6e08b15db88805096ca07b001e3;hb=0e720fb13f7933930608b62854ea8f4a9d97c934;hp=999a49fad8503467fc0b5fdc638092de415396a6;hpb=67b91c4b9c44f0d973d2d6a85481e3f437ccc583;p=pcsx_rearmed.git diff --git a/deps/lightrec/recompiler.h b/deps/lightrec/recompiler.h index 999a49fa..b9fc5798 100644 --- a/deps/lightrec/recompiler.h +++ b/deps/lightrec/recompiler.h @@ -1,15 +1,6 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* - * Copyright (C) 2019-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) 2019-2021 Paul Cercueil */ #ifndef __LIGHTREC_RECOMPILER_H__ @@ -24,6 +15,10 @@ void lightrec_free_recompiler(struct recompiler *rec); int lightrec_recompiler_add(struct recompiler *rec, struct block *block); void lightrec_recompiler_remove(struct recompiler *rec, struct block *block); -void * lightrec_recompiler_run_first_pass(struct block *block, u32 *pc); +void * lightrec_recompiler_run_first_pass(struct lightrec_state *state, + struct block *block, u32 *pc); + +void lightrec_code_alloc_lock(struct lightrec_state *state); +void lightrec_code_alloc_unlock(struct lightrec_state *state); #endif /* __LIGHTREC_RECOMPILER_H__ */