qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/riscv: Align the data type of reset vector address
@ 2021-03-23  9:14 Dylan Jhong
  2021-03-24 14:59 ` Alistair Francis
  0 siblings, 1 reply; 5+ messages in thread
From: Dylan Jhong @ 2021-03-23  9:14 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel
  Cc: sagark, alankao, kbastian, Dylan Jhong, alistair.francis,
	x5710999x, ruinland, palmer

Although the AE350 has not been upstream (preparing for v2),
the reset vector of the AE350 is known to be at the 2G position,
so this patch is corrected in advance.

Signed-off-by: Dylan Jhong <dylan@andestech.com>
Signed-off-by: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
---
 target/riscv/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 2a990f6253..0236abf169 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -137,7 +137,7 @@ static void set_feature(CPURISCVState *env, int feature)
     env->features |= (1ULL << feature);
 }
 
-static void set_resetvec(CPURISCVState *env, int resetvec)
+static void set_resetvec(CPURISCVState *env, uint64_t resetvec)
 {
 #ifndef CONFIG_USER_ONLY
     env->resetvec = resetvec;
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-25  4:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23  9:14 [PATCH] target/riscv: Align the data type of reset vector address Dylan Jhong
2021-03-24 14:59 ` Alistair Francis
2021-03-25  3:31   ` Dylan Jhong
2021-03-25  3:40     ` Bin Meng
2021-03-25  3:59       ` Bin Meng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).