Module state
Expand description
CPU state representation, efficient representations of modifications to CPU state, and CPU state randomization.
Modules§
Structs§
- Addr
- Represents a 64-bit memory address.
- Area
- Represents an arbitrary memory area between two Addrs.
- Memory
State - Memory state of a CPU.
- Memory
State Item Mut - A mutable reference to a memory mapping in
MemoryState. - Page
- Represents a memory page.
- Split
Dests - Splits dests into smaller, non-overlapping chunks.
- State
Byte - A byte in a CPU state.
Used in the
SystemStateByteViewto reference specific bytes in the system state. - System
State - A CPU state consisting of the architecture-specific state part and memory mappings.
- System
State Byte View - A bytewise view of a system state. Allows the state to be read and written as if it were a contiguous block of bytes.
- System
State IoPair - An input-output pair of
SystemStates.
Enums§
- Location
- A storage location in a CPU state.
- Location
Kind - The kind of a storage location.
- Permissions
- The access permissions of a memory mapping.
- System
State Byte View Reg - A register in the
SystemStateByteView.
Constants§
- MAX_
MEMORY_ SIZE - The maximum number of bytes that a single memory mapping can be.
Traits§
- AsSystem
State - NOTE: This value will be copied around a few times. Make sure it’s small enough!
Type Aliases§
- Memory
Entry - A memory mapping in a
MemoryState.