get rid of JIT and other things

This commit is contained in:
SimoneN64
2023-06-04 22:28:23 +02:00
parent 1ed2506523
commit 30fce7ecf7
36 changed files with 143 additions and 3602 deletions

View File

@@ -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;
};
}