Skip to content
Snippets Groups Projects
Commit 01e723bf authored by Dylan Jhong's avatar Dylan Jhong Committed by Alistair Francis
Browse files

target/riscv: Align the data type of reset vector address


Use target_ulong to instead of uint64_t on reset vector address
to adapt on both 32/64 machine.

Signed-off-by: default avatarDylan Jhong <dylan@andestech.com>
Signed-off-by: default avatarRuinland ChuanTzu Tsai <ruinland@andestech.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-id: 20210329034801.22667-1-dylan@andestech.com
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent d00d739b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment