mips mips_coprocessor
API Reference Manual  /  4 Model-to-Model Interfaces  / 

mips_cache_instruction

Description
This mips_cache_instruction interface is used when side-effects are wanted when cache instructions are run.

The cache_instruction function is called whenever the cache instruction is run, and the parameters operation and vaddr are taken directly from the instruction.

The exact meaning of operation is processor-dependent.

A non-zero return value indicates that an exception should be raised on the MIPS core), whereas a zero value means no exception.

SIM_INTERFACE(mips_cache_instruction) {
        int (*cache_instruction)(conf_object_t *NOTNULL self,
                                 conf_object_t *NOTNULL cpu,
                                 uint32 op, logical_address_t vaddr);
};
#define MIPS_CACHE_INSTRUCTION_INTERFACE "mips_cache_instruction"

Execution Context
Cell Context.

mips mips_coprocessor