projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9360e9
)
riscv: sifive_u: Allow up to 4 CPUs to be created
author
Alistair Francis
<Alistair.Francis@wdc.com>
Sat, 16 Mar 2019 01:21:29 +0000
(
01:21
+0000)
committer
Palmer Dabbelt
<palmer@sifive.com>
Tue, 19 Mar 2019 12:14:40 +0000
(
05:14
-0700)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/sifive_u.c
patch
|
blob
|
history
diff --git
a/hw/riscv/sifive_u.c
b/hw/riscv/sifive_u.c
index 7bc25820feaa0deeba3f5d493d216fd5fe9d4a40..3199238ba01e833734d36b5f9c3fe113fe128790 100644
(file)
--- a/
hw/riscv/sifive_u.c
+++ b/
hw/riscv/sifive_u.c
@@
-398,7
+398,10
@@
static void riscv_sifive_u_machine_init(MachineClass *mc)
{
mc->desc = "RISC-V Board compatible with SiFive U SDK";
mc->init = riscv_sifive_u_init;
- mc->max_cpus = 1;
+ /* The real hardware has 5 CPUs, but one of them is a small embedded power
+ * management CPU.
+ */
+ mc->max_cpus = 4;
}
DEFINE_MACHINE("sifive_u", riscv_sifive_u_machine_init)