From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPFM0-0003ED-Md for qemu-devel@nongnu.org; Tue, 20 Nov 2018 18:22:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPFLw-00009e-WA for qemu-devel@nongnu.org; Tue, 20 Nov 2018 18:22:48 -0500 MIME-Version: 1.0 References: <2aa0f464-c9c4-3d59-81da-952279f56843@linaro.org> In-Reply-To: From: Alistair Francis Date: Tue, 20 Nov 2018 15:22:09 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [RFC v1 20/23] riscv: tcg-target: Add the target init code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Alistair Francis , "qemu-devel@nongnu.org Developers" , qemu-riscv@nongnu.org On Mon, Nov 19, 2018 at 10:55 PM Richard Henderson wrote: > > On 11/20/18 12:04 AM, Alistair Francis wrote: > > On Fri, Nov 16, 2018 at 9:26 AM Richard Henderson > > wrote: > >> > >> On 11/15/18 11:36 PM, Alistair Francis wrote: > >>> + tcg_regset_set_reg(s->reserved_regs, TCG_REG_L0); > >>> + tcg_regset_set_reg(s->reserved_regs, TCG_REG_L1); > >>> + tcg_regset_set_reg(s->reserved_regs, TCG_REG_RA); > >> > >> Why are these three reserved? > > > > Do these not need to be? I thought we had to reserve them. > > The return address, I presume, has been saved by the prologue. I see no reason > why it can't be yet another call-clobbered register. Ok, removed. > > As for the other two... what are they supposed to be? They were old temp registers. L1 wasn't even used and I have replace L0 with TMP0 as we have enough tmp registers. Alistair > > > r~