diff --git a/Core/MIPS/IR/IRInst.cpp b/Core/MIPS/IR/IRInst.cpp index b591cfbd59..79837eb1a8 100644 --- a/Core/MIPS/IR/IRInst.cpp +++ b/Core/MIPS/IR/IRInst.cpp @@ -189,6 +189,8 @@ static const IRMeta irMeta[] = { { IROp::RestoreRoundingMode, "RestoreRoundingMode", "" }, { IROp::ApplyRoundingMode, "ApplyRoundingMode", "" }, { IROp::UpdateRoundingMode, "UpdateRoundingMode", "" }, + + {IROp::LogBlockHash, "logBlockHash", ""} }; const IRMeta *metaIndex[256]; diff --git a/Core/MIPS/IR/IRInst.h b/Core/MIPS/IR/IRInst.h index a7762d0882..c5187936fc 100644 --- a/Core/MIPS/IR/IRInst.h +++ b/Core/MIPS/IR/IRInst.h @@ -237,6 +237,9 @@ enum class IROp : uint8_t { ValidateAddress32, ValidateAddress128, + // Tracing support. + LogBlockHash, + Nop, Bad, }; diff --git a/Core/MIPS/IR/IRInterpreter.cpp b/Core/MIPS/IR/IRInterpreter.cpp index 5af7b98dd6..ac4b646249 100644 --- a/Core/MIPS/IR/IRInterpreter.cpp +++ b/Core/MIPS/IR/IRInterpreter.cpp @@ -1236,6 +1236,9 @@ u32 IRInterpret(MIPSState *mips, const IRInst *inst) { return mips->pc; } break; + case IROp::LogBlockHash: + // Do nothing for now + break; case IROp::Nop: // TODO: This shouldn't crash, but for now we should not emit nops, so... case IROp::Bad: