diff --git a/simso/configuration/Configuration.py b/simso/configuration/Configuration.py index e81a812..4c0f2d7 100644 --- a/simso/configuration/Configuration.py +++ b/simso/configuration/Configuration.py @@ -278,7 +278,7 @@ class Configuration(object): return self._scheduler_info def add_task(self, name, identifier, task_type="Periodic", - abort_on_miss=False, period=10, activation_date=0, + abort_on_miss=True, period=10, activation_date=0, n_instr=0, mix=0.5, stack_file="", wcet=0, acet=0, et_stddev=0, deadline=10, base_cpi=1.0, followed_by=None, list_activation_dates=[], preemption_cost=0, data=None): diff --git a/simso/configuration/parser.py b/simso/configuration/parser.py index 51d5f5b..d64e0b3 100644 --- a/simso/configuration/parser.py +++ b/simso/configuration/parser.py @@ -93,8 +93,8 @@ class Parser(object): attr['name'].value, int(attr['id'].value), task_type, - 'abort_on_miss' in attr - and attr['abort_on_miss'].value == 'yes', + 'abort_on_miss' not in attr + or attr['abort_on_miss'].value == 'yes', float(attr['period'].value), float(attr['activationDate'].value) if 'activationDate' in attr else 0,