|
@@ -116,65 +116,6 @@ void cpu_exit(CPUState *cpu)
|
|
qatomic_set(&cpu->icount_decr_ptr->u16.high, -1);
|
|
qatomic_set(&cpu->icount_decr_ptr->u16.high, -1);
|
|
}
|
|
}
|
|
|
|
|
|
-int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
|
- void *opaque)
|
|
|
|
-{
|
|
|
|
- CPUClass *cc = CPU_GET_CLASS(cpu);
|
|
|
|
-
|
|
|
|
- return (*cc->write_elf32_qemunote)(f, cpu, opaque);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static int cpu_common_write_elf32_qemunote(WriteCoreDumpFunction f,
|
|
|
|
- CPUState *cpu, void *opaque)
|
|
|
|
-{
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-int cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
|
- int cpuid, void *opaque)
|
|
|
|
-{
|
|
|
|
- CPUClass *cc = CPU_GET_CLASS(cpu);
|
|
|
|
-
|
|
|
|
- return (*cc->write_elf32_note)(f, cpu, cpuid, opaque);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static int cpu_common_write_elf32_note(WriteCoreDumpFunction f,
|
|
|
|
- CPUState *cpu, int cpuid,
|
|
|
|
- void *opaque)
|
|
|
|
-{
|
|
|
|
- return -1;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-int cpu_write_elf64_qemunote(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
|
- void *opaque)
|
|
|
|
-{
|
|
|
|
- CPUClass *cc = CPU_GET_CLASS(cpu);
|
|
|
|
-
|
|
|
|
- return (*cc->write_elf64_qemunote)(f, cpu, opaque);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static int cpu_common_write_elf64_qemunote(WriteCoreDumpFunction f,
|
|
|
|
- CPUState *cpu, void *opaque)
|
|
|
|
-{
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-int cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cpu,
|
|
|
|
- int cpuid, void *opaque)
|
|
|
|
-{
|
|
|
|
- CPUClass *cc = CPU_GET_CLASS(cpu);
|
|
|
|
-
|
|
|
|
- return (*cc->write_elf64_note)(f, cpu, cpuid, opaque);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static int cpu_common_write_elf64_note(WriteCoreDumpFunction f,
|
|
|
|
- CPUState *cpu, int cpuid,
|
|
|
|
- void *opaque)
|
|
|
|
-{
|
|
|
|
- return -1;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static int cpu_common_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg)
|
|
static int cpu_common_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|
|
@@ -377,10 +318,6 @@ static void cpu_class_init(ObjectClass *klass, void *data)
|
|
k->has_work = cpu_common_has_work;
|
|
k->has_work = cpu_common_has_work;
|
|
k->get_paging_enabled = cpu_common_get_paging_enabled;
|
|
k->get_paging_enabled = cpu_common_get_paging_enabled;
|
|
k->get_memory_mapping = cpu_common_get_memory_mapping;
|
|
k->get_memory_mapping = cpu_common_get_memory_mapping;
|
|
- k->write_elf32_qemunote = cpu_common_write_elf32_qemunote;
|
|
|
|
- k->write_elf32_note = cpu_common_write_elf32_note;
|
|
|
|
- k->write_elf64_qemunote = cpu_common_write_elf64_qemunote;
|
|
|
|
- k->write_elf64_note = cpu_common_write_elf64_note;
|
|
|
|
k->gdb_read_register = cpu_common_gdb_read_register;
|
|
k->gdb_read_register = cpu_common_gdb_read_register;
|
|
k->gdb_write_register = cpu_common_gdb_write_register;
|
|
k->gdb_write_register = cpu_common_gdb_write_register;
|
|
set_bit(DEVICE_CATEGORY_CPU, dc->categories);
|
|
set_bit(DEVICE_CATEGORY_CPU, dc->categories);
|