summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlistair Francis2019-10-09 01:32:18 +0200
committerPalmer Dabbelt2019-10-28 15:47:28 +0100
commitfc41ae230e73df1822558a08a790a39c934e142d (patch)
tree9681330ad0e00449b24ab9f09cf33aac3f16cbbf /include
parentriscv/sifive_u: Manually define the machine (diff)
downloadqemu-fc41ae230e73df1822558a08a790a39c934e142d.tar.gz
qemu-fc41ae230e73df1822558a08a790a39c934e142d.tar.xz
qemu-fc41ae230e73df1822558a08a790a39c934e142d.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/riscv/sifive_u.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/riscv/sifive_u.h b/include/hw/riscv/sifive_u.h
index 794b958dcc..82667b5746 100644
--- a/include/hw/riscv/sifive_u.h
+++ b/include/hw/riscv/sifive_u.h
@@ -57,6 +57,8 @@ typedef struct SiFiveUState {
void *fdt;
int fdt_size;
+
+ bool start_in_flash;
} SiFiveUState;
enum {