Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/52107 )

Change subject: sim: Remove some old transitional code in SEWorkload.
......................................................................

sim: Remove some old transitional code in SEWorkload.

This code was just to catch cases where the SEWorkload init_compatible
function couldn't find a compatible SEWorkload subclass. Now that all of
these classes are set up with this mechanism, there's no need to keep
this code around.

Change-Id: Ie847f5a90ccf98eb58c149a22a6881529344946d
---
M src/sim/Workload.py
1 file changed, 14 insertions(+), 4 deletions(-)



diff --git a/src/sim/Workload.py b/src/sim/Workload.py
index c881447..ad460b1 100644
--- a/src/sim/Workload.py
+++ b/src/sim/Workload.py
@@ -102,10 +102,6 @@
         if len(options) > 1:
raise ValueError("More than one SE workload is compatible with %s")
         elif len(options) < 1:
-            # For now, fall back to the base class if there are no matches.
- # After we've had a chance to implement everything, this default - # can be removed since this should always find exactly one match.
-            return SEWorkload(*args, **kwargs)
             raise ValueError("No SE workload is compatible with %s", path)

         return options[0](*args, **kwargs)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/52107
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie847f5a90ccf98eb58c149a22a6881529344946d
Gerrit-Change-Number: 52107
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to