Type Alias simics_api_sys::map_info_t

source ·
pub type map_info_t = map_info;
Expand description
map_info_t swap_mode_t map_info_t map_info_t, swap_mode_t map_type_t The map_info_t structure members have the following meaning:
  • base: The base address of the device mapping in the memory space.
  • start: The address inside the device memory space where the mapping starts.
  • length: The length of the mapped memory, in bytes.
  • function: Used to map the same object several times with different functionality. Corresponds to the function argument used when mapping devices into a memory space.
  • If the map target does not support large accesses, then align_size can be set to the maximum allowed size. Accesses spanning align boundaries will be split into several smaller transactions. The align size must be a power of two, or zero (which means "use the default value": 8 for devices and 8192 for memory).
  • Mappings with an align size of 2, 4, or 8 may set the reverse_endian field to a non zero value. This can be used to model bridges that perform byte swapping on a specific bus width.

If both base and length are 0 the map will become a default_target.

Aliased Type§

struct map_info_t {
    pub base: u64,
    pub start: u64,
    pub length: u64,
    pub function: i32,
    pub priority: i16,
    pub align_size: i32,
    pub reverse_endian: swap_mode,
}

Fields§

§base: u64§start: u64§length: u64§function: i32§priority: i16§align_size: i32§reverse_endian: swap_mode