remove uc->cpus

This commit is contained in:
Ryan Hileman
2016-09-23 07:38:21 -07:00
parent 60a7371ec2
commit cb615fdba7
21 changed files with 108 additions and 226 deletions

View File

@@ -24,14 +24,11 @@
bool cpu_exists(struct uc_struct* uc, int64_t id)
{
CPUState *cpu;
CPUState *cpu = uc->cpu;
CPUClass *cc = CPU_GET_CLASS(uc, cpu);
CPU_FOREACH(cpu) {
CPUClass *cc = CPU_GET_CLASS(uc, cpu);
if (cc->get_arch_id(cpu) == id) {
return true;
}
if (cc->get_arch_id(cpu) == id) {
return true;
}
return false;
}