experiments/dart_dump: Add spport for dart-t8110

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2022-07-31 22:03:14 +02:00 committed by Asahi Lina
parent d12e4e4277
commit 06826b63f7

View file

@ -7,15 +7,18 @@ import struct
from m1n1.setup import *
from m1n1 import asm
from m1n1.hw.dart import DART, DARTRegs
from m1n1.hw.dart import DART
from m1n1.hw.dart8110 import DART8110
if len(sys.argv) > 1:
dart_name = sys.argv[1]
dart_path = "/arm-io/" + sys.argv[1]
else:
dart_name = "dart-disp0"
dart_path = "/arm-io/dart-disp0"
# disp0 DART
# note that there's another range just before this one
disp0 = DART.from_adt(u, "arm-io/" + dart_name)
disp0.dump_all()
disp0.regs.dump_regs()
if u.adt[dart_path].compatible[0] == "dart,t8110":
dart = DART8110.from_adt(u, dart_path)
else:
dart = DART.from_adt(u, dart_path)
dart.dump_all()
dart.regs.dump_regs()