python: fix "fatal" usage in fdthelper
authorAdrian Herrera <adrian.herrera@arm.com>
Thu, 28 Nov 2019 17:04:34 +0000 (17:04 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 18 Dec 2019 09:15:14 +0000 (09:15 +0000)
"fatal" was not correctly imported in the fdthelper module,
which caused a crash when reporting errors.

Change-Id: I7ee9dcde1f0288e11e56dba67ead4aa2d6d67e02
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23753
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/util/fdthelper.py

index 27d6f844c296d88ff7beca6c8ecf8bb7a7bc2475..7ad3aba132f9637ee35a1a0673d8349edc5fc414 100644 (file)
@@ -43,6 +43,7 @@ from m5.ext.pyfdt import pyfdt
 import re
 import os
 from m5.SimObject import SimObject
+from m5.util import fatal
 
 class FdtProperty(pyfdt.FdtProperty):
     """Create a property without values."""