aboutsummaryrefslogtreecommitdiff
path: root/accel/tcg/vcpu-state.h
blob: 2e3464b5eef949b68dff9f8798d1e90ee5d6c320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * 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