mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-21 18:37:11 +00:00
Fix further speed
reference; eliminate Decoder8086
entirely.
This commit is contained in:
parent
2878ab1578
commit
08c0ee9ca8
@ -1085,7 +1085,3 @@ template class InstructionSet::x86::Decoder<InstructionSet::x86::Model::i8086>;
|
||||
template class InstructionSet::x86::Decoder<InstructionSet::x86::Model::i80186>;
|
||||
template class InstructionSet::x86::Decoder<InstructionSet::x86::Model::i80286>;
|
||||
template class InstructionSet::x86::Decoder<InstructionSet::x86::Model::i80386>;
|
||||
|
||||
std::pair<int, Instruction<false>> Decoder8086::decode(const uint8_t *const source, const std::size_t length) {
|
||||
return decoder.decode(source, length);
|
||||
}
|
||||
|
@ -369,17 +369,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
// This is a temporary measure; for reasons as-yet unknown, GCC isn't picking up the
|
||||
// explicit instantiations of the template above at link time, even though is is
|
||||
// unambiguously building and linking in Decoder.cpp.
|
||||
//
|
||||
// So here's a thin non-templated shim to unblock initial PC Compatible development.
|
||||
class Decoder8086 {
|
||||
public:
|
||||
std::pair<int, Instruction<false>> decode(const uint8_t *source, std::size_t length);
|
||||
|
||||
private:
|
||||
Decoder<Model::i8086> decoder;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1233,7 +1233,7 @@ void MainWindow::start_pc() {
|
||||
|
||||
switch(ui->pcSpeedComboBox->currentIndex()) {
|
||||
default: target->model = Target::ModelApproximation::XT; break;
|
||||
case 1: target->speed = Target::ModelApproximation::TurboXT; break;
|
||||
case 1: target->model = Target::ModelApproximation::TurboXT; break;
|
||||
}
|
||||
|
||||
switch(ui->pcVideoAdaptorComboBox->currentIndex()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user