some more cleanup

This commit is contained in:
Nguyen Anh Quynh 2020-06-08 11:18:52 +08:00
parent 68f2bdc641
commit df8237175f
2 changed files with 0 additions and 21 deletions

View File

@ -450,16 +450,6 @@ void async_run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
*/
CPUState *qemu_get_cpu(struct uc_struct *uc, int index);
/**
* cpu_exists:
* @id: Guest-exposed CPU ID to lookup.
*
* Search for CPU with specified ID.
*
* Returns: %true - CPU is found, %false - CPU isn't found.
*/
bool cpu_exists(struct uc_struct* uc, int64_t id);
#ifndef CONFIG_USER_ONLY
typedef void (*CPUInterruptHandler)(CPUState *, int);

View File

@ -23,17 +23,6 @@
#include "qemu/log.h"
#include "uc_priv.h"
bool cpu_exists(struct uc_struct* uc, int64_t id)
{
CPUState *cpu = uc->cpu;
CPUClass *cc = CPU_GET_CLASS(uc, cpu);
if (cc->get_arch_id(cpu) == id) {
return true;
}
return false;
}
bool cpu_paging_enabled(const CPUState *cpu)
{
CPUClass *cc = CPU_GET_CLASS(cpu->uc, cpu);