Skip to content

Commit

Permalink
Update op-program test data
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Jan 23, 2025
1 parent f6a9016 commit d61becf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions rvgo/fast/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ func (inst *InstrumentedState) riscvStep() (outErr error) {
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
case riscv.SysFutex: // futex - not supported, for now
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
case riscv.SysNanosleep: // nanosleep - not supported, for now
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
//case riscv.SysNanosleep: // nanosleep - not supported, for now
// revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
default:
// Ignore(no-op) unsupported system calls
setRegister(byteToU64(10), byteToU64(0))
Expand Down
4 changes: 2 additions & 2 deletions rvgo/slow/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ func Step(calldata []byte, po PreimageOracle) (stateHash common.Hash, outErr err
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
case riscv.SysFutex: // futex - not supported, for now
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
case riscv.SysNanosleep: // nanosleep - not supported, for now
revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
//case riscv.SysNanosleep: // nanosleep - not supported, for now
//revertWithCode(riscv.ErrInvalidSyscall, &UnsupportedSyscallErr{SyscallNum: a7})
default:
// Ignore(no-op) unsupported system calls
setRegister(byteToU64(10), byteToU64(0))
Expand Down
2 changes: 1 addition & 1 deletion tests/op-program-test/capture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mv meta.json ./test-data/
tar -czvf test-data.tar.gz ./test-data

# Clean up
rm -r ./test-data ./capture_cmd.sh ./asterisc ./op-program ./op-program-client-riscv.elf ./out.json
rm -r ./test-data ./capture_cmd.sh ./asterisc ./op-program ./op-program-client-riscv.elf

# Write optimism version
echo $git_commit_hash > VERSION
10 changes: 5 additions & 5 deletions tests/op-program-test/local_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
--l2.genesis ./test-data/chain-artifacts/genesis-l2.json \
--l1.trustrpc \
--l1.rpckind debug_geth \
--l1.head 0xe5e936e8b01ff9084ffc91f3d6944238df0ed1bc58ee56f569c56169a4e70b52 \
--l2.head 0x8bc9297b05324efc1f9eb48e2dcb70a85ac8ec1a25bdcbe2c4c7ea7db4b15160 \
--l2.outputroot 0x9faa74acedf717cc0362a79beec59013cf27fce4de146d7e2d941b16b50901f3 \
--l2.claim 0x7dbae010376c4ae02877fd146cd9b9ef3209c8a103d977d415130f725ee6b7eb \
--l2.blocknumber 12 \
--l1.head 0xd751c9ae2912d3ab61e8ed0994538d87eb19344548b9ea4fa69cc93ba18c65cf \
--l2.head 0x605247ac833b4df114a65df0cf5a94caf5c851e872b277956982a6cf6be9fc9e \
--l2.outputroot 0x7021b5ba5813fa0369a5d8840c52975eaaeb217fa6e04b44a646375ef32867a9 \
--l2.claim 0xe13d5c2d0e8264d76ed13760abf3a20d047e2b69ca22dbd354abd2e7a7cb4966 \
--l2.blocknumber 560 \
--datadir ./test-data/preimages \
--log.format terminal \
--server
Binary file modified tests/op-program-test/test-data.tar.gz
Binary file not shown.

0 comments on commit d61becf

Please sign in to comment.