qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Consult] About SPRs information


From: Richard Henderson
Subject: Re: [Qemu-devel] [Consult] About SPRs information
Date: Mon, 27 Apr 2015 15:04:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]