On 4/28/15 06:04, Richard Henderson wrote: > 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. >
OK, thank you very much. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed