Plugins may help us to track a specified set of events in user code, without modifying hSim sources.
Requirements:
- Plugins subsystem should be able to define events list in extendable way
- Each plugin should register handlers for events in order to be called on them
- We should have a useful interface to (un)register user-defined plugins dynamically (dlfcn.h should help)
- Desired set of events (signatures could be discussed in personal):
- PreInsn
- PostInsn
- MemRead
- MemWrite
Later, we could implement cosimulation dump as a plugin to minimize hSim code changes
Plugins may help us to track a specified set of events in user code, without modifying hSim sources.
Requirements:
Later, we could implement cosimulation dump as a plugin to minimize hSim code changes