mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +00:00
Add nullptr backstop.
This commit is contained in:
@@ -1109,6 +1109,10 @@ class ConcreteMachine:
|
|||||||
// }
|
// }
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if(decoded_.second.operation() == InstructionSet::x86::Operation::Invalid) {
|
||||||
|
log.error().append("Invalid operation");
|
||||||
|
}
|
||||||
|
|
||||||
// Execute it.
|
// Execute it.
|
||||||
InstructionSet::x86::perform(
|
InstructionSet::x86::perform(
|
||||||
decoded_.second,
|
decoded_.second,
|
||||||
@@ -1250,7 +1254,7 @@ class ConcreteMachine:
|
|||||||
using namespace PCCompatible;
|
using namespace PCCompatible;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static constexpr bool ForceAT = false;
|
static constexpr bool ForceAT = true;
|
||||||
|
|
||||||
template <Target::VideoAdaptor video>
|
template <Target::VideoAdaptor video>
|
||||||
std::unique_ptr<Machine> machine(const Target &target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
std::unique_ptr<Machine> machine(const Target &target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
||||||
@@ -1267,6 +1271,8 @@ std::unique_ptr<Machine> machine(const Target &target, const ROMMachine::ROMFetc
|
|||||||
return std::make_unique<PCCompatible::ConcreteMachine<Analyser::Static::PCCompatible::Model::AT, video>>
|
return std::make_unique<PCCompatible::ConcreteMachine<Analyser::Static::PCCompatible::Model::AT, video>>
|
||||||
(target, rom_fetcher);
|
(target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user