RISC-V: Use ROM base address and size from memmap
commit6b01e3277e0e189a8f064b94c4f761e4efadd758
authorMichael Clark <mjc@sifive.com>
Sat, 3 Mar 2018 22:15:09 +0000 (4 11:15 +1300)
committerMichael Clark <mjc@sifive.com>
Sat, 5 May 2018 22:39:38 +0000 (6 10:39 +1200)
tree71087fecc3f2d577198824f480645a6f9089915d
parent77ff5bba315d4453ae97ff90ba7698fb1ccc077c
RISC-V: Use ROM base address and size from memmap

Another case of replacing hard coded constants, this time
referring to the definition in the virt machine's memmap.

Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c
include/hw/riscv/virt.h