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