Skip to content

Commit

Permalink
Merge pull request #2752 from o1-labs/sai/memory-constants-riscv32
Browse files Browse the repository at this point in the history
Page constants for interpreter implementation and tests
  • Loading branch information
dannywillems authored Nov 14, 2024
2 parents 5b6d530 + e737bd3 commit fe68e1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion o1vm/src/interpreters/riscv32i/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ pub const SCRATCH_SIZE: usize = 20;
// FIXME: the value might not be correct. It will be updated when the
// interpreter is fully implemented.
pub const INSTRUCTION_SET_SIZE: usize = 47;

pub const PAGE_ADDRESS_SIZE: u32 = 12;
pub const PAGE_SIZE: u32 = 1 << PAGE_ADDRESS_SIZE;
pub const PAGE_ADDRESS_MASK: u32 = PAGE_SIZE - 1;
/// List all columns used by the interpreter
pub mod column;

Expand Down

0 comments on commit fe68e1c

Please sign in to comment.