unsigned i = address - DMI_DATA0;
result = dmdata.read32(4 * i);
+ if (abstractcs.busy && abstractcs.cmderr == abstractcs.CMDERR_NONE) {
+ abstractcs.cmderr = abstractcs.CMDERR_BUSY;
+ }
+
bool autoexec = false;
switch (i) {
case 0: autoexec = abstractcs.autoexec0; break;
unsigned i = address - DMI_DATA0;
dmdata.write32(4 * i, value);
+ if (abstractcs.busy && abstractcs.cmderr == abstractcs.CMDERR_NONE) {
+ abstractcs.cmderr = abstractcs.CMDERR_BUSY;
+ }
+
bool autoexec = false;
switch (i) {
case 0: autoexec = abstractcs.autoexec0; break;