riscv/sifive_u: Add the start-in-flash property

Add a property that when set to true QEMU will jump from the ROM code to
the start of flash memory instead of DRAM which is the default
behaviour.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Alistair Francis 2019-10-08 16:32:18 -07:00 committed by Palmer Dabbelt
parent 687caef13d
commit fc41ae230e
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
2 changed files with 31 additions and 1 deletions

View file

@ -57,6 +57,8 @@ typedef struct SiFiveUState {
void *fdt;
int fdt_size;
bool start_in_flash;
} SiFiveUState;
enum {