Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 4 of 4) sorted by relevance

/art/disassembler/
Ddisassembler_riscv64.cc1490 uint32_t csr = insn32 >> 20; in Print32Zicsr() local
1492 if (funct3 == /*CSRRW*/ 1u && rd == 0u && rs1_or_uimm == 0u && csr == 0xc00u) { in Print32Zicsr()
1496 if (csr == 0xc00u) { in Print32Zicsr()
1498 } else if (csr == 0xc01u) { in Print32Zicsr()
1500 } else if (csr == 0xc02u) { in Print32Zicsr()
1503 os_ << "csrr " << XRegName(rd) << ", " << csr; in Print32Zicsr()
1513 os_ << kAltOpcodes[funct3] << " " << csr << ", "; in Print32Zicsr()
1515 os_ << opcode << " " << XRegName(rd) << ", " << csr << ", "; in Print32Zicsr()
/art/compiler/utils/riscv64/
Dassembler_riscv64_test.cc1405 for (int64_t csr : csrs) { in RepeatCsrrX() local
1407 (GetAssembler()->*f)(reg1, dchecked_integral_cast<uint32_t>(csr), reg2); in RepeatCsrrX()
1411 ReplaceCsrrImm(CSR_TOKEN, csr, &base); in RepeatCsrrX()
1428 for (int64_t csr : csrs) { in RepeatCsrrXi() local
1431 reg, dchecked_integral_cast<uint32_t>(csr), dchecked_integral_cast<uint32_t>(uimm)); in RepeatCsrrXi()
1435 ReplaceCsrrImm(CSR_TOKEN, csr, &base); in RepeatCsrrXi()
2031 for (int64_t csr : csrs) { in TestCsrrXMacro() local
2032 emit_csrrx(dchecked_integral_cast<uint32_t>(csr), reg); in TestCsrrXMacro()
2036 ReplaceCsrrImm(CSR_TOKEN, csr, &base); in TestCsrrXMacro()
2051 for (int64_t csr : csrs) { in TestCsrrXiMacro() local
[all …]
Dassembler_riscv64.h377 void Csrrw(XRegister rd, uint32_t csr, XRegister rs1);
378 void Csrrs(XRegister rd, uint32_t csr, XRegister rs1);
379 void Csrrc(XRegister rd, uint32_t csr, XRegister rs1);
380 void Csrrwi(XRegister rd, uint32_t csr, uint32_t uimm5);
381 void Csrrsi(XRegister rd, uint32_t csr, uint32_t uimm5);
382 void Csrrci(XRegister rd, uint32_t csr, uint32_t uimm5);
1770 void Csrr(XRegister rd, uint32_t csr);
1771 void Csrw(uint32_t csr, XRegister rs);
1772 void Csrs(uint32_t csr, XRegister rs);
1773 void Csrc(uint32_t csr, XRegister rs);
[all …]
Dassembler_riscv64.cc852 void Riscv64Assembler::Csrrw(XRegister rd, uint32_t csr, XRegister rs1) { in Csrrw() argument
854 EmitI(ToInt12(csr), rs1, 0x1, rd, 0x73); in Csrrw()
857 void Riscv64Assembler::Csrrs(XRegister rd, uint32_t csr, XRegister rs1) { in Csrrs() argument
859 EmitI(ToInt12(csr), rs1, 0x2, rd, 0x73); in Csrrs()
862 void Riscv64Assembler::Csrrc(XRegister rd, uint32_t csr, XRegister rs1) { in Csrrc() argument
864 EmitI(ToInt12(csr), rs1, 0x3, rd, 0x73); in Csrrc()
867 void Riscv64Assembler::Csrrwi(XRegister rd, uint32_t csr, uint32_t uimm5) { in Csrrwi() argument
869 EmitI(ToInt12(csr), uimm5, 0x5, rd, 0x73); in Csrrwi()
872 void Riscv64Assembler::Csrrsi(XRegister rd, uint32_t csr, uint32_t uimm5) { in Csrrsi() argument
874 EmitI(ToInt12(csr), uimm5, 0x6, rd, 0x73); in Csrrsi()
[all …]