mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 14:31:52 -06:00
hw/loongarch/virt: Checkpatch cleanup
Code cleanup with directory hw/loongarch/, removing errors from command "scripts/checkpatch.pl hw/loongarch/*" Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250103064514.2660438-1-maobibo@loongson.cn> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
5c27cbd7b2
commit
c48cc87ba1
3 changed files with 9 additions and 6 deletions
|
@ -456,8 +456,9 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, MachineState *machine)
|
|||
|
||||
acpi_table_begin(&table, table_data);
|
||||
dsdt = init_aml_allocator();
|
||||
for (i = 0; i < VIRT_UART_COUNT; i++)
|
||||
for (i = 0; i < VIRT_UART_COUNT; i++) {
|
||||
build_uart_device_aml(dsdt, i);
|
||||
}
|
||||
build_pci_device_aml(dsdt, lvms);
|
||||
build_la_ged_aml(dsdt, machine);
|
||||
build_flash_aml(dsdt, lvms);
|
||||
|
|
|
@ -331,8 +331,9 @@ static void fdt_add_uart_node(LoongArchVirtMachineState *lvms,
|
|||
qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "ns16550a");
|
||||
qemu_fdt_setprop_cells(ms->fdt, nodename, "reg", 0x0, base, 0x0, size);
|
||||
qemu_fdt_setprop_cell(ms->fdt, nodename, "clock-frequency", 100000000);
|
||||
if (chosen)
|
||||
if (chosen) {
|
||||
qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", nodename);
|
||||
}
|
||||
qemu_fdt_setprop_cells(ms->fdt, nodename, "interrupts", irq, 0x4);
|
||||
qemu_fdt_setprop_cell(ms->fdt, nodename, "interrupt-parent",
|
||||
*pch_pic_phandle);
|
||||
|
@ -1175,9 +1176,10 @@ static void fw_cfg_add_memory(MachineState *ms)
|
|||
size = ram_size - numa_info[0].node_mem;
|
||||
}
|
||||
|
||||
if (size)
|
||||
if (size) {
|
||||
memmap_add_entry(base, size, 1);
|
||||
}
|
||||
}
|
||||
|
||||
static void virt_init(MachineState *machine)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue