xref: /openbmc/qemu/include/tcg/oversized-guest.h (revision bad5cfcd)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Define TCG_OVERSIZED_GUEST
4  * Copyright (c) 2008 Fabrice Bellard
5  */
6 
7 #ifndef EXEC_TCG_OVERSIZED_GUEST_H
8 #define EXEC_TCG_OVERSIZED_GUEST_H
9 
10 #include "tcg-target-reg-bits.h"
11 #include "cpu-param.h"
12 
13 /*
14  * Oversized TCG guests make things like MTTCG hard
15  * as we can't use atomics for cputlb updates.
16  */
17 #if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
18 #define TCG_OVERSIZED_GUEST 1
19 #else
20 #define TCG_OVERSIZED_GUEST 0
21 #endif
22 
23 #endif
24