v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
extension-riscv-zicsr.cc
Go to the documentation of this file.
1// Copyright 2022 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
5
9
10namespace v8 {
11namespace internal {
12
14 Register rs1) {
15 GenInstrCSR_ir(0b001, rd, csr, rs1);
16}
17
19 Register rs1) {
20 GenInstrCSR_ir(0b010, rd, csr, rs1);
21}
22
24 Register rs1) {
25 GenInstrCSR_ir(0b011, rd, csr, rs1);
26}
27
29 uint8_t imm5) {
30 GenInstrCSR_ii(0b101, rd, csr, imm5);
31}
32
34 uint8_t imm5) {
35 GenInstrCSR_ii(0b110, rd, csr, imm5);
36}
37
39 uint8_t imm5) {
40 GenInstrCSR_ii(0b111, rd, csr, imm5);
41}
42
43} // namespace internal
44} // namespace v8
void csrrci(Register rd, ControlStatusReg csr, uint8_t imm5)
void csrrw(Register rd, ControlStatusReg csr, Register rs1)
void csrrwi(Register rd, ControlStatusReg csr, uint8_t imm5)
void csrrs(Register rd, ControlStatusReg csr, Register rs1)
void csrrc(Register rd, ControlStatusReg csr, Register rs1)
void csrrsi(Register rd, ControlStatusReg csr, uint8_t imm5)
void GenInstrCSR_ir(uint8_t funct3, Register rd, ControlStatusReg csr, Register rs1)
void GenInstrCSR_ii(uint8_t funct3, Register rd, ControlStatusReg csr, uint8_t rs1)