From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymr9A-0006Fh-9K for qemu-devel@nongnu.org; Mon, 27 Apr 2015 18:05:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymr95-000601-A4 for qemu-devel@nongnu.org; Mon, 27 Apr 2015 18:05:00 -0400 Received: from mail-vn0-x22a.google.com ([2607:f8b0:400c:c0f::22a]:37933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymr95-0005zv-6Q for qemu-devel@nongnu.org; Mon, 27 Apr 2015 18:04:55 -0400 Received: by vnbf1 with SMTP id f1so13939523vnb.5 for ; Mon, 27 Apr 2015 15:04:54 -0700 (PDT) Sender: Richard Henderson Message-ID: <553EB281.20805@twiddle.net> Date: Mon, 27 Apr 2015 15:04:49 -0700 From: Richard Henderson MIME-Version: 1.0 References: <54DD17BC.5040006@sunrus.com.cn> <54DD180B.3080004@sunrus.com.cn> <54DE8DCA.6030302@sunrus.com.cn> <54DEBC3E.4000805@sunrus.com.cn> <54DEC303.6030502@ezchip.com> <54DF6F90.60406@sunrus.com.cn> <54E1669F.9090402@sunrus.com.cn> <54E28B87.4020002@ezchip.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Consult] About SPRs information List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Gang , Chris Metcalf , Peter Maydell Cc: "walt@tilera.com" , Riku Voipio , qemu-devel On 04/27/2015 02:12 PM, Chen Gang wrote: > Now, I am blocked at SPRs: "mtspr SPR_CMPEXCH_VALUE %r12", and trying to > solve it. SPR_CMPEXCH_VALUE should be present in your cpu structure, should be a TCGv like all of your other registers, and this expands to a simple move. You will probably need to dispatch on the SPR number. Some of these will be normal moves to special register slots. Some of these may require a function call in order to handle the side effects. r~