From 4af507898b7de71b936fd8fb00d6ac6f1d3dee23 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Tue, 5 Dec 2023 18:58:51 +0000 Subject: [PATCH] Add missing instructions in pre-fetcher --- optimism/src/mips/witness.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/optimism/src/mips/witness.rs b/optimism/src/mips/witness.rs index db7e902379..7afc0665b7 100644 --- a/optimism/src/mips/witness.rs +++ b/optimism/src/mips/witness.rs @@ -401,6 +401,10 @@ impl Env { }, 0x02 => Instruction::JType(JTypeInstruction::Jump), 0x03 => Instruction::JType(JTypeInstruction::JumpAndLink), + 0x04 => Instruction::IType(ITypeInstruction::BranchEq), + 0x05 => Instruction::IType(ITypeInstruction::BranchNeq), + 0x06 => Instruction::IType(ITypeInstruction::BranchLeqZero), + 0x07 => Instruction::IType(ITypeInstruction::BranchGtZero), 0x08 => Instruction::IType(ITypeInstruction::AddImmediate), 0x09 => Instruction::IType(ITypeInstruction::AddImmediateUnsigned), 0x0A => Instruction::IType(ITypeInstruction::SetLessThanImmediate),