aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/internal.h
diff options
context:
space:
mode:
authorBalamuruhan S <bala24@linux.vnet.ibm.com>2017-02-09 11:03:30 +0530
committerDavid Gibson <david@gibson.dropbear.id.au>2017-02-22 11:28:27 +1100
commita68a6146738c524ce5ed0d379501b2797d689c0d (patch)
treec9e726917321813ffd75a9ce3246a8eda6d46576 /target/ppc/internal.h
parentfe93e3e6ec1b1bf4a4c9d4bf55f8776318da6847 (diff)
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>
Diffstat (limited to 'target/ppc/internal.h')
-rw-r--r--target/ppc/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/internal.h b/target/ppc/internal.h
index 5b5b180763..1f441c6483 100644
--- a/target/ppc/internal.h
+++ b/target/ppc/internal.h
@@ -133,6 +133,8 @@ EXTRACT_HELPER(UIMM4, 16, 4);
EXTRACT_HELPER(NB, 11, 5);
/* Shift count */
EXTRACT_HELPER(SH, 11, 5);
+/* lwat/stwat/ldat/lwat */
+EXTRACT_HELPER(FC, 11, 5);
/* Vector shift count */
EXTRACT_HELPER(VSH, 6, 4);
/* Mask start */