mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Merge pull request #1112 from topos-protocol/fix-generate-jump
Fix jump operation generation
This commit is contained in:
commit
1664ab4408
@ -185,13 +185,14 @@ pub(crate) fn generate_jump<F: Field>(
|
|||||||
state,
|
state,
|
||||||
&mut row,
|
&mut row,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
row.mem_channels[1].value[0] = F::ONE;
|
||||||
|
|
||||||
if state.registers.is_kernel {
|
if state.registers.is_kernel {
|
||||||
// Don't actually do the read, just set the address, etc.
|
// Don't actually do the read, just set the address, etc.
|
||||||
let channel = &mut row.mem_channels[NUM_GP_CHANNELS - 1];
|
let channel = &mut row.mem_channels[NUM_GP_CHANNELS - 1];
|
||||||
channel.used = F::ZERO;
|
channel.used = F::ZERO;
|
||||||
channel.value[0] = F::ONE;
|
channel.value[0] = F::ONE;
|
||||||
|
|
||||||
row.mem_channels[1].value[0] = F::ONE;
|
|
||||||
} else {
|
} else {
|
||||||
if jumpdest_bit != U256::one() {
|
if jumpdest_bit != U256::one() {
|
||||||
return Err(ProgramError::InvalidJumpDestination);
|
return Err(ProgramError::InvalidJumpDestination);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user