From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUFUY-0002cT-Ci for qemu-devel@nongnu.org; Fri, 12 Feb 2016 10:18:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUFUT-00046a-LG for qemu-devel@nongnu.org; Fri, 12 Feb 2016 10:18:42 -0500 Date: Fri, 12 Feb 2016 16:16:08 +0100 From: "Edgar E. Iglesias" Message-ID: <20160212151608.GI31433@toto> References: <1455217909-28317-1-git-send-email-peter.maydell@linaro.org> <1455217909-28317-4-git-send-email-peter.maydell@linaro.org> <20160212151218.GG31433@toto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 3/4] target-arm: Combine user-only and softmmu get/set_r13_banked() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Sergey Fedorov , qemu-arm , QEMU Developers , Patch Tracking On Fri, Feb 12, 2016 at 03:15:22PM +0000, Peter Maydell wrote: > On 12 February 2016 at 15:12, Edgar E. Iglesias > wrote: > > On Thu, Feb 11, 2016 at 07:11:48PM +0000, Peter Maydell wrote: > >> The user-mode versions of get/set_r13_banked() exist just to assert > >> if they're ever called -- the translate time code should never > >> emit calls to them because SRS from user mode always UNDEF. > >> There's no code in the softmmu versions that can't compile in > >> CONFIG_USER_ONLY, so combine the two functions rather than > >> having completely split versions under ifdefs. > >> > >> Signed-off-by: Peter Maydell > > > > Hi Peter, > > > > Do we really need the assert? > > If we keep it, can't we have it for both -user and -softmmu (avoiding the ifdef)? > > I would be happy to entirely drop the assert, yes. OK, thanks. With that change: Reviewed-by: Edgar E. Iglesias