aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-01-04 13:32:06 +0000
committerNick Clifton <nickc@redhat.com>2013-01-04 13:32:06 +0000
commita32c3ff848ab6898a812e1520b30d76540731614 (patch)
treeb8673032f0c0aec5f742b1f9d1d8b8d303010d49 /opcodes
parent659a41b14d8f1b06f56e6e12c903999c178b890d (diff)
downloadgdb-a32c3ff848ab6898a812e1520b30d76540731614.zip
gdb-a32c3ff848ab6898a812e1520b30d76540731614.tar.gz
gdb-a32c3ff848ab6898a812e1520b30d76540731614.tar.bz2
* aarch64-opc.c (aarch64_prfops): Update to support PLIL1KEEP,
PLIL1STRM, PLIL2KEEP, PLIL2STRM, PLIL3KEEP and PLIL3STRM. * gas/aarch64/system.d: Update.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/aarch64-opc.c28
2 files changed, 19 insertions, 14 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 50f8482..3b35149 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-04 Yufeng Zhang <yufeng.zhang@arm.com>
+
+ * aarch64-opc.c (aarch64_prfops): Update to support PLIL1KEEP,
+ PLIL1STRM, PLIL2KEEP, PLIL2STRM, PLIL3KEEP and PLIL3STRM.
+
2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (process_copyright): Update copyright year to 2013.
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c
index b5e0984..fdb4ceb 100644
--- a/opcodes/aarch64-opc.c
+++ b/opcodes/aarch64-opc.c
@@ -334,10 +334,10 @@ const struct aarch64_name_value_pair aarch64_barrier_options[16] =
{ "sy", 0xf },
};
-/* op -> op: load = 0 store = 1
+/* op -> op: load = 0 instruction = 1 store = 2
l -> level: 1-3
t -> temporal: temporal (retained) = 0 non-temporal (streaming) = 1 */
-#define B(op,l,t) ((((op) * 2) << 3) | (((l) - 1) << 1) | (t))
+#define B(op,l,t) (((op) << 3) | (((l) - 1) << 1) | (t))
const struct aarch64_name_value_pair aarch64_prfops[32] =
{
{ "pldl1keep", B(0, 1, 0) },
@@ -348,20 +348,20 @@ const struct aarch64_name_value_pair aarch64_prfops[32] =
{ "pldl3strm", B(0, 3, 1) },
{ "#0x06", 0x06 },
{ "#0x07", 0x07 },
- { "#0x08", 0x08 },
- { "#0x09", 0x09 },
- { "#0x0a", 0x0a },
- { "#0x0b", 0x0b },
- { "#0x0c", 0x0c },
- { "#0x0d", 0x0d },
+ { "plil1keep", B(1, 1, 0) },
+ { "plil1strm", B(1, 1, 1) },
+ { "plil2keep", B(1, 2, 0) },
+ { "plil2strm", B(1, 2, 1) },
+ { "plil3keep", B(1, 3, 0) },
+ { "plil3strm", B(1, 3, 1) },
{ "#0x0e", 0x0e },
{ "#0x0f", 0x0f },
- { "pstl1keep", B(1, 1, 0) },
- { "pstl1strm", B(1, 1, 1) },
- { "pstl2keep", B(1, 2, 0) },
- { "pstl2strm", B(1, 2, 1) },
- { "pstl3keep", B(1, 3, 0) },
- { "pstl3strm", B(1, 3, 1) },
+ { "pstl1keep", B(2, 1, 0) },
+ { "pstl1strm", B(2, 1, 1) },
+ { "pstl2keep", B(2, 2, 0) },
+ { "pstl2strm", B(2, 2, 1) },
+ { "pstl3keep", B(2, 3, 0) },
+ { "pstl3strm", B(2, 3, 1) },
{ "#0x16", 0x16 },
{ "#0x17", 0x17 },
{ "#0x18", 0x18 },