Skip to content

Commit a258b0f

Browse files
committed
[RISCV] Remove the mucounteren alternate name for CSR 0x320.
This is the old name for 0x320 from privilege spec 1.9. It has different semantics than mcountinhibit that is at that address now. It doesn't look like binutils supports this name anymore so I don't think llvm should.
1 parent df4257b commit a258b0f

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

llvm/lib/Target/RISCV/RISCVSystemOperands.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ foreach i = 3...31 in
301301
// Machine Counter Setup
302302
//===----------------------------------------------------------------------===//
303303
def : SysReg<"mcountinhibit", 0x320>;
304-
let isAltName = 1 in
305-
def : SysReg<"mucounteren", 0x320>;
306304

307305
// mhpmevent3-mhpmevent31 at 0x323-0x33F.
308306
foreach i = 3...31 in

llvm/test/MC/RISCV/machine-csr-names.s

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,20 +1972,6 @@ csrrs t1, mcountinhibit, zero
19721972
# uimm12
19731973
csrrs t2, 0x320, zero
19741974

1975-
# mucounteren
1976-
# name
1977-
# CHECK-INST: csrrs t1, mcountinhibit, zero
1978-
# CHECK-ENC: encoding: [0x73,0x23,0x00,0x32]
1979-
# CHECK-INST-ALIAS: csrr t1, mcountinhibit
1980-
# uimm12
1981-
# CHECK-INST: csrrs t2, mcountinhibit, zero
1982-
# CHECK-ENC: encoding: [0xf3,0x23,0x00,0x32]
1983-
# CHECK-INST-ALIAS: csrr t2, mcountinhibit
1984-
# name
1985-
csrrs t1, mucounteren, zero
1986-
# uimm12
1987-
csrrs t2, 0x320, zero
1988-
19891975
# mhpmevent3
19901976
# name
19911977
# CHECK-INST: csrrs t1, mhpmevent3, zero

0 commit comments

Comments
 (0)