Crate gpcas_isa

Crate gpcas_isa 

Source
Expand description

Provides the interface between ISAs and the GPCAS simulator. It also provides basic handling of ELF files. In order to provide support, an ISA has to provide a public function that returns an Isa object. Possible ISAs are defined in IsaIdentifier.

Modules§

instruction_flags
Contains constants for control information for the cpu simulation.

Structs§

ELFFileHeaderFront
The first part of an ELF file header.
Instruction
An emulated instruction from the program of the simulation.
Isa
The properties of an instruction set architecture.
OperandStorage
Provides a continuous memory storage for multiple operands.

Enums§

IsaIdentifier
Identifiers of all ISAs recognized by the simulator.
MemoryAccessType
How an ISA handles memory access in its instructions.

Constants§

IS_VECTOR_REGISTER
This flag gets set in the register indices. It indicates that the index is for a vector register and therefore might be using a separate register set.
MAX_INPUTS
The maximum number of register inputs that is needed by any ISA.

Traits§

Emulator
Can be used to emulate programs by the simulator.
InteractiveEmulator
Additional functions used for interactive emulation.

Functions§

check_isa
Returns the ISA of the program file if it can be identified by the simulator.
format_c_string
Formats a c-style string into a rust-style one.