Skip to content

Commit

Permalink
Fixup test_mips_elf compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 committed Jan 12, 2025
1 parent 5074b04 commit 605fc4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions o1vm/tests/test_mips_elf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ark_ff::Field;
use ark_ff::PrimeField;
use mina_curves::pasta::Fp;
use o1vm::{
cannon::{self, State, VmConfiguration},
Expand Down Expand Up @@ -29,7 +29,10 @@ impl MipsTest {
o1vm::elf_loader::parse_elf(Architecture::Mips, &path).unwrap()
}

fn read_word<Fp: Field, T: PreImageOracleT>(env: &mut witness::Env<Fp, T>, addr: u32) -> u32 {
fn read_word<Fp: PrimeField, T: PreImageOracleT>(
env: &mut witness::Env<Fp, T>,
addr: u32,
) -> u32 {
let bytes: [u8; 4] = [
env.get_memory_direct(addr),
env.get_memory_direct(addr + 1),
Expand Down

0 comments on commit 605fc4b

Please sign in to comment.