bank_after_read
interface is used to monitor and modify
the state of read accesses from the after_read_callback_t
callback.
SIM_INTERFACE(bank_after_read) { physical_address_t (*offset)(bank_access_t *handle); physical_address_t (*size)(bank_access_t *handle); bool (*missed)(bank_access_t *handle); uint64 (*value)(bank_access_t *handle); void (*set_missed)(bank_access_t *handle, bool missed); void (*set_value)(bank_access_t *handle, uint64 value); conf_object_t *(*initiator)(bank_access_t *handle); }; #define BANK_AFTER_READ_INTERFACE "bank_after_read"
offset retrieves the address of the access.
size gets the size of the access.
missed tells you whether or not the access succeeded.
value provides the read value. May not be invoked if missed is true.
set_missed can be used to inject or forgive an access miss.
set_value can change the read value.
initiator returns the initiator of the access. This method may be
NULL
, although this is deprecated. If the interface was implemented
by a DML/C/C++ bank, then the method may only be accessed if the bank was
compiled with Simics Base 6.0.129 or newer.
bank_access_t
.