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

lwat: Load Word Atomic
ldat: Load 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>
[ combine both lwat/ldat implementation using macro ]
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/internal.h
target/ppc/translate.c