public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [AArch64 Patch] Add support for CSDB
@ 2018-01-09 10:58 James Greenhalgh
  2018-01-09 11:30 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: James Greenhalgh @ 2018-01-09 10:58 UTC (permalink / raw)
  To: binutils; +Cc: nd, richard.earnshaw, nickc

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]


Hi,

CSDB is a new instruction which Arm has defined. It has the same encoding as
HINT #0x14 and is available at all architecture levels.

OK? If so, please commit on my behalf as I don't have commit rights over
here. Please remember when applying the patch on my behalf to regenerate
the aarch64-asm-2.c, aarch64-dis-2.c, and aarch64-opc-2.c files.

I would like this to be applied before the 2.30 cut if possible.

Thanks,
James

---
opcodes/

2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>

	* aarch64-tbl.h (aarch64_opcode_table): Add "csdb".
	* aarch64-asm-2.c: Regenerate.
	* aarch64-dis-2.c: Regenerate.
	* aarch64-opc-2.c: Regenerate.

gas/

2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>

	* testsuite/gas/aarch64/system.d: Update expected results to expect
	CSDB.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-AArch64-Patch-Add-support-for-CSDB.patch --]
[-- Type: text/x-patch; name="0001-AArch64-Patch-Add-support-for-CSDB.patch", Size: 1294 bytes --]

diff --git a/gas/testsuite/gas/aarch64/system.d b/gas/testsuite/gas/aarch64/system.d
index be9536e..9ca9c5e 100644
--- a/gas/testsuite/gas/aarch64/system.d
+++ b/gas/testsuite/gas/aarch64/system.d
@@ -32,7 +32,7 @@ Disassembly of section \.text:
   60:	d503223f 	(hint	#0x11|psb	csync)
   64:	d503225f 	hint	#0x12
   68:	d503227f 	hint	#0x13
-  6c:	d503229f 	hint	#0x14
+  6c:	d503229f 	(hint	#0x14|csdb)
   70:	d50322bf 	hint	#0x15
   74:	d50322df 	hint	#0x16
   78:	d50322ff 	hint	#0x17

diff --git a/opcodes/aarch64-tbl.h b/opcodes/aarch64-tbl.h
index f758eeb..12b980e 100644
--- a/opcodes/aarch64-tbl.h
+++ b/opcodes/aarch64-tbl.h
@@ -3455,6 +3455,7 @@ struct aarch64_opcode aarch64_opcode_table[] =
   CORE_INSN ("msr", 0xd500401f, 0xfff8f01f, ic_system, 0, OP2 (PSTATEFIELD, UIMM4), {}, 0),
   CORE_INSN ("hint",0xd503201f, 0xfffff01f, ic_system, 0, OP1 (UIMM7), {}, F_HAS_ALIAS),
   CORE_INSN ("nop", 0xd503201f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),
+  CORE_INSN ("csdb",0xd503229f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),
   CORE_INSN ("yield", 0xd503203f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),
   CORE_INSN ("wfe", 0xd503205f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),
   CORE_INSN ("wfi", 0xd503207f, 0xffffffff, ic_system, 0, OP0 (), {}, F_ALIAS),

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [AArch64 Patch] Add support for CSDB
  2018-01-09 10:58 [AArch64 Patch] Add support for CSDB James Greenhalgh
@ 2018-01-09 11:30 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2018-01-09 11:30 UTC (permalink / raw)
  To: James Greenhalgh, binutils; +Cc: nd, richard.earnshaw

Hi James,

> opcodes/
> 
> 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
> 
> 	* aarch64-tbl.h (aarch64_opcode_table): Add "csdb".
> 	* aarch64-asm-2.c: Regenerate.
> 	* aarch64-dis-2.c: Regenerate.
> 	* aarch64-opc-2.c: Regenerate.
> 
> gas/
> 
> 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
> 
> 	* testsuite/gas/aarch64/system.d: Update expected results to expect
> 	CSDB.

Approved, applied and regenerated.  (Err, not in that order).

Cheers
  Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-09 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 10:58 [AArch64 Patch] Add support for CSDB James Greenhalgh
2018-01-09 11:30 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).