[PATCH] arm, objdump: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Wed Nov 20 10:58:08 GMT 2024


On 08/11/2024 10:14, Andre Vieira wrote:
> 
> Add support for pac_key_[pu]_[0-3](_ns)? register operands for the MRS and MSR
> instructions when assembling for Armv8.1-M Mainline, as well as adding the
> corresponding support for disassembling instructions that use it.
> 
> Tested on arm-none-eabi, arm-wince and arm-vxworks.
> 
> OK for trunk?
> ---
>  gas/config/tc-arm.c                       |  18 ++-
>  gas/testsuite/gas/arm/archv8_1m-pac-msr.d | 137 ++++++++++++++++++++++
>  gas/testsuite/gas/arm/archv8_1m-pac-msr.s |  77 ++++++++++++
>  opcodes/arm-dis.c                         |  29 ++++-
>  4 files changed, 257 insertions(+), 4 deletions(-)
>  create mode 100644 gas/testsuite/gas/arm/archv8_1m-pac-msr.d
>  create mode 100644 gas/testsuite/gas/arm/archv8_1m-pac-msr.s
> 
 		    char const* name;
@@ -11694,7 +11714,10 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given)
 		break;
 
 	      case 'D':
-		if (((given & 0xff) == 0)
+		if (is_v81m_architecture (info))
+		  func (stream, dis_style_register, "%s",
+			psr_name (given & 0xff));
+		else if (((given & 0xff) == 0)
 		    || ((given & 0x20) == 0x20))

This line needs re-indenting.

 		  {
 	
Otherwise, OK.

R.


More information about the Binutils mailing list