mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[RISCV] Add mcountinhibit CSR
Summary: The mcountinhibit CSR is defined in the ratified 1.11 version of the privileged spec. Reviewers: apazos, asb, lenary, luismarques Reviewed By: asb Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, sameer.abuasal, evandro, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82913
This commit is contained in:
parent
a2a8edece8
commit
895019f7d2
@ -310,6 +310,7 @@ def: SysReg<"mhpmcounter31h", 0xB9F>;
|
||||
//===--------------------------
|
||||
// Machine Counter Setup
|
||||
//===--------------------------
|
||||
def : SysReg<"mcountinhibit", 0x320>;
|
||||
def : SysReg<"mhpmevent3", 0x323>;
|
||||
def : SysReg<"mhpmevent4", 0x324>;
|
||||
def : SysReg<"mhpmevent5", 0x325>;
|
||||
|
@ -849,6 +849,20 @@ csrrs t2, 0xB1F, zero
|
||||
######################################
|
||||
# Machine Counter Setup
|
||||
######################################
|
||||
# mcountinhibit
|
||||
# name
|
||||
# CHECK-INST: csrrs t1, mcountinhibit, zero
|
||||
# CHECK-ENC: encoding: [0x73,0x23,0x00,0x32]
|
||||
# CHECK-INST-ALIAS: csrr t1, mcountinhibit
|
||||
# uimm12
|
||||
# CHECK-INST: csrrs t2, mcountinhibit, zero
|
||||
# CHECK-ENC: encoding: [0xf3,0x23,0x00,0x32]
|
||||
# CHECK-INST-ALIAS: csrr t2, mcountinhibit
|
||||
# name
|
||||
csrrs t1, mcountinhibit, zero
|
||||
# uimm12
|
||||
csrrs t2, 0x320, zero
|
||||
|
||||
# mhpmevent3
|
||||
# name
|
||||
# CHECK-INST: csrrs t1, mhpmevent3, zero
|
||||
|
Loading…
Reference in New Issue
Block a user