l4-sys: Enable FI in all config cases

Fix the problem that injection was never enabled if func_entry == filter_entry.

Change-Id: Ifec64b6d1351e0857e568ca132cfed891f85aa62
This commit is contained in:
Tobias Stumpf
2015-07-29 19:09:32 +02:00
parent 32b11b35d8
commit 246938d4a6

View File

@ -89,7 +89,11 @@ void L4SysExperiment::collectInstructionTrace(fail::BPSingleListener* bp)
bp->setWatchInstructionPointer(ANY_ADDR);
map<address_t, unsigned> times_called_map;
bool injecting = false;
/* We run until the IP reaches func_entry. We will not
* reach the same IP again. So, if filter and func entry are
* equal, then we have to enable injections.
*/
bool injecting = conf.filter_entry == conf.func_entry;
while (bp->getTriggerInstructionPointer() != conf.func_exit) {
fail::BaseListener *res = simulator.resume();