cpu::Processor now tracks a pointer to the emulator.

This commit is contained in:
Dr. Chat
2015-11-27 22:33:48 -06:00
committed by Ben Vanik
parent 7d59258839
commit 28468f8a18
5 changed files with 12 additions and 7 deletions

View File

@@ -49,10 +49,11 @@ enum class Irql : uint32_t {
class Processor {
public:
Processor(Memory* memory, ExportResolver* export_resolver,
Processor(Emulator* emulator, Memory* memory, ExportResolver* export_resolver,
debug::Debugger* debugger);
~Processor();
Emulator* emulator() const { return emulator_; }
Memory* memory() const { return memory_; }
debug::Debugger* debugger() const { return debugger_; }
StackWalker* stack_walker() const { return stack_walker_.get(); }
@@ -105,6 +106,7 @@ class Processor {
bool DemandFunction(Function* function);
Emulator* emulator_ = nullptr;
Memory* memory_ = nullptr;
debug::Debugger* debugger_ = nullptr;
std::unique_ptr<StackWalker> stack_walker_;