From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNXPi-00041Q-TR for qemu-devel@nongnu.org; Mon, 16 Feb 2015 20:57:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNXPd-0002XZ-VJ for qemu-devel@nongnu.org; Mon, 16 Feb 2015 20:57:26 -0500 Received: from out1134-179.mail.aliyun.com ([42.120.134.179]:32203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNXPd-0002XK-Jr for qemu-devel@nongnu.org; Mon, 16 Feb 2015 20:57:21 -0500 Message-ID: <54E2A1D2.90102@sunrus.com.cn> Date: Tue, 17 Feb 2015 10:05:06 +0800 From: Chen Gang S MIME-Version: 1.0 References: <54E1F540.5070900@sunrus.com.cn> <54E1F56E.803@sunrus.com.cn> <54E219F3.5090307@twiddle.net> <54E27485.9010908@sunrus.com.cn> <54E28B33.9070109@ezchip.com> In-Reply-To: <54E28B33.9070109@ezchip.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Metcalf , Richard Henderson , Peter Maydell , Riku Voipio , "walt@tilera.com" Cc: qemu-devel On 2/17/15 08:28, Chris Metcalf wrote: > On 2/16/2015 5:51 PM, Chen Gang S wrote: > >> And excuse me, I still want to know, is there a real world register as a >> PC register for tile (e.g. just like 'rip' for x86_64) which can be used >> by software programer? (is it in SPR?) > > There is no register you can read that holds the current PC. You can > issue a "lnk REG" instruction to load the address of the following register > into register REG. And if you have interrupted the machine execution > with an interrupt or fault, you will find the interrupted address in an SPR. > But the current PC is not otherwise accessible. > OK, thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed