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§
- ELFFile
Header Front - 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.
- Operand
Storage - Provides a continuous memory storage for multiple operands.
Enums§
- IsaIdentifier
- Identifiers of all ISAs recognized by the simulator.
- Memory
Access Type - 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.
- Interactive
Emulator - 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.