[PATCH 08/26] KVM: PPC: Add PV guest critical sections
Avi Kivity
avi at redhat.com
Sun Jun 27 21:53:17 EST 2010
On 06/27/2010 02:49 PM, Alexander Graf wrote:
>
> Am 27.06.2010 um 12:59 schrieb Avi Kivity <avi at redhat.com>:
>
>> On 06/27/2010 01:33 PM, Alexander Graf wrote:
>>>> Or inc/dec...
>>>
>>>
>>> Uh - huh? How would that help?
>>
>> inc shared->critical # disable interrupts
>
> There is no opcode in the ppc isa that acts on momery without
> involving a register.
>
> An inc would be:
>
> ld rX, A(0)
> addi rX, rX, 1
> std rX, A(0)
Right, I was agreeing with you. I meant there was no inc/dec mem insns.
--
error compiling committee.c: too many arguments to function
More information about the Linuxppc-dev
mailing list