Skip to content

Commit

Permalink
Fix MCOPY from rebasing (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Mar 11, 2024
1 parent 8c7ccb0 commit 366e0a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evm_arithmetization/src/cpu/kernel/asm/core/exception.asm
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ gas_cost_for_opcode:
BYTES @GAS_JUMPDEST // 0x5b, JUMPDEST
BYTES 0 // 0x5c, TLOAD
BYTES 0 // 0x5d, TSTORE
BYTES 0 // 0x5e, invalid
BYTES 0 // 0x5e, MCOPY

BYTES @GAS_BASE // 0x5f, PUSH0
%rep 32 // 0x60-0x7f, PUSH1-PUSH32
Expand Down
2 changes: 1 addition & 1 deletion evm_arithmetization/src/cpu/kernel/asm/core/syscall.asm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ global syscall_jumptable:
JUMPTABLE panic // jumpdest is implemented natively
JUMPTABLE sys_tload
JUMPTABLE sys_tstore
JUMPTABLE panic // 0x5e is an invalid opcode
JUMPTABLE sys_mcopy
JUMPTABLE panic // 0x5f is an invalid opcode

// 0x60-0x6f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub(crate) const INVALID_OPCODES_USER: U256 = u256_from_set_index_ranges(&[
0x1e..=0x1f,
0x21..=0x2f,
0x4a..=0x4f,
0x5e..=0x5e,
0xa5..=0xef,
0xf6..=0xf9,
0xfb..=0xfc,
Expand Down

0 comments on commit 366e0a2

Please sign in to comment.