[PATCH 4/4] opcodes,gas: sparc: fix rdasr,wrasr,rdpr,wrpr,rdhpr,wrhpr insns.
Jose E. Marchesi
jose.marchesi@oracle.com
Fri Jun 17 09:14:00 GMT 2016
> 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!
Applied, thanks.
More information about the Binutils
mailing list