Documentation ¶
Index ¶
- Constants
- type Components
- type OP_ADD
- type OP_ADDI
- type OP_AND
- type OP_ANDI
- type OP_AUIPC
- type OP_BEQ
- type OP_BGE
- type OP_BGEU
- type OP_BLT
- type OP_BLTU
- type OP_BNE
- type OP_CSRRC
- type OP_CSRRCI
- type OP_CSRRS
- type OP_CSRRSI
- type OP_CSRRW
- type OP_CSRRWI
- type OP_DRET
- type OP_EBREAK
- type OP_ECALL
- type OP_FENCE
- type OP_FENCE_I
- type OP_ILLEGAL
- type OP_JAL
- type OP_JALR
- type OP_LB
- type OP_LBU
- type OP_LH
- type OP_LHU
- type OP_LUI
- type OP_LW
- type OP_MRET
- type OP_OR
- type OP_ORI
- type OP_SB
- type OP_SFENCE_VMA
- type OP_SH
- type OP_SLL
- type OP_SLLI
- type OP_SLT
- type OP_SLTI
- type OP_SLTIU
- type OP_SLTU
- type OP_SRA
- type OP_SRAI
- type OP_SRET
- type OP_SRL
- type OP_SRLI
- type OP_SUB
- type OP_SW
- type OP_WFI
- type OP_XOR
- type OP_XORI
- type Opcode
Constants ¶
View Source
const ( MASK_LUI uint32 = 0x0000007F MATCH_LUI uint32 = 0x00000037 MASK_AUIPC uint32 = 0x0000007F MATCH_AUIPC uint32 = 0x00000017 MASK_JAL uint32 = 0x0000007F MATCH_JAL uint32 = 0x0000006F MASK_JALR uint32 = 0x0000707F MATCH_JALR uint32 = 0x00000067 MASK_BEQ uint32 = 0x0000707F MATCH_BEQ uint32 = 0x00000063 MASK_BNE uint32 = 0x0000707F MATCH_BNE uint32 = 0x00001063 MASK_BLT uint32 = 0x0000707F MATCH_BLT uint32 = 0x00004063 MASK_BGE uint32 = 0x0000707F MATCH_BGE uint32 = 0x00005063 MASK_BLTU uint32 = 0x0000707F MATCH_BLTU uint32 = 0x00006063 MASK_BGEU uint32 = 0x0000707F MATCH_BGEU uint32 = 0x00007063 MASK_LB uint32 = 0x0000707F MATCH_LB uint32 = 0x00000003 MASK_LH uint32 = 0x0000707F MATCH_LH uint32 = 0x00001003 MASK_LW uint32 = 0x0000707F MATCH_LW uint32 = 0x00002003 MASK_LBU uint32 = 0x0000707F MATCH_LBU uint32 = 0x00004003 MASK_LHU uint32 = 0x0000707F MATCH_LHU uint32 = 0x00005003 MASK_SB uint32 = 0x0000707F MATCH_SB uint32 = 0x00000023 MASK_SH uint32 = 0x0000707F MATCH_SH uint32 = 0x00001023 MASK_SW uint32 = 0x0000707F MATCH_SW uint32 = 0x00002023 MASK_ADDI uint32 = 0x0000707F MATCH_ADDI uint32 = 0x00000013 MASK_SLTI uint32 = 0x0000707F MATCH_SLTI uint32 = 0x00002013 MASK_SLTIU uint32 = 0x0000707F MATCH_SLTIU uint32 = 0x00003013 MASK_XORI uint32 = 0x0000707F MATCH_XORI uint32 = 0x00004013 MASK_ORI uint32 = 0x0000707F MATCH_ORI uint32 = 0x00006013 MASK_ANDI uint32 = 0x0000707F MATCH_ANDI uint32 = 0x00007013 MASK_ADD uint32 = 0xFE00707F MATCH_ADD uint32 = 0x00000033 MASK_SUB uint32 = 0xFE00707F MATCH_SUB uint32 = 0x40000033 MASK_SLL uint32 = 0xFE00707F MATCH_SLL uint32 = 0x00001033 MASK_SLT uint32 = 0xFE00707F MATCH_SLT uint32 = 0x00002033 MASK_SLTU uint32 = 0xFE00707F MATCH_SLTU uint32 = 0x00003033 MASK_XOR uint32 = 0xFE00707F MATCH_XOR uint32 = 0x00004033 MASK_SRL uint32 = 0xFE00707F MATCH_SRL uint32 = 0x00005033 MASK_SRA uint32 = 0xFE00707F MATCH_SRA uint32 = 0x40005033 MASK_OR uint32 = 0xFE00707F MATCH_OR uint32 = 0x00006033 MASK_AND uint32 = 0xFE00707F MATCH_AND uint32 = 0x00007033 MASK_FENCE uint32 = 0x0000707F MATCH_FENCE uint32 = 0x0000000F MASK_ECALL uint32 = 0xFFFFFFFF MATCH_ECALL uint32 = 0x00000073 MASK_EBREAK uint32 = 0xFFFFFFFF MATCH_EBREAK uint32 = 0x00100073 MASK_SLLI uint32 = 0xFE00707F MATCH_SLLI uint32 = 0x00001013 MASK_SRLI uint32 = 0xFE00707F MATCH_SRLI uint32 = 0x00005013 MASK_SRAI uint32 = 0xFE00707F MATCH_SRAI uint32 = 0x40005013 )
View Source
const ( MASK_SFENCE_VMA uint32 = 0xFE007FFF MATCH_SFENCE_VMA uint32 = 0x12000073 MASK_SRET uint32 = 0xFFFFFFFF MATCH_SRET uint32 = 0x10200073 )
View Source
const ( MASK_MRET uint32 = 0xFFFFFFFF MATCH_MRET uint32 = 0x30200073 MASK_DRET uint32 = 0xFFFFFFFF MATCH_DRET uint32 = 0x7B200073 MASK_WFI uint32 = 0xFFFFFFFF MATCH_WFI uint32 = 0x10500073 )
View Source
const ( MASK_CSRRW uint32 = 0x0000707F MATCH_CSRRW uint32 = 0x00001073 MASK_CSRRS uint32 = 0x0000707F MATCH_CSRRS uint32 = 0x00002073 MASK_CSRRC uint32 = 0x0000707F MATCH_CSRRC uint32 = 0x00003073 MASK_CSRRWI uint32 = 0x0000707F MATCH_CSRRWI uint32 = 0x00005073 MASK_CSRRSI uint32 = 0x0000707F MATCH_CSRRSI uint32 = 0x00006073 MASK_CSRRCI uint32 = 0x0000707F MATCH_CSRRCI uint32 = 0x00007073 )
View Source
const ( MASK_FENCE_I uint32 = 0x0000707F MATCH_FENCE_I uint32 = 0x0000100F )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type OP_ADD ¶
func (OP_ADD) Components ¶
func (o OP_ADD) Components() Components
func (OP_ADD) Instruction ¶
type OP_ADDI ¶
func (OP_ADDI) Components ¶
func (o OP_ADDI) Components() Components
func (OP_ADDI) Instruction ¶
type OP_AND ¶
func (OP_AND) Components ¶
func (o OP_AND) Components() Components
func (OP_AND) Instruction ¶
type OP_ANDI ¶
func (OP_ANDI) Components ¶
func (o OP_ANDI) Components() Components
func (OP_ANDI) Instruction ¶
type OP_AUIPC ¶
func (OP_AUIPC) Components ¶
func (o OP_AUIPC) Components() Components
func (OP_AUIPC) Instruction ¶
type OP_BEQ ¶
func (OP_BEQ) Components ¶
func (o OP_BEQ) Components() Components
func (OP_BEQ) Instruction ¶
type OP_BGE ¶
func (OP_BGE) Components ¶
func (o OP_BGE) Components() Components
func (OP_BGE) Instruction ¶
type OP_BGEU ¶
func (OP_BGEU) Components ¶
func (o OP_BGEU) Components() Components
func (OP_BGEU) Instruction ¶
type OP_BLT ¶
func (OP_BLT) Components ¶
func (o OP_BLT) Components() Components
func (OP_BLT) Instruction ¶
type OP_BLTU ¶
func (OP_BLTU) Components ¶
func (o OP_BLTU) Components() Components
func (OP_BLTU) Instruction ¶
type OP_BNE ¶
func (OP_BNE) Components ¶
func (o OP_BNE) Components() Components
func (OP_BNE) Instruction ¶
type OP_CSRRC ¶
func (OP_CSRRC) Components ¶
func (o OP_CSRRC) Components() Components
func (OP_CSRRC) Instruction ¶
type OP_CSRRCI ¶
func (OP_CSRRCI) Components ¶
func (o OP_CSRRCI) Components() Components
func (OP_CSRRCI) Instruction ¶
type OP_CSRRS ¶
func (OP_CSRRS) Components ¶
func (o OP_CSRRS) Components() Components
func (OP_CSRRS) Instruction ¶
type OP_CSRRSI ¶
func (OP_CSRRSI) Components ¶
func (o OP_CSRRSI) Components() Components
func (OP_CSRRSI) Instruction ¶
type OP_CSRRW ¶
func (OP_CSRRW) Components ¶
func (o OP_CSRRW) Components() Components
func (OP_CSRRW) Instruction ¶
type OP_CSRRWI ¶
func (OP_CSRRWI) Components ¶
func (o OP_CSRRWI) Components() Components
func (OP_CSRRWI) Instruction ¶
type OP_DRET ¶
type OP_DRET struct { }
func (OP_DRET) Components ¶
func (o OP_DRET) Components() Components
func (OP_DRET) Instruction ¶
type OP_EBREAK ¶
type OP_EBREAK struct { }
func (OP_EBREAK) Components ¶
func (o OP_EBREAK) Components() Components
func (OP_EBREAK) Instruction ¶
type OP_ECALL ¶
type OP_ECALL struct { }
func (OP_ECALL) Components ¶
func (o OP_ECALL) Components() Components
func (OP_ECALL) Instruction ¶
type OP_FENCE ¶
func (OP_FENCE) Components ¶
func (o OP_FENCE) Components() Components
func (OP_FENCE) Instruction ¶
type OP_FENCE_I ¶
func (OP_FENCE_I) Components ¶
func (o OP_FENCE_I) Components() Components
func (OP_FENCE_I) Instruction ¶
func (o OP_FENCE_I) Instruction() string
type OP_ILLEGAL ¶
type OP_ILLEGAL struct { }
func (OP_ILLEGAL) Components ¶
func (o OP_ILLEGAL) Components() Components
func (OP_ILLEGAL) Instruction ¶
func (o OP_ILLEGAL) Instruction() string
type OP_JAL ¶
func (OP_JAL) Components ¶
func (o OP_JAL) Components() Components
func (OP_JAL) Instruction ¶
type OP_JALR ¶
func (OP_JALR) Components ¶
func (o OP_JALR) Components() Components
func (OP_JALR) Instruction ¶
type OP_LB ¶
func (OP_LB) Components ¶
func (o OP_LB) Components() Components
func (OP_LB) Instruction ¶
type OP_LBU ¶
func (OP_LBU) Components ¶
func (o OP_LBU) Components() Components
func (OP_LBU) Instruction ¶
type OP_LH ¶
func (OP_LH) Components ¶
func (o OP_LH) Components() Components
func (OP_LH) Instruction ¶
type OP_LHU ¶
func (OP_LHU) Components ¶
func (o OP_LHU) Components() Components
func (OP_LHU) Instruction ¶
type OP_LUI ¶
func (OP_LUI) Components ¶
func (o OP_LUI) Components() Components
func (OP_LUI) Instruction ¶
type OP_LW ¶
func (OP_LW) Components ¶
func (o OP_LW) Components() Components
func (OP_LW) Instruction ¶
type OP_MRET ¶
type OP_MRET struct { }
func (OP_MRET) Components ¶
func (o OP_MRET) Components() Components
func (OP_MRET) Instruction ¶
type OP_OR ¶
func (OP_OR) Components ¶
func (o OP_OR) Components() Components
func (OP_OR) Instruction ¶
type OP_ORI ¶
func (OP_ORI) Components ¶
func (o OP_ORI) Components() Components
func (OP_ORI) Instruction ¶
type OP_SB ¶
func (OP_SB) Components ¶
func (o OP_SB) Components() Components
func (OP_SB) Instruction ¶
type OP_SFENCE_VMA ¶
func (OP_SFENCE_VMA) Components ¶
func (o OP_SFENCE_VMA) Components() Components
func (OP_SFENCE_VMA) Instruction ¶
func (o OP_SFENCE_VMA) Instruction() string
type OP_SH ¶
func (OP_SH) Components ¶
func (o OP_SH) Components() Components
func (OP_SH) Instruction ¶
type OP_SLL ¶
func (OP_SLL) Components ¶
func (o OP_SLL) Components() Components
func (OP_SLL) Instruction ¶
type OP_SLLI ¶
func (OP_SLLI) Components ¶
func (o OP_SLLI) Components() Components
func (OP_SLLI) Instruction ¶
type OP_SLT ¶
func (OP_SLT) Components ¶
func (o OP_SLT) Components() Components
func (OP_SLT) Instruction ¶
type OP_SLTI ¶
func (OP_SLTI) Components ¶
func (o OP_SLTI) Components() Components
func (OP_SLTI) Instruction ¶
type OP_SLTIU ¶
func (OP_SLTIU) Components ¶
func (o OP_SLTIU) Components() Components
func (OP_SLTIU) Instruction ¶
type OP_SLTU ¶
func (OP_SLTU) Components ¶
func (o OP_SLTU) Components() Components
func (OP_SLTU) Instruction ¶
type OP_SRA ¶
func (OP_SRA) Components ¶
func (o OP_SRA) Components() Components
func (OP_SRA) Instruction ¶
type OP_SRAI ¶
func (OP_SRAI) Components ¶
func (o OP_SRAI) Components() Components
func (OP_SRAI) Instruction ¶
type OP_SRET ¶
type OP_SRET struct { }
func (OP_SRET) Components ¶
func (o OP_SRET) Components() Components
func (OP_SRET) Instruction ¶
type OP_SRL ¶
func (OP_SRL) Components ¶
func (o OP_SRL) Components() Components
func (OP_SRL) Instruction ¶
type OP_SRLI ¶
func (OP_SRLI) Components ¶
func (o OP_SRLI) Components() Components
func (OP_SRLI) Instruction ¶
type OP_SUB ¶
func (OP_SUB) Components ¶
func (o OP_SUB) Components() Components
func (OP_SUB) Instruction ¶
type OP_SW ¶
func (OP_SW) Components ¶
func (o OP_SW) Components() Components
func (OP_SW) Instruction ¶
type OP_WFI ¶
type OP_WFI struct { }
func (OP_WFI) Components ¶
func (o OP_WFI) Components() Components
func (OP_WFI) Instruction ¶
type OP_XOR ¶
func (OP_XOR) Components ¶
func (o OP_XOR) Components() Components
func (OP_XOR) Instruction ¶
type OP_XORI ¶
func (OP_XORI) Components ¶
func (o OP_XORI) Components() Components
func (OP_XORI) Instruction ¶
type Opcode ¶
type Opcode interface { Components() Components Instruction() string }
Click to show internal directories.
Click to hide internal directories.