I want to design a emulator and implement the "code coverage" function in the emulator,what should I do? I guess I should do sth. in AGDI driver or in emulator hardware.Am I right?Who can tell me the right way?
It is complete: take a look to the topic "The Memory Interface". The _AG_MemAtt function can return all relevant information from the target. The attributes for Code Coverage are:
#define AG_ATR_EXECD 0x10 // Location has been 'Executed' #define AG_ATR_JTAKEN 0x4000 // Jump at location was true executed