tools/litex_cli: Fix --write.

This commit is contained in:
Florent Kermarrec 2022-12-12 11:26:37 +01:00
parent 30d68ce152
commit cb85a8caf1
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ def main():
try:
addr = int(args.write[0], 0)
except ValueError:
addr = reg2addr(csr_csv, args.write[0])
addr = reg2addr(host, csr_csv, args.write[0])
write_memory(
host = args.host,
csr_csv = csr_csv,