From: Dylan Jhong <dylan@andestech.com>
To: "qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"palmer@dabbelt.com" <palmer@dabbelt.com>,
"Alistair.Francis@wdc.com" <Alistair.Francis@wdc.com>,
"sagark@eecs.berkeley.edu" <sagark@eecs.berkeley.edu>,
"kbastian@mail.uni-paderborn.de" <kbastian@mail.uni-paderborn.de>
Cc: "Ruinland Chuan-Tzu Tsa(蔡傳資)" <ruinland@andestech.com>,
"bmeng.cn@gmail.com" <bmeng.cn@gmail.com>,
"x5710999x@gmail.com" <x5710999x@gmail.com>,
"Alan Quey-Liang Kao(高魁良)" <alankao@andestech.com>
Subject: Re: [PATCH V2] target/riscv: Align the data type of reset vector address
Date: Thu, 25 Mar 2021 17:28:54 +0800 [thread overview]
Message-ID: <20210325092854.GA4635@andestech.com> (raw)
In-Reply-To: <20210325055213.13464-1-dylan@andestech.com>
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
>
prev parent reply other threads:[~2021-03-25 9:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210325092854.GA4635@andestech.com \
--to=dylan@andestech.com \
--cc=Alistair.Francis@wdc.com \
--cc=alankao@andestech.com \
--cc=bmeng.cn@gmail.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=palmer@dabbelt.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=ruinland@andestech.com \
--cc=sagark@eecs.berkeley.edu \
--cc=x5710999x@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).