Fix windows, hopefully

This commit is contained in:
CocoSimone
2022-12-24 18:24:35 +01:00
parent 2ea4a88ae8
commit 2fad0d8b98
9 changed files with 7 additions and 46 deletions

View File

@@ -1,29 +1,20 @@
#pragma once
#include <core/registers/Registers.hpp>
#include <Mem.hpp>
#include <capstone/capstone.h>
#include <vector>
namespace n64 {
struct Interpreter {
Interpreter() {
if(cs_open(CS_ARCH_MIPS, CS_MODE_MIPS64, &handle) != CS_ERR_OK) {
util::panic("Could not initialize capstone!\n");
}
Reset();
}
~Interpreter() {
cs_close(&handle);
}
~Interpreter() = default;
void Reset();
void Step(Mem&);
Registers regs;
private:
u64 cop2Latch{};
csh handle;
void disassembly(u32 instr);
friend struct Cop1;
void cop2Decode(u32);