misc: Add v22.0.0.1 hotfix

This hotfix fixes a bad import in
src/python/gem5/components/processors/simple_core.py
This commit is contained in:
Bobby R. Bruce
2022-06-18 03:36:27 -07:00
parent 7b9364b5c0
commit a10073119e
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
# Version 22.0.0.1
**[HOTFIX]** Fixes relative import in "src/python/gem5/components/processors/simple_core.py".
The import `from python.gem5.utils.requires import requires` in v22.0.0.0 of gem5 is incorrect as it causes problems when executing gem5 binaries in certain directories (`python` isn't necessary included).
To resolve this, this import has been changed to `from ...utils.requires imports requires`.
This should work in all supported use-cases.
# Version 22.0.0.0
gem5 version 22.0 has been slightly delayed, but we a have a very strong release!

View File

@@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from typing import Optional
from python.gem5.utils.requires import requires
from ...utils.requires import requires
from ..processors.abstract_core import AbstractCore
from .cpu_types import CPUTypes