mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-21 09:16:48 +00:00
amic: Return random value for SCC DMA Rcv.
This allows Mac OS 8.5 and Mac OS 8.5.1 to boot from SCSI of Power Mac 6100.
This commit is contained in:
@@ -217,8 +217,25 @@ uint32_t AMIC::read(uint32_t rgn_start, uint32_t offset, int size)
|
||||
return this->floppy_dma->read_stat();
|
||||
case SCC_DMA_Xmt_A_Ctrl:
|
||||
return this->escc_xmit_a_dma->read_stat();
|
||||
case SCC_RXA_Byte_Cnt_Hi:
|
||||
return 0;
|
||||
case SCC_RXA_Byte_Cnt_Lo:
|
||||
return 0;
|
||||
case SCC_DMA_Rcv_A_Ctrl: {
|
||||
uint32_t value = std::rand() & (-1U >> (32 - size * 8));
|
||||
LOG_F(WARNING, "AMIC SCC Receive Ch A DMA Ctrl read @%x.%c = %0*x", offset, SIZE_ARG(size), size * 2, value);
|
||||
return value;
|
||||
}
|
||||
case SCC_DMA_Xmt_B_Ctrl:
|
||||
return this->escc_xmit_b_dma->read_stat();
|
||||
case SCC_RXB_Byte_Cnt_Hi:
|
||||
return 0;
|
||||
case SCC_RXB_Byte_Cnt_Lo:
|
||||
return 0;
|
||||
case SCC_DMA_Rcv_B_Ctrl: {
|
||||
uint32_t value = std::rand() & (-1U >> (32 - size * 8));
|
||||
LOG_F(WARNING, "AMIC SCC Receive Ch B DMA Ctrl read @%x.%c = %0*x", offset, SIZE_ARG(size), size * 2, value);
|
||||
return value;
|
||||
default:
|
||||
LOG_F(WARNING, "Unknown AMIC register read, offset=%x", offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user