Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lutek-0001dv-Uu for qemu-devel@nongnu.org; Fri, 17 Apr 2009 15:23:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Luteg-0001T9-0G for qemu-devel@nongnu.org; Fri, 17 Apr 2009 15:23:22 -0400 Received: from [199.232.76.173] (port=59473 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lutef-0001Sy-Rm for qemu-devel@nongnu.org; Fri, 17 Apr 2009 15:23:17 -0400 Received: from mail-fx0-f169.google.com ([209.85.220.169]:36162) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lutef-0003T6-HK for qemu-devel@nongnu.org; Fri, 17 Apr 2009 15:23:17 -0400 Received: by fxm17 with SMTP id 17so956936fxm.34 for ; Fri, 17 Apr 2009 12:23:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <576983.83240.qm@web23103.mail.ird.yahoo.com> References: <576983.83240.qm@web23103.mail.ird.yahoo.com> Date: Fri, 17 Apr 2009 22:23:15 +0300 Message-ID: Subject: Re: [Qemu-devel] How to Disable Fixed Host Register Usage in QEMU TCG version From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 4/17/09, Prasad wrote: > > > Hi, > > I am trying to disable the use of dedicated host registers for variables > such as 'env' 'T0' and 'T1'. > I have tried on 0.9.1 version of QEMU, when I remove register keyword and > asm(AREG0) in the below line from exec.h > for env, T0, and T1 everything works fine. > register CPUARMState *env asm(AREG0) > > But with the TCG version things does not seem to work, Can someone guide me, > how can I do the same with TCG version. > Waiting for your reply... This is not possible anymore, at least without heavy modifications to tcg/hostarch/tcg-target.c (qemu_ld, qemu_st code) and target-arch/translate.c (creates TCG variables which use AREG0 as base register).