diff options
| author | Alistair Francis | 2021-10-22 08:01:30 +0200 |
|---|---|---|
| committer | Alistair Francis | 2021-10-28 06:39:23 +0200 |
| commit | bf357e1d72cd8b7b590518dacdf4b65beb2c61e2 (patch) | |
| tree | de9048d963d3ad62e876083564fa2189b1079e6d /include/hw/riscv | |
| parent | hw/riscv: virt: Don't use a macro for the PLIC configuration (diff) | |
| download | qemu-bf357e1d72cd8b7b590518dacdf4b65beb2c61e2.tar.gz qemu-bf357e1d72cd8b7b590518dacdf4b65beb2c61e2.tar.xz qemu-bf357e1d72cd8b7b590518dacdf4b65beb2c61e2.zip | |
hw/riscv: boot: Add a PLIC config string function
Add a generic function that can create the PLIC strings.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: 20211022060133.3045020-2-alistair.francis@opensource.wdc.com
Diffstat (limited to 'include/hw/riscv')
| -rw-r--r-- | include/hw/riscv/boot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/riscv/boot.h b/include/hw/riscv/boot.h index 0e89400b09..baff11dd8a 100644 --- a/include/hw/riscv/boot.h +++ b/include/hw/riscv/boot.h @@ -31,6 +31,8 @@ bool riscv_is_32bit(RISCVHartArrayState *harts); +char *riscv_plic_hart_config_string(int hart_count); + target_ulong riscv_calc_kernel_start_addr(RISCVHartArrayState *harts, target_ulong firmware_end_addr); target_ulong riscv_find_and_load_firmware(MachineState *machine, |
