RE: Emulating lwarx and stwcx instructions in PowerPc BOOKE e500

2012-03-06 Thread Sethi Varun-B16395
To: kvm-ppc@vger.kernel.org Subject: Emulating lwarx and stwcx instructions in PowerPc BOOKE e500 Hi I'm working on powerpc booke architecture and my project requires me to remove read and write privileges on some pages. Due to this any instruction accessing these pages traps and i'm trying

Re: Emulating lwarx and stwcx instructions in PowerPc BOOKE e500

2012-03-06 Thread Scott Wood
On 03/06/2012 02:30 PM, Aashish Mittal wrote: I'm thinking of emulating the lwarx and stwcx instruction as follows 1) to emulate lwarx i will just do a load word instruction . In order to emulate lwarx correctly, i will need to setup a global reservation structure, which has a reservation

Emulating lwarx and stwcx instructions in PowerPc BOOKE e500

2012-03-05 Thread Aashish Mittal
Hi I'm working on powerpc booke architecture and my project requires me to remove read and write privileges on some pages. Due to this any instruction accessing these pages traps and i'm trying to emulate the behavior of these instructions. I've emulated lwarx and stwcx instruction but i think

Re: Emulating lwarx and stwcx instructions in PowerPc BOOKE e500

2012-03-05 Thread Scott Wood
On 03/05/2012 02:37 PM, Aashish Mittal wrote: Hi I'm working on powerpc booke architecture and my project requires me to remove read and write privileges on some pages. Due to this any instruction accessing these pages traps and i'm trying to emulate the behavior of these instructions.