X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Femitter.h;h=b7f54fd9eab8b56f037fb5a93f791d539de52a5a;hb=98fa08a56df29aeed65dfbc7697603c90bc66144;hp=ec3fc78137a554cc21f7cf8ce6cc0d1ba5f810d8;hpb=519a9ea123f92f3b02c059a32e4e9fd1170c8cbb;p=pcsx_rearmed.git diff --git a/deps/lightrec/emitter.h b/deps/lightrec/emitter.h index ec3fc781..b7f54fd9 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-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 __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_eob(struct lightrec_cstate *state, const struct block *block, + u16 offset, _Bool after_op); #endif /* __EMITTER_H__ */