Skip to content

Commit

Permalink
remove stray bootloader mention
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Oct 28, 2024
1 parent a12b72b commit 06ceae2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/vm2/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,10 @@ fn jump_to_beginning_handler<T, W>(
ExecutionStatus::Running
}

fn decode_program<T: Tracer, W: World<T>>(
raw: &[u64],
is_bootloader: bool,
) -> Vec<Instruction<T, W>> {
fn decode_program<T: Tracer, W: World<T>>(raw: &[u64]) -> Vec<Instruction<T, W>> {
raw.iter()
.take(1 << 16)
.map(|i| decode(*i, is_bootloader))
.map(|i| decode(*i))
.chain(std::iter::once(if raw.len() >= 1 << 16 {
jump_to_beginning()
} else {
Expand Down

0 comments on commit 06ceae2

Please sign in to comment.