Skip to content

Commit

Permalink
Fixed use of deprecated self.error in AssemblyHelper.py
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Diaz <[email protected]>
  • Loading branch information
Ivan Diaz committed Nov 9, 2021
1 parent b795ce6 commit 22fe5e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/base/AssemblyHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
)
Expand Down

0 comments on commit 22fe5e9

Please sign in to comment.