ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include <Delegate.h>
Public Member Functions | |
SimpleInstructionInjector (bool useRefetchCompensation=true) | |
void | append (T val) |
template<class InputIt > | |
void | append (InputIt first, InputIt last) |
void | setHelper (unsigned index, std::function< std::list< T >(T)> func) |
Adds a function with an unique ID to the SimpleInstructionInjector. More... | |
bool | appendWithHelper (unsigned helper, T val) |
void | appendRepetitions (unsigned count) |
std::function< etiss::int32(bool, uint64_t &, uint64_t, uint8_t *, unsigned, bool &, bool &)> | toFunction () |
void | swapEndianness () |
swaps the endianness of all stored buffer values More... | |
bool | injectionFinished () |
bool | logInjectionAddresses () |
void | logInjectionAddresses (bool val) |
std::list< uint64_t > & | injectionAddresses () |
Private Attributes | |
std::list< T > | buffer |
std::map< unsigned, std::function< std::list< T >T)> > | genHelpers |
bool | logInjectionAddresses_ |
bool | useRefetchCompensation_ |
std::list< uint64_t > | injectionAddresses_ |
Definition at line 163 of file Delegate.h.
|
inline |
Definition at line 168 of file Delegate.h.
|
inline |
Definition at line 176 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer.
|
inline |
Definition at line 173 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::appendWithHelper().
|
inline |
Definition at line 204 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer.
|
inline |
Definition at line 191 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::append(), and etiss::interfaces::SimpleInstructionInjector< T >::genHelpers.
|
inline |
Definition at line 299 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::injectionAddresses_.
|
inline |
Definition at line 295 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer.
|
inline |
Definition at line 297 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::logInjectionAddresses_.
|
inline |
Definition at line 298 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::logInjectionAddresses_.
|
inline |
Adds a function with an unique ID to the SimpleInstructionInjector.
ID | of the added function. |
Function | pointer of the function to add. |
Definition at line 186 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::genHelpers.
|
inline |
swaps the endianness of all stored buffer values
Definition at line 282 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer.
|
inline |
Definition at line 216 of file Delegate.h.
References etiss::interfaces::SimpleInstructionInjector< T >::buffer, etiss::ERROR, etiss::interfaces::SimpleInstructionInjector< T >::injectionAddresses_, etiss::log(), etiss::interfaces::SimpleInstructionInjector< T >::logInjectionAddresses_, etiss::mm::NOERROR, uint64_t, uint8_t, and etiss::interfaces::SimpleInstructionInjector< T >::useRefetchCompensation_.
|
private |
Definition at line 302 of file Delegate.h.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::append(), etiss::interfaces::SimpleInstructionInjector< T >::appendRepetitions(), etiss::interfaces::SimpleInstructionInjector< T >::injectionFinished(), etiss::interfaces::SimpleInstructionInjector< T >::swapEndianness(), and etiss::interfaces::SimpleInstructionInjector< T >::toFunction().
|
private |
Definition at line 304 of file Delegate.h.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::appendWithHelper(), and etiss::interfaces::SimpleInstructionInjector< T >::setHelper().
|
private |
Definition at line 308 of file Delegate.h.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::injectionAddresses(), and etiss::interfaces::SimpleInstructionInjector< T >::toFunction().
|
private |
Definition at line 306 of file Delegate.h.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::logInjectionAddresses(), and etiss::interfaces::SimpleInstructionInjector< T >::toFunction().
|
private |
Definition at line 307 of file Delegate.h.
Referenced by etiss::interfaces::SimpleInstructionInjector< T >::toFunction().