rvgc

package
v0.0.0-...-8e00646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinToInst

func BinToInst(bin []byte) string

func InstToBin

func InstToBin(inst []string) ([]byte, elf.R_RISCV)

Types

type RV64Inst

type RV64Inst struct {
	Type   RV_INST_TYPE
	Opcode RV_OPCODE_TYPE
	Inst   interface{}
}

type RV64InstB

type RV64InstB RV64InstS

type RV64InstI

type RV64InstI struct {
	// contains filtered or unexported fields
}

type RV64InstJ

type RV64InstJ RV64InstU

type RV64InstR

type RV64InstR struct {
	// contains filtered or unexported fields
}

type RV64InstS

type RV64InstS struct {
	// contains filtered or unexported fields
}

type RV64InstU

type RV64InstU struct {
	// contains filtered or unexported fields
}

type RV_INST_TYPE

type RV_INST_TYPE uint32
const (
	RV_INST_NONE   RV_INST_TYPE = 0
	RV_INST_R_TYPE RV_INST_TYPE = 1
	RV_INST_I_TYPE RV_INST_TYPE = 2
	RV_INST_S_TYPE RV_INST_TYPE = 3
	RV_INST_B_TYPE RV_INST_TYPE = 4
	RV_INST_U_TYPE RV_INST_TYPE = 5
	RV_INST_J_TYPE RV_INST_TYPE = 6
	RV_INST_PSEUDO RV_INST_TYPE = 7
)

type RV_OPCODE_TYPE

type RV_OPCODE_TYPE uint32
const (
	RV_OPCODE_LOAD      RV_OPCODE_TYPE = 0x03
	RV_OPCODE_OP_IMM    RV_OPCODE_TYPE = 0x13
	RV_OPCODE_AUIPC     RV_OPCODE_TYPE = 0x17
	RV_OPCODE_OP_IMM_32 RV_OPCODE_TYPE = 0x1b
	RV_OPCODE_STORE     RV_OPCODE_TYPE = 0x23
	RV_OPCODE_OP        RV_OPCODE_TYPE = 0x33
	RV_OPCODE_LUI       RV_OPCODE_TYPE = 0x37
	RV_OPCODE_OP_32     RV_OPCODE_TYPE = 0x3b
	RV_OPCODE_BRANCH    RV_OPCODE_TYPE = 0x63
	RV_OPCODE_JALR      RV_OPCODE_TYPE = 0x67
	RV_OPCODE_JAL       RV_OPCODE_TYPE = 0x6f
	RV_OPCODE_SYSTEM    RV_OPCODE_TYPE = 0x73
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL