mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
tcg: Split out tcg/oversized-guest.h
Move a use of TARGET_LONG_BITS out of tcg/tcg.h. Include the new file only where required. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
23
include/tcg/oversized-guest.h
Normal file
23
include/tcg/oversized-guest.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Define TCG_OVERSIZED_GUEST
|
||||
* Copyright (c) 2008 Fabrice Bellard
|
||||
*/
|
||||
|
||||
#ifndef EXEC_TCG_OVERSIZED_GUEST_H
|
||||
#define EXEC_TCG_OVERSIZED_GUEST_H
|
||||
|
||||
#include "tcg-target-reg-bits.h"
|
||||
#include "cpu-param.h"
|
||||
|
||||
/*
|
||||
* Oversized TCG guests make things like MTTCG hard
|
||||
* as we can't use atomics for cputlb updates.
|
||||
*/
|
||||
#if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
|
||||
#define TCG_OVERSIZED_GUEST 1
|
||||
#else
|
||||
#define TCG_OVERSIZED_GUEST 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -59,15 +59,6 @@ typedef uint64_t tcg_target_ulong;
|
||||
#error unsupported
|
||||
#endif
|
||||
|
||||
/* Oversized TCG guests make things like MTTCG hard
|
||||
* as we can't use atomics for cputlb updates.
|
||||
*/
|
||||
#if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
|
||||
#define TCG_OVERSIZED_GUEST 1
|
||||
#else
|
||||
#define TCG_OVERSIZED_GUEST 0
|
||||
#endif
|
||||
|
||||
#if TCG_TARGET_NB_REGS <= 32
|
||||
typedef uint32_t TCGRegSet;
|
||||
#elif TCG_TARGET_NB_REGS <= 64
|
||||
|
||||
Reference in New Issue
Block a user