mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-25 08:00:17 +00:00
experiments/dart_dump.py: Use DART.from_adt()
The label of the ADT node is easier to use. Uses the proper DART type on t600x SoCs. Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
a57696366f
commit
e1c5df5037
1 changed files with 4 additions and 3 deletions
|
@ -10,11 +10,12 @@ from m1n1 import asm
|
|||
from m1n1.hw.dart import DART, DARTRegs
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
dart_addr = int(sys.argv[1], 16)
|
||||
dart_name = sys.argv[1]
|
||||
else:
|
||||
dart_addr = 0x231304000
|
||||
dart_name = "dart-disp0"
|
||||
|
||||
# disp0 DART
|
||||
# note that there's another range just before this one
|
||||
disp0 = DART(iface, DARTRegs(u, dart_addr))
|
||||
disp0 = DART.from_adt(u, "arm-io/" + dart_name)
|
||||
disp0.dump_all()
|
||||
disp0.regs.dump_regs()
|
||||
|
|
Loading…
Reference in a new issue