read back the written value and display

This commit is contained in:
Sam Leffler 2009-06-24 18:24:20 +00:00
parent 5061de23fa
commit 12a39a13db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194872

View file

@ -105,8 +105,7 @@ main(int argc, char *argv[])
reg = (dr != NULL) ? dr->addr : (uint32_t) strtoul(argv[0], NULL, 0);
if (cp != NULL)
regwrite(s, &atd, reg, (uint32_t) strtoul(cp, NULL, 0));
else
printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
}
return 0;
}