get rid of JIT and other things
This commit is contained in:
@@ -3,36 +3,29 @@
|
||||
#include <backend/core/Interpreter.hpp>
|
||||
#include <backend/core/Mem.hpp>
|
||||
#include <string>
|
||||
#include <backend/core/JIT.hpp>
|
||||
#include <backend/core/registers/Registers.hpp>
|
||||
#include <Debugger.hpp>
|
||||
#include <SDL2/SDL_timer.h>
|
||||
|
||||
struct Window;
|
||||
|
||||
namespace n64 {
|
||||
enum class CpuType {
|
||||
Interpreter, JIT, COUNT
|
||||
};
|
||||
|
||||
struct Core {
|
||||
~Core() { Stop(); }
|
||||
Core();
|
||||
void Stop();
|
||||
void LoadROM(const std::string&);
|
||||
void Run(Window&, float volumeL, float volumeR);
|
||||
void Run(float volumeL, float volumeR);
|
||||
void TogglePause() { pause = !pause; }
|
||||
VI& GetVI() { return cpu->mem.mmio.vi; }
|
||||
VI& GetVI() { return cpu.mem.mmio.vi; }
|
||||
|
||||
u32 breakpoint = 0;
|
||||
|
||||
bool pause = true;
|
||||
int cycles = 0;
|
||||
bool isPAL = false;
|
||||
bool romLoaded = false;
|
||||
bool done = false;
|
||||
std::string rom;
|
||||
CpuType cpuType = CpuType::COUNT;
|
||||
std::unique_ptr<BaseCPU> cpu;
|
||||
Debugger debugger{*this};
|
||||
Interpreter cpu;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user