This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 4/4] opcodes,gas: sparc: fix rdasr,wrasr,rdpr,wrpr,rdhpr,wrhpr insns.
- From: Nick Clifton <nickc at redhat dot com>
- To: "Jose E. Marchesi" <jose dot marchesi at oracle dot com>, binutils at sourceware dot org
- Date: Fri, 17 Jun 2016 09:25:35 +0100
- Subject: Re: [PATCH 4/4] opcodes,gas: sparc: fix rdasr,wrasr,rdpr,wrpr,rdhpr,wrhpr insns.
- Authentication-results: sourceware.org; auth=none
- References: <1466006453-1022-1-git-send-email-jose dot marchesi at oracle dot com> <1466006453-1022-5-git-send-email-jose dot marchesi at oracle dot com>
Hi Jose,
> opcodes/ChangeLog:
>
> 2016-06-15 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * sparc-opc.c (rdasr): New macro.
> (wrasr): Likewise.
> (rdpr): Likewise.
> (wrpr): Likewise.
> (rdhpr): Likewise.
> (wrhpr): Likewise.
> (sparc_opcodes): Use the macros above to fix and expand the
> definition of read/write instructions from/to
> asr/privileged/hyperprivileged instructions.
> * sparc-dis.c (v9_hpriv_reg_names): Add %hmcdper, %hmcddfr and
> %hva_mask_nz. Prefer softint_set and softint_clear over
> set_softint and clear_softint.
> (print_insn_sparc): Support %ver in Rd.
>
> gas/ChangeLog:
>
> 2016-06-15 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
> %hmcddfr and %hva_mask_nz.
> (sparc_ip): New handling of asr/privileged/hyperprivileged
> registers, adapted to the new form of the sparc opcodes table.
> * testsuite/gas/sparc/rdasr.s: New file.
> * testsuite/gas/sparc/rdasr.d: Likewise.
> * testsuite/gas/sparc/wrasr.s: Likewise.
> * testsuite/gas/sparc/wrasr.d: Likewise.
> * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
> wrasr tests.
> * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
> registers require it.
> * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
> registers and write instruction modalities.
> * testsuite/gas/sparc/wrpr.d: Likewise.
> * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
> registers.
> * testsuite/gas/sparc/rdhpr.d: Likewise.
> * testsuite/gas/sparc/wrhpr.s: Likewise.
> * testsuite/gas/sparc/wrhpr.d: Likewise.
Approved - please apply - and thanks for making these improvements!
Cheers
Nick