some more cleanup
This commit is contained in:
parent
68f2bdc641
commit
df8237175f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user