1
0
mirror of https://github.com/livingcomputermuseum/UniBone.git synced 2026-05-05 07:24:45 +00:00

Cleanup incomplete commits

This commit is contained in:
Joerg Hoppe
2019-06-18 20:38:07 +02:00
parent a4dc6af85c
commit 264f6e5085
58 changed files with 1262 additions and 114 deletions

View File

@@ -69,7 +69,7 @@ extern "C" {
int cpu_dato(unsigned addr, unsigned data) {
bool timeout;
mailbox->dma.words[0] = data;
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_NONE, UNIBUS_CONTROL_DATO, addr, 1);
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_MASTER , UNIBUS_CONTROL_DATO, addr, 1);
return !timeout;
}
@@ -78,7 +78,7 @@ int cpu_datob(unsigned addr, unsigned data) {
// TODO DATOB als 1 byte-DMA !
bool timeout;
mailbox->dma.words[0] = data;
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_NONE, UNIBUS_CONTROL_DATOB, addr, 1);
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_MASTER, UNIBUS_CONTROL_DATOB, addr, 1);
return !timeout;
}
@@ -86,7 +86,7 @@ int cpu_datob(unsigned addr, unsigned data) {
int cpu_dati(unsigned addr, unsigned *data) {
bool timeout;
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_NONE, UNIBUS_CONTROL_DATI, addr, 1);
timeout = !unibus->dma(unibus_c::ARBITRATION_MODE_MASTER, UNIBUS_CONTROL_DATI, addr, 1);
*data = mailbox->dma.words[0];
return !timeout;
}
@@ -102,7 +102,10 @@ void cpu_c::worker(void) {
unsigned opcode = 0;
(void) opcode;
while (!worker_terminate) {
timeout.wait_ms(10);
// run full speed!
timeout.wait_us(1);
// timeout.wait_ms(10);
if (runmode.value != (ka11.state != 0))
ka11.state = runmode.value;