stdlib: Add comment to ShadowResource (#645)

This comment explains that this solution is a hack the solution created
by https://github.com/gem5/gem5/issues/644 should eventually replace it.
This commit is contained in:
Bobby R. Bruce
2023-12-03 13:38:59 -08:00
committed by GitHub
parent bad569a3f8
commit c718e94753

View File

@@ -814,6 +814,12 @@ class ShadowResource(AbstractResource):
which is is neither `get_id` or `get_resource_version` does this class
fully construct itself by calling the `obtain_resource_call` partial
function.
**Note:** This class is a hack. The ideal solution to this would be to
enable the bundled obtaining of resources in the gem5 Standard Library.
Use of the class is discouraged and should not be depended on. Issue
https://github.com/gem5/gem5/issues/644 is tracking the implementation of
an alternative.
"""
def __init__(