target-ppc: implement store atomic instruction
commita34011881c433c759d0fc964614a7d26b0824b24
authorBalamuruhan S <bala24@linux.vnet.ibm.com>
Thu, 9 Feb 2017 05:33:31 +0000 (9 11:03 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:27 +0000 (22 11:28 +1100)
treeea17b5263862e183e028ae48ee49b7b9ba2a398e
parenta68a6146738c524ce5ed0d379501b2797d689c0d
target-ppc: implement store atomic instruction

stwat: Store Word Atomic
stdat: Store Doubleword Atomic

The instruction includes as function code (5 bits) which gives a detail
on the operation to be performed. The patch implements five such
functions.

Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
Signed-off-by: Harish S <harisrir@linux.vnet.ibm.com>
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
[ implement stdat, use macro and combine both implementation ]
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c