microprobe.target.env.GenericEnvironment

class GenericEnvironment(name: str, descr: str, isa: ISA, little_endian: bool = False)[source]

Bases: Environment

__init__(name: str, descr: str, isa: ISA, little_endian: bool = False)[source]
Parameters:
  • name

  • descr

  • isa

Methods

__init__(name, descr, isa[, little_endian])

param name:

elf_abi(stack_size, start_symbol[, ...])

full_report()

function_call(target[, return_address_reg, ...])

function_return([return_address_reg])

hook_after_reset_instructions()

hook_after_test_instructions()

hook_before_test_instructions()

hook_test_end_instructions()

hook_test_init_instructions()

list_properties([tabs])

register_name(register)

param register:

register_property(prop[, force])

param prop:

set_target(target)

param target:

set_threads(num_threads)

param num_threads:

unregister_property(prop)

param prop:

Attributes

default_wrapper

description

environment_reserved_registers

isa

little_endian

name

properties

stack_direction

stack_pointer

target

threads

volatile_registers




property name
property description
property isa
property environment_reserved_registers
property threads
property target
set_target(target: Target)[source]
Parameters:

target

set_threads(num_threads: int)[source]
Parameters:

num_threads

register_name(register: str)[source]
Parameters:

register

full_report()[source]
property default_wrapper
elf_abi(stack_size: int, start_symbol, stack_name: str = 'microprobe stack', stack_alignment: int = 16, stack_address: Address | None = None, **kwargs)[source]
function_call(target: Target, return_address_reg: Register | None = None, long_jump: bool = False)[source]
function_return(return_address_reg: Register | None = None)[source]
property volatile_registers
property stack_pointer
property stack_direction
property little_endian
hook_before_test_instructions()[source]
hook_after_test_instructions()[source]
hook_test_init_instructions()[source]
hook_after_reset_instructions()[source]
hook_test_end_instructions()[source]
list_properties(tabs=0)
property properties
register_property(prop, force=False)
Parameters:

prop

unregister_property(prop)
Parameters:

prop