opcode_info
interface is implemented by
processors that need to communicate information about the encoding
of instructions to the GUI.
The get_opcode_length function returns information about instruction encoding in the current operating mode of the processor. The min_alignment field indicates the smallest allowed alignment of instructions, typically 4 for regular RISC architectures. The max_length field specifies the maximum instruction length in bytes. The avg_length is an approximation of the average instruction size.
typedef struct { int min_alignment; int max_length; int avg_length; } opcode_length_info_t; SIM_INTERFACE(opcode_info) { opcode_length_info_t (*get_opcode_length_info)(conf_object_t *obj); }; #define OPCODE_INFO_INTERFACE "opcode_info"