Files
QEMU-S5L8950X/plugins/system.c
T
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

25 lines
575 B
C

/*
* QEMU Plugin system-emulation helpers
*
* Helpers that are specific to system emulation.
*
* Copyright (C) 2017, Emilio G. Cota <[email protected]>
* Copyright (C) 2019-2025, Linaro
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "qemu/osdep.h"
#include "qemu/plugin.h"
#include "hw/core/boards.h"
#include "plugin.h"
void qemu_plugin_fillin_mode_info(qemu_info_t *info)
{
MachineState *ms = MACHINE(qdev_get_machine());
info->system_emulation = true;
info->system.smp_vcpus = ms->smp.cpus;
info->system.max_vcpus = ms->smp.max_cpus;
}