On Fri, Jun 26, 2020 at 8:33 AM Atish Patra <[email protected]> wrote: > > Currently, all riscv machines except sifive_u have identical reset vector > code implementations with memory addresses being different for all machines. > They can be easily combined into a single function in common code. > > Move it to common function and let all the machines use the common function. > > Signed-off-by: Atish Patra <[email protected]> > Reviewed-by: Alistair Francis <[email protected]> > --- > hw/riscv/boot.c | 45 +++++++++++++++++++++++++++++++++++++++++ > hw/riscv/sifive_u.c | 1 - > hw/riscv/spike.c | 41 +++---------------------------------- > hw/riscv/virt.c | 40 +++--------------------------------- > include/hw/riscv/boot.h | 2 ++ > 5 files changed, 53 insertions(+), 76 deletions(-) >
Reviewed-by: Bin Meng <[email protected]> Tested-by: Bin Meng <[email protected]>
