Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 12, 2024
1 parent 61ce9e4 commit 78c43b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ceno_zkvm/src/instructions/riscv/ecall/halt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{
chip_handler::RegisterChipOperations,
circuit_builder::CircuitBuilder,
error::ZKVMError,
expression::{Expression, ToExpr, WitIn},
expression::{ToExpr, WitIn},
gadgets::AssertLTConfig,
instructions::{
Instruction,
Expand Down Expand Up @@ -51,8 +51,7 @@ impl<E: ExtensionField> Instruction<E> for HaltInstruction<E> {
// read exit_code from arg0 (X10 register)
let (_, lt_x10_cfg) = cb.register_read(
|| "read x10",
// TODO(Matthias): clean up.
&Expression::Constant(E::BaseField::from(ceno_emul::Platform::reg_arg0() as u64)),
ceno_emul::Platform::reg_arg0(),
prev_x10_ts,
ecall_cfg.ts.expr() + Tracer::SUBCYCLE_RS2,
exit_code,
Expand Down

0 comments on commit 78c43b5

Please sign in to comment.