mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
cleanup: Re-run return_directly.cocci
Coccinelle's indentation of virt_create_plic() results in a long line. Avoid that by mimicking the old indentation manually. Don't touch tests/tcg/mips/user/. I'm not sure these files are ours to make style cleanups on. They might be imported third-party code, which we should leave as is to not complicate future updates. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250407082643.2310002-2-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
91d0d16b44
commit
720a0e417e
10 changed files with 20 additions and 51 deletions
|
@ -1276,27 +1276,22 @@ static FWCfgState *create_fw_cfg(const MachineState *ms)
|
|||
static DeviceState *virt_create_plic(const MemMapEntry *memmap, int socket,
|
||||
int base_hartid, int hart_count)
|
||||
{
|
||||
DeviceState *ret;
|
||||
g_autofree char *plic_hart_config = NULL;
|
||||
|
||||
/* Per-socket PLIC hart topology configuration string */
|
||||
plic_hart_config = riscv_plic_hart_config_string(hart_count);
|
||||
|
||||
/* Per-socket PLIC */
|
||||
ret = sifive_plic_create(
|
||||
memmap[VIRT_PLIC].base + socket * memmap[VIRT_PLIC].size,
|
||||
plic_hart_config, hart_count, base_hartid,
|
||||
VIRT_IRQCHIP_NUM_SOURCES,
|
||||
((1U << VIRT_IRQCHIP_NUM_PRIO_BITS) - 1),
|
||||
VIRT_PLIC_PRIORITY_BASE,
|
||||
VIRT_PLIC_PENDING_BASE,
|
||||
VIRT_PLIC_ENABLE_BASE,
|
||||
VIRT_PLIC_ENABLE_STRIDE,
|
||||
VIRT_PLIC_CONTEXT_BASE,
|
||||
VIRT_PLIC_CONTEXT_STRIDE,
|
||||
memmap[VIRT_PLIC].size);
|
||||
|
||||
return ret;
|
||||
return sifive_plic_create(
|
||||
memmap[VIRT_PLIC].base + socket * memmap[VIRT_PLIC].size,
|
||||
plic_hart_config, hart_count, base_hartid,
|
||||
VIRT_IRQCHIP_NUM_SOURCES,
|
||||
((1U << VIRT_IRQCHIP_NUM_PRIO_BITS) - 1),
|
||||
VIRT_PLIC_PRIORITY_BASE, VIRT_PLIC_PENDING_BASE,
|
||||
VIRT_PLIC_ENABLE_BASE, VIRT_PLIC_ENABLE_STRIDE,
|
||||
VIRT_PLIC_CONTEXT_BASE,
|
||||
VIRT_PLIC_CONTEXT_STRIDE,
|
||||
memmap[VIRT_PLIC].size);
|
||||
}
|
||||
|
||||
static DeviceState *virt_create_aia(RISCVVirtAIAType aia_type, int aia_guests,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue