RISC-V: Add satp as an alias for sptbr
authorPalmer Dabbelt <palmer@dabbelt.com>
Mon, 6 Nov 2017 21:22:42 +0000 (13:22 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 7 Nov 2017 17:00:37 +0000 (09:00 -0800)
commit1270b047fdc68d89f05668ed919d17f5fceeba2a
treea8164ba6096eb6012fb6cc642f4aacd5a579049a
parenta02b41a7e604471e584dc2151fbd36714842710e
RISC-V: Add satp as an alias for sptbr

The RISC-V privileged ISA changed the name of sptbr (Supervisor Page
Table Base Register) to satp (Supervisor Address Translation and
Protection) to reflect the fact it could be used for more than just
paging.  This patch adds an alias, as they're the same register.

include/ChangeLog

2017-11-06  Palmer Dabbelt  <palmer@dabbelt.com>

        * opcode/riscv-opc.h (sptbr): Rename to satp.
        (CSR_SPTBR): Rename to CSR_SATP.
        (sptbr): Alias to CSR_SATP.

gas/ChangeLog

2017-11-06  Palmer Dabbelt  <palmer@dabbelt.com>

        * testsuite/gas/riscv/satp.d: New test.
        testsuite/gas/riscv/satp.s: Likewise.
        testsuite/gas/riscv/riscv.exp: Likewise.
        config/tc-riscv.c (md_begin): Handle CSR aliases.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/riscv.exp
gas/testsuite/gas/riscv/satp.d [new file with mode: 0644]
gas/testsuite/gas/riscv/satp.s [new file with mode: 0644]
include/ChangeLog
include/opcode/riscv-opc.h