New IR instruction added

This commit is contained in:
Nemoumbra 2024-09-05 22:18:09 +03:00
parent 62656b6e6f
commit a6be0517dc
3 changed files with 8 additions and 0 deletions

View file

@ -189,6 +189,8 @@ static const IRMeta irMeta[] = {
{ IROp::RestoreRoundingMode, "RestoreRoundingMode", "" },
{ IROp::ApplyRoundingMode, "ApplyRoundingMode", "" },
{ IROp::UpdateRoundingMode, "UpdateRoundingMode", "" },
{IROp::LogBlockHash, "logBlockHash", ""}
};
const IRMeta *metaIndex[256];

View file

@ -237,6 +237,9 @@ enum class IROp : uint8_t {
ValidateAddress32,
ValidateAddress128,
// Tracing support.
LogBlockHash,
Nop,
Bad,
};

View file

@ -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: