Skip to content

Commit

Permalink
Merge pull request #35 from Wlgen/bsc_ivan_issue_34
Browse files Browse the repository at this point in the history
Fixed use of deprecated self.error in AssemblyHelper.py
  • Loading branch information
MikeOpenHWGroup authored Nov 15, 2021
2 parents b795ce6 + 22fe5e9 commit 500cec3
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 500cec3

Please sign in to comment.