Browse Source
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.
gdb-8.1-branch
committed by
Palmer Dabbelt
7 changed files with 34 additions and 2 deletions
@ -0,0 +1,11 @@ |
|||
#as: |
|||
#objdump: -dr |
|||
|
|||
.*:[ ]+file format .* |
|||
|
|||
|
|||
Disassembly of section .text: |
|||
|
|||
0+000 <target>: |
|||
[ ]+0:[ ]+180022f3[ ]+csrr[ ]+t0,satp |
|||
[ ]+4:[ ]+180022f3[ ]+csrr[ ]+t0,satp |
|||
@ -0,0 +1,3 @@ |
|||
target: |
|||
csrr t0, satp |
|||
csrr t0, sptbr |
|||
Loading…
Reference in new issue