Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lPMJL-0000mz-E4 for mharc-qemu-riscv@gnu.org; Thu, 25 Mar 2021 05:29:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPMJG-0000lw-8l; Thu, 25 Mar 2021 05:29:47 -0400 Received: from exmail.andestech.com ([60.248.187.195]:14489 helo=ATCSQR.andestech.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPMJB-0003Zb-5e; Thu, 25 Mar 2021 05:29:45 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 12P9Sp7P049117; Thu, 25 Mar 2021 17:28:51 +0800 (GMT-8) (envelope-from dylan@andestech.com) Received: from andestech.com (10.0.15.65) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 17:28:53 +0800 Date: Thu, 25 Mar 2021 17:28:54 +0800 From: Dylan Jhong To: "qemu-riscv@nongnu.org" , "qemu-devel@nongnu.org" , "palmer@dabbelt.com" , "Alistair.Francis@wdc.com" , "sagark@eecs.berkeley.edu" , "kbastian@mail.uni-paderborn.de" CC: Ruinland Chuan-Tzu =?utf-8?B?VHNhKOiUoeWCs+izhyk=?= , Alan Quey-Liang =?utf-8?B?S2FvKOmrmOmtgeiJryk=?= , "bmeng.cn@gmail.com" , "x5710999x@gmail.com" Subject: Re: [PATCH V2] target/riscv: Align the data type of reset vector address Message-ID: <20210325092854.GA4635@andestech.com> References: <20210325055213.13464-1-dylan@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210325055213.13464-1-dylan@andestech.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.0.15.65] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 12P9Sp7P049117 Received-SPF: pass client-ip=60.248.187.195; envelope-from=dylan@andestech.com; helo=ATCSQR.andestech.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 09:29:48 -0000 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 > Signed-off-by: Ruinland ChuanTzu Tsai > --- > 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 >