target/riscv: Align the data type of reset vector address
authorDylan Jhong <dylan@andestech.com>
Mon, 29 Mar 2021 03:48:01 +0000 (11:48 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 11 May 2021 10:01:10 +0000 (20:01 +1000)
Use target_ulong to instead of uint64_t on reset vector address
to adapt on both 32/64 machine.

Signed-off-by: Dylan Jhong <dylan@andestech.com>
Signed-off-by: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210329034801.22667-1-dylan@andestech.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c

index 86e7dbeb2012ee2546b444d428c10666ec52d430..047d6344fe8b7faf91aa2c3b0462cd804f3fa91e 100644 (file)
@@ -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, target_ulong resetvec)
 {
 #ifndef CONFIG_USER_ONLY
     env->resetvec = resetvec;