X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Femitter.h;h=c960a7fbb7da78a132d33bf55afc958387d612d4;hb=9e052883388b2b607a488e48b3cb6db52a0997dd;hp=57ededf9b796c43c30b82775bb66cdad262a580d;hpb=0adc619b5a5705d16cc6caea64951776ababbb96;p=pcsx_rearmed.git diff --git a/deps/lightrec/emitter.h b/deps/lightrec/emitter.h index 57ededf9..c960a7fb 100644 --- a/deps/lightrec/emitter.h +++ b/deps/lightrec/emitter.h @@ -1,15 +1,6 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* - * Copyright (C) 2014 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 __EMITTER_H__ @@ -18,11 +9,11 @@ #include "lightrec.h" struct block; +struct lightrec_cstate; struct opcode; -void lightrec_rec_opcode(const struct block *block, - const struct opcode *op, u32 pc); -void lightrec_emit_eob(const struct block *block, - const struct opcode *op, u32 pc); +void lightrec_rec_opcode(struct lightrec_cstate *state, const struct block *block, u16 offset); +void lightrec_emit_jump_to_interpreter(struct lightrec_cstate *state, + const struct block *block, u16 offset); #endif /* __EMITTER_H__ */