qga/qapi-schema: Move command description right after command name
[qemu/armbru.git] / accel / tcg / internal-common.h
blobedefd0dcb75fd76e6fc13ebf8ddf5fb3d521bed3
1 /*
2 * Internal execution defines for qemu (target agnostic)
4 * Copyright (c) 2003 Fabrice Bellard
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
9 #ifndef ACCEL_TCG_INTERNAL_COMMON_H
10 #define ACCEL_TCG_INTERNAL_COMMON_H
12 #include "exec/translation-block.h"
14 extern int64_t max_delay;
15 extern int64_t max_advance;
18 * Return true if CS is not running in parallel with other cpus, either
19 * because there are no other cpus or we are within an exclusive context.
21 static inline bool cpu_in_serial_context(CPUState *cs)
23 return !(cs->tcg_cflags & CF_PARALLEL) || cpu_in_exclusive_context(cs);
26 #endif