Function panda_sys::cpu_address_space_init[][src]

pub unsafe extern "C" fn cpu_address_space_init(
    cpu: *mut CPUState,
    as_: *mut AddressSpace,
    asidx: c_int
)
Expand description

cpu_address_space_init: @cpu: CPU to add this address space to @as: address space to add @asidx: integer index of this address space

Add the specified address space to the CPU’s cpu_ases list. The address space added with @asidx 0 is the one used for the convenience pointer cpu->as. The target-specific code which registers ASes is responsible for defining what semantics address space 0, 1, 2, etc have.

Before the first call to this function, the caller must set cpu->num_ases to the total number of address spaces it needs to support.

Note that with KVM only one address space is supported.