qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] target/riscv: Set the CPU resetvec directly


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 1/3] target/riscv: Set the CPU resetvec directly
Date: Sat, 17 Sep 2022 23:01:26 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 14/9/22 12:11, Alistair Francis via wrote:
Instead of using our properties to set a config value which then might
be used to set the resetvec (depending on your timing), let's instead
just set the resetvec directly in the env struct.

This allows us to set the reset vec from the command line with:
     -global driver=riscv.hart_array,property=resetvec,value=0x20000400

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
  target/riscv/cpu.h     |  3 +--
  target/riscv/cpu.c     | 13 +++----------
  target/riscv/machine.c |  6 +++---
  3 files changed, 7 insertions(+), 15 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]