From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNW1u-0002ND-DA for qemu-devel@nongnu.org; Mon, 16 Feb 2015 19:28:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNW1r-0007zv-7T for qemu-devel@nongnu.org; Mon, 16 Feb 2015 19:28:46 -0500 Received: from mail-db3on0066.outbound.protection.outlook.com ([157.55.234.66]:48450 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNW1q-0007zn-VS for qemu-devel@nongnu.org; Mon, 16 Feb 2015 19:28:43 -0500 Message-ID: <54E28B33.9070109@ezchip.com> Date: Mon, 16 Feb 2015 19:28:35 -0500 From: Chris Metcalf MIME-Version: 1.0 References: <54E1F540.5070900@sunrus.com.cn> <54E1F56E.803@sunrus.com.cn> <54E219F3.5090307@twiddle.net> <54E27485.9010908@sunrus.com.cn> In-Reply-To: <54E27485.9010908@sunrus.com.cn> Content-Type: text/plain; charset="utf-8"; format=flowed 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: Chen Gang S , Richard Henderson , Peter Maydell , Riku Voipio , "walt@tilera.com" Cc: qemu-devel 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. -- Chris Metcalf, EZChip Semiconductor http://www.ezchip.com