mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-10 16:30:07 +00:00
Fully banish flush
from the processors.
This commit is contained in:
parent
4e9ae65459
commit
4ddbf095f3
@ -176,8 +176,6 @@ struct BusHandler {
|
||||
return HalfCycles(0);
|
||||
}
|
||||
|
||||
void flush() {}
|
||||
|
||||
int transaction_delay;
|
||||
int instructions;
|
||||
|
||||
|
@ -650,7 +650,6 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
|
||||
}
|
||||
|
||||
cycles_left_to_run_ = number_of_cycles;
|
||||
bus_handler_.flush();
|
||||
}
|
||||
|
||||
template <Personality personality, typename T, bool uses_ready_line> void Processor<personality, T, uses_ready_line>::set_ready_line(bool active) {
|
||||
|
@ -141,12 +141,6 @@ template <typename addr_t> class BusHandler {
|
||||
Cycles perform_bus_operation([[maybe_unused]] BusOperation operation, [[maybe_unused]] addr_t address, [[maybe_unused]] uint8_t *value) {
|
||||
return Cycles(1);
|
||||
}
|
||||
|
||||
/*!
|
||||
Announces completion of all the cycles supplied to a .run_for request on the 6502. Intended to allow
|
||||
bus handlers to perform any deferred output work.
|
||||
*/
|
||||
void flush() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1022,7 +1022,6 @@ template <typename BusHandler, bool uses_ready_line> void Processor<BusHandler,
|
||||
#undef stack_address
|
||||
|
||||
cycles_left_to_run_ = number_of_cycles;
|
||||
bus_handler_.flush();
|
||||
}
|
||||
|
||||
void ProcessorBase::set_power_on(bool active) {
|
||||
|
@ -357,8 +357,6 @@ class BusHandler {
|
||||
return HalfCycles(0);
|
||||
}
|
||||
|
||||
void flush() {}
|
||||
|
||||
/*!
|
||||
Provides information about the path of execution if enabled via the template.
|
||||
*/
|
||||
|
@ -2198,7 +2198,6 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
||||
#undef destination
|
||||
#undef destination_address
|
||||
|
||||
bus_handler_.flush();
|
||||
e_clock_phase_ = (e_clock_phase_ + cycles_run_for) % 20;
|
||||
half_cycles_left_to_run_ = remaining_duration - cycles_run_for;
|
||||
}
|
||||
|
@ -347,8 +347,6 @@ class BusHandler {
|
||||
return HalfCycles(0);
|
||||
}
|
||||
|
||||
void flush() {}
|
||||
|
||||
/*!
|
||||
Provides information about the path of execution if enabled via the template.
|
||||
*/
|
||||
|
@ -48,7 +48,6 @@ template < class T,
|
||||
static PartialMachineCycle bus_acknowledge_cycle = {PartialMachineCycle::BusAcknowledge, HalfCycles(2), nullptr, nullptr, false};
|
||||
number_of_cycles_ -= bus_handler_.perform_machine_cycle(bus_acknowledge_cycle) + HalfCycles(1);
|
||||
if(!number_of_cycles_) {
|
||||
bus_handler_.flush();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -70,7 +69,6 @@ template < class T,
|
||||
case MicroOp::BusOperation:
|
||||
if(number_of_cycles_ < operation->machine_cycle.length) {
|
||||
scheduled_program_counter_--;
|
||||
bus_handler_.flush();
|
||||
return;
|
||||
}
|
||||
if(uses_wait_line && operation->machine_cycle.was_requested) {
|
||||
|
@ -399,12 +399,6 @@ class BusHandler {
|
||||
HalfCycles perform_machine_cycle([[maybe_unused]] const PartialMachineCycle &cycle) {
|
||||
return HalfCycles(0);
|
||||
}
|
||||
|
||||
/*!
|
||||
Announces completion of all the cycles supplied to a .run_for request on the Z80. Intended to allow
|
||||
bus handlers to perform any deferred output work.
|
||||
*/
|
||||
void flush() {}
|
||||
};
|
||||
|
||||
#include "Implementation/Z80Storage.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user