xref: /openbmc/qemu/tcg/tcg-internal.h (revision 5ff7258cc649dd5a3752485f285411e3915c9aba)
1*5ff7258cSRichard Henderson /*
2*5ff7258cSRichard Henderson  * Internal declarations for Tiny Code Generator for QEMU
3*5ff7258cSRichard Henderson  *
4*5ff7258cSRichard Henderson  * Copyright (c) 2008 Fabrice Bellard
5*5ff7258cSRichard Henderson  *
6*5ff7258cSRichard Henderson  * Permission is hereby granted, free of charge, to any person obtaining a copy
7*5ff7258cSRichard Henderson  * of this software and associated documentation files (the "Software"), to deal
8*5ff7258cSRichard Henderson  * in the Software without restriction, including without limitation the rights
9*5ff7258cSRichard Henderson  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10*5ff7258cSRichard Henderson  * copies of the Software, and to permit persons to whom the Software is
11*5ff7258cSRichard Henderson  * furnished to do so, subject to the following conditions:
12*5ff7258cSRichard Henderson  *
13*5ff7258cSRichard Henderson  * The above copyright notice and this permission notice shall be included in
14*5ff7258cSRichard Henderson  * all copies or substantial portions of the Software.
15*5ff7258cSRichard Henderson  *
16*5ff7258cSRichard Henderson  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*5ff7258cSRichard Henderson  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*5ff7258cSRichard Henderson  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19*5ff7258cSRichard Henderson  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20*5ff7258cSRichard Henderson  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21*5ff7258cSRichard Henderson  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22*5ff7258cSRichard Henderson  * THE SOFTWARE.
23*5ff7258cSRichard Henderson  */
24*5ff7258cSRichard Henderson 
25*5ff7258cSRichard Henderson #ifndef TCG_INTERNAL_H
26*5ff7258cSRichard Henderson #define TCG_INTERNAL_H 1
27*5ff7258cSRichard Henderson 
28*5ff7258cSRichard Henderson #define TCG_HIGHWATER 1024
29*5ff7258cSRichard Henderson 
30*5ff7258cSRichard Henderson extern TCGContext **tcg_ctxs;
31*5ff7258cSRichard Henderson extern unsigned int n_tcg_ctxs;
32*5ff7258cSRichard Henderson 
33*5ff7258cSRichard Henderson bool tcg_region_alloc(TCGContext *s);
34*5ff7258cSRichard Henderson void tcg_region_initial_alloc(TCGContext *s);
35*5ff7258cSRichard Henderson void tcg_region_prologue_set(TCGContext *s);
36*5ff7258cSRichard Henderson 
37*5ff7258cSRichard Henderson #endif /* TCG_INTERNAL_H */
38