From 02b73f57e0274db84a3b30962074d2a89689f8d6 Mon Sep 17 00:00:00 2001 From: Maxime Chéramy Date: Fri, 26 Jun 2015 17:31:08 +0200 Subject: [PATCH] Tasks: Abort on miss is now the default. --- simso/configuration/Configuration.py | 2 +- simso/configuration/parser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- libgit2 0.26.0