From 22fe5e9c9374a7a97909b765f752c52ea0acdf5b Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Tue, 9 Nov 2021 10:21:33 +0100 Subject: [PATCH] Fixed use of deprecated self.error in AssemblyHelper.py Signed-off-by: Ivan Diaz --- py/base/AssemblyHelper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/base/AssemblyHelper.py b/py/base/AssemblyHelper.py index af3df36f..a8e03f22 100644 --- a/py/base/AssemblyHelper.py +++ b/py/base/AssemblyHelper.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +import Log + from abc import ABC from abc import abstractmethod @@ -334,7 +336,7 @@ def getBranchOffset(self, aTargetAddr, aImmFieldWidth): shift=self.getBranchShift(), ) if not valid: - self.error( + Log.error( "Unable to generate branch instruction from 0x%x to 0x%x" % (cur_pc, aTargetAddr) )