Automated leading tab to spaces conversion.

This commit is contained in:
xorstream
2017-01-21 12:28:22 +11:00
parent df41c49e2d
commit 770c5616e2
69 changed files with 3839 additions and 3839 deletions

View File

@ -26,19 +26,19 @@ static const TypeInfo machine_info = {
sizeof(MachineClass),
sizeof(MachineState),
NULL,
NULL,
machine_initfn,
NULL,
NULL,
machine_finalize,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
true,
true,
};
void machine_register_types(struct uc_struct *uc)

View File

@ -284,20 +284,20 @@ static const TypeInfo device_type_info = {
TYPE_OBJECT,
sizeof(DeviceClass),
sizeof(DeviceState),
sizeof(DeviceState),
NULL,
device_initfn,
device_initfn,
device_post_init,
device_finalize,
NULL,
NULL,
device_class_init,
device_class_base_init,
NULL,
device_class_base_init,
NULL,
true,
true,
};
static void qbus_initfn(struct uc_struct *uc, Object *obj, void *opaque)
@ -321,20 +321,20 @@ static const TypeInfo bus_info = {
TYPE_OBJECT,
sizeof(BusClass),
sizeof(BusState),
sizeof(BusState),
NULL,
qbus_initfn,
NULL,
qbus_finalize,
NULL,
qbus_finalize,
NULL,
bus_class_init,
NULL,
NULL,
true,
NULL,
NULL,
true,
};
void qdev_register_types(struct uc_struct *uc)

View File

@ -154,25 +154,25 @@ static const TypeInfo pc_machine_info = {
sizeof(PCMachineClass),
sizeof(PCMachineState),
NULL,
NULL,
pc_machine_initfn,
NULL,
NULL,
NULL,
NULL,
NULL,
pc_machine_class_init,
NULL,
NULL,
true,
NULL,
NULL,
NULL,
// should this be added somehow?
//.interfaces = (InterfaceInfo[]) { { } },
pc_machine_class_init,
NULL,
NULL,
true,
NULL,
NULL,
// should this be added somehow?
//.interfaces = (InterfaceInfo[]) { { } },
};
void pc_machine_register_types(struct uc_struct *uc)

View File

@ -47,12 +47,12 @@ static int pc_init_pci(struct uc_struct *uc, MachineState *machine)
}
static QEMUMachine pc_i440fx_machine_v2_2 = {
"pc_piix",
"pc_piix",
"pc-i440fx-2.2",
pc_init_pci,
NULL,
255,
1,
255,
1,
UC_ARCH_X86, // X86
};

View File

@ -203,28 +203,28 @@ static void apic_class_init(struct uc_struct *uc, ObjectClass *klass, void *data
k->vapic_base_update = apic_vapic_base_update;
k->pre_save = apic_pre_save;
k->post_load = apic_post_load;
//printf("... init apic class\n");
//printf("... init apic class\n");
}
static const TypeInfo apic_info = {
"apic",
TYPE_APIC_COMMON,
TYPE_APIC_COMMON,
0,
0,
sizeof(APICCommonState),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
apic_class_init,
apic_class_init,
};
void apic_register_types(struct uc_struct *uc)
{
//printf("... register apic types\n");
//printf("... register apic types\n");
type_register_static(uc, &apic_info);
}

View File

@ -164,8 +164,8 @@ void apic_init_reset(struct uc_struct *uc, DeviceState *dev)
void apic_designate_bsp(struct uc_struct *uc, DeviceState *dev)
{
APICCommonState *s;
if (dev == NULL) {
if (dev == NULL) {
return;
}
@ -243,7 +243,7 @@ static void apic_common_class_init(struct uc_struct *uc, ObjectClass *klass, voi
* x86_cpu_apic_create()
*/
dc->cannot_instantiate_with_device_add_yet = true;
//printf("... init apic common class\n");
//printf("... init apic common class\n");
}
static const TypeInfo apic_common_type = {
@ -251,24 +251,24 @@ static const TypeInfo apic_common_type = {
TYPE_DEVICE,
sizeof(APICCommonClass),
sizeof(APICCommonState),
sizeof(APICCommonState),
NULL,
NULL,
NULL,
NULL,
NULL,
apic_common_class_init,
NULL,
NULL,
NULL,
NULL,
NULL,
true,
NULL,
apic_common_class_init,
NULL,
NULL,
true,
};
void apic_common_register_types(struct uc_struct *uc)
{
//printf("... register apic common\n");
//printf("... register apic common\n");
type_register_static(uc, &apic_common_type);
}

View File

@ -50,7 +50,7 @@ static void cpu_mips_timer_update(CPUMIPSState *env)
now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
wait = env->CP0_Compare - env->CP0_Count -
(uint32_t)muldiv64(now, TIMER_FREQ, get_ticks_per_sec());
(uint32_t)muldiv64(now, TIMER_FREQ, get_ticks_per_sec());
next = now + muldiv64(wait, get_ticks_per_sec(), TIMER_FREQ);
timer_mod(env->timer, next);
#endif