diff options
| author | Bin Meng | 2020-09-01 03:38:56 +0200 |
|---|---|---|
| committer | Alistair Francis | 2020-09-10 00:54:18 +0200 |
| commit | 9b4c9b2b2a50fe4eb90d0ac2d8723b46ecb42511 (patch) | |
| tree | a17a73c4cda6e40394841b74bd5edcb852e9fb3c /include | |
| parent | riscv: sifive_test: Allow 16-bit writes to memory region (diff) | |
| download | qemu-9b4c9b2b2a50fe4eb90d0ac2d8723b46ecb42511.tar.gz qemu-9b4c9b2b2a50fe4eb90d0ac2d8723b46ecb42511.tar.xz qemu-9b4c9b2b2a50fe4eb90d0ac2d8723b46ecb42511.zip | |
target/riscv: cpu: Add a new 'resetvec' property
Currently the reset vector address is hard-coded in a RISC-V CPU's
instance_init() routine. In a real world we can have 2 exact same
CPUs except for the reset vector address, which is pretty common in
the RISC-V core IP licensing business.
Normally reset vector address is a configurable parameter. Let's
create a 64-bit property to store the reset vector address which
covers both 32-bit and 64-bit CPUs.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1598924352-89526-2-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
