[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 8/8] hw/riscv: virt: initialize the CBQRI example SoC
From: |
Drew Fustini |
Subject: |
[RFC PATCH 8/8] hw/riscv: virt: initialize the CBQRI example SoC |
Date: |
Sun, 16 Apr 2023 16:20:50 -0700 |
From: Nicolas Pitre <npitre@baylibre.com>
Initialize an example SoC that instantiates CBQRI capacity and bandwidth
controllers with specific parameters for testing purposes.
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
Note: this solution is not flexible enough for upstream inclusion.
Future work will allow CBQRI controllers to be configured by command
line options, and the controller will only be instantiated if the user
specifies a valid configuration.
hw/riscv/virt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 4e3efbee16f0..38edc4b91c93 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -34,6 +34,7 @@
#include "hw/riscv/riscv_hart.h"
#include "hw/riscv/virt.h"
#include "hw/riscv/boot.h"
+#include "hw/riscv/cbqri.h"
#include "hw/riscv/numa.h"
#include "hw/intc/riscv_aclint.h"
#include "hw/intc/riscv_aplic.h"
@@ -1519,6 +1520,8 @@ static void virt_machine_init(MachineState *machine)
}
virt_flash_map(s, system_memory);
+ example_soc_cbqri_init();
+
/* load/create device tree */
if (machine->dtb) {
machine->fdt = load_device_tree(machine->dtb, &s->fdt_size);
--
2.34.1
- [RFC PATCH 0/8] riscv: implement Ssqosid extension and CBQRI controllers, Drew Fustini, 2023/04/16
- [RFC PATCH 8/8] hw/riscv: virt: initialize the CBQRI example SoC,
Drew Fustini <=
- [RFC PATCH 4/8] hw/riscv: implement CBQRI memory controller, Drew Fustini, 2023/04/16
- [RFC PATCH 2/8] hw/riscv: define capabilities of CBQRI controllers, Drew Fustini, 2023/04/16
- [RFC PATCH 1/8] riscv: implement Ssqosid extension and sqoscfg CSR, Drew Fustini, 2023/04/16
- [RFC PATCH 7/8] hw/riscv: meson: add CBQRI options to the build, Drew Fustini, 2023/04/16
- [RFC PATCH 3/8] hw/riscv: implement CBQRI capacity controller, Drew Fustini, 2023/04/16
- [RFC PATCH 5/8] hw/riscv: instantiate CBQRI controllers for an example SoC, Drew Fustini, 2023/04/16
- [RFC PATCH 6/8] hw/riscv: Kconfig: add CBQRI options, Drew Fustini, 2023/04/16