* [PATCH V2] target/riscv: Align the data type of reset vector address
@ 2021-03-25 5:52 Dylan Jhong
2021-03-25 9:28 ` Dylan Jhong
0 siblings, 1 reply; 2+ messages in thread
From: Dylan Jhong @ 2021-03-25 5:52 UTC (permalink / raw)
To: qemu-riscv, qemu-devel, palmer, Alistair.Francis, sagark, kbastian
Cc: ruinland, bmeng.cn, x5710999x, alankao, Dylan Jhong
Signed-off-by: Dylan Jhong <dylan@andestech.com>
Signed-off-by: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
---
target/riscv/cpu.c | 2 +-
target/riscv/cpu.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 7d6ed80f6b..4ac901245a 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, target_ulong resetvec)
{
#ifndef CONFIG_USER_ONLY
env->resetvec = resetvec;
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 0a33d387ba..d9d7891666 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -303,7 +303,7 @@ struct RISCVCPU {
uint16_t elen;
bool mmu;
bool pmp;
- uint64_t resetvec;
+ target_ulong resetvec;
} cfg;
};
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] target/riscv: Align the data type of reset vector address
2021-03-25 5:52 [PATCH V2] target/riscv: Align the data type of reset vector address Dylan Jhong
@ 2021-03-25 9:28 ` Dylan Jhong
0 siblings, 0 replies; 2+ messages in thread
From: Dylan Jhong @ 2021-03-25 9:28 UTC (permalink / raw)
To: qemu-riscv, qemu-devel, palmer, Alistair.Francis, sagark, kbastian
Cc: Ruinland Chuan-Tzu Tsa(蔡傳資),
bmeng.cn, x5710999x,
Alan Quey-Liang Kao(高魁良)
Hi All,
Please ignore this patch.
There is a compile error while building 32bit qemu.
The error occurs in ./target/riscv/cpu.c:557
"DEFINE_PROP_UINT64("resetvec", RISCVCPU, cfg.resetvec, DEFAULT_RSTVEC)"
It should be written differently according to 32bit or 64bit machine.
I'll send patch v3 to fix this issue.
Sorry for my mistake.
Regards,
Dylan
On Thu, Mar 25, 2021 at 01:52:13PM +0800, Dylan Dai-Rong Jhong(鍾岱融) wrote:
> Signed-off-by: Dylan Jhong <dylan@andestech.com>
> Signed-off-by: Ruinland ChuanTzu Tsai <ruinland@andestech.com>
> ---
> target/riscv/cpu.c | 2 +-
> target/riscv/cpu.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index 7d6ed80f6b..4ac901245a 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, target_ulong resetvec)
> {
> #ifndef CONFIG_USER_ONLY
> env->resetvec = resetvec;
> diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
> index 0a33d387ba..d9d7891666 100644
> --- a/target/riscv/cpu.h
> +++ b/target/riscv/cpu.h
> @@ -303,7 +303,7 @@ struct RISCVCPU {
> uint16_t elen;
> bool mmu;
> bool pmp;
> - uint64_t resetvec;
> + target_ulong resetvec;
> } cfg;
> };
>
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-25 9:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 5:52 [PATCH V2] target/riscv: Align the data type of reset vector address Dylan Jhong
2021-03-25 9:28 ` Dylan Jhong
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).