mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

Per [*]: "we're only interested in adopting SPDX for recording the licensing info, [not] any other SPDX metadata." Replace the 'SPDX-FileCopyrightText' and 'SPDX-FileContributor' tags added by Linaro by 'Copyright (c)' and 'Authors' words respectively. [*] https://lore.kernel.org/qemu-devel/20241007154548.1144961-4-berrange@redhat.com/ Inspired-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
23 lines
381 B
C
23 lines
381 B
C
/*
|
|
* TaskState helpers for QEMU
|
|
*
|
|
* Copyright (c) 2023 Linaro Ltd.
|
|
*
|
|
* Authors:
|
|
* Philippe Mathieu-Daudé
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef ACCEL_TCG_VCPU_STATE_H
|
|
#define ACCEL_TCG_VCPU_STATE_H
|
|
|
|
#include "hw/core/cpu.h"
|
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
static inline TaskState *get_task_state(const CPUState *cs)
|
|
{
|
|
return cs->opaque;
|
|
}
|
|
#endif
|
|
|
|
#endif
|