riscv: hart: Add a "hartid-base" property to RISC-V hart array
commite8c56787cd78f5d26285120f85bf898f5d3693b9
authorBin Meng <bmeng.cn@gmail.com>
Fri, 6 Sep 2019 16:20:04 +0000 (6 09:20 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:47 +0000 (17 08:42 -0700)
treeb0fecb271860e7ad6c35fcf5763035e59913e931
parent91c985851dd57df3b003e7bd91f1cf544b3a288d
riscv: hart: Add a "hartid-base" property to RISC-V hart array

At present each hart's hartid in a RISC-V hart array is assigned
the same value of its index in the hart array. But for a system
that has multiple hart arrays, this is not the case any more.

Add a new "hartid-base" property so that hartid number can be
assigned based on the property value.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/riscv_hart.c
include/hw/riscv/riscv_hart.h