Skip to content

Commit

Permalink
[#41544] Prefer reg address for heuristic memory peripherals
Browse files Browse the repository at this point in the history
  • Loading branch information
p-woj committed Apr 12, 2023
1 parent 648ef46 commit cce29cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dts2repl/dts2repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,11 @@ def generate(args):
_, size = next(get_reg(node))
address = f'<{address}, +{size:#x}>'

# check the registration point of guessed memory peripherals
if is_heuristic_memory:
address, _ = next(get_reg(node))
address = hex(address)
# check the registration point of guessed memory peripherals
if is_heuristic_memory:
node_reg = next(get_reg(node), None)
if node_reg:
address = hex(node_reg[0])

indent = []

Expand Down

0 comments on commit cce29cd

Please sign in to comment.