Alignment adjustment to make XCVR perform the same as non-XCVR

This commit is contained in:
Glenn Anderson 2022-06-04 23:33:19 -07:00
parent 1aecf323e1
commit dcbb7df80d
1 changed files with 6 additions and 0 deletions

View File

@ -1768,5 +1768,11 @@ BusFree:
SCSI_TARGET_INACTIVE() // Turn off BSY, REQ, MSG, CD, IO output
#ifdef XCVR
TRANSCEIVER_IO_SET(vTR_TARGET,TR_INPUT);
// Something in code linked after this function is performing better with a +4 alignment.
// Adding this nop is causing the next function (_GLOBAL__sub_I_SD) to have an address with a last digit of 0x4.
// Last digit of 0xc also works.
// This affects both with and without XCVR, currently without XCVR doesn't need any padding.
// Until the culprit can be tracked down and fixed, it may be necessary to do manual adjustment.
asm("nop.w");
#endif
}