Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
005116d9
Unverified
Commit
005116d9
authored
Oct 28, 2024
by
Inphi
Committed by
GitHub
Oct 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cannon: Noop SYS_STAT for the mt stf (#12687)
parent
882d261b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
4 deletions
+11
-4
arch32.go
cannon/mipsevm/arch/arch32.go
+1
-0
arch64.go
cannon/mipsevm/arch/arch64.go
+1
-0
mips.go
cannon/mipsevm/multithreaded/mips.go
+1
-0
evm_multithreaded_test.go
cannon/mipsevm/tests/evm_multithreaded_test.go
+1
-0
semver-lock.json
packages/contracts-bedrock/semver-lock.json
+2
-2
MIPS2.sol
packages/contracts-bedrock/src/cannon/MIPS2.sol
+4
-2
MIPSSyscalls.sol
...s/contracts-bedrock/src/cannon/libraries/MIPSSyscalls.sol
+1
-0
No files found.
cannon/mipsevm/arch/arch32.go
View file @
005116d9
...
...
@@ -61,6 +61,7 @@ const (
SysPrlimit64
=
4338
SysClose
=
4006
SysPread64
=
4200
SysStat
=
4106
SysFstat
=
4108
SysFstat64
=
4215
SysOpenAt
=
4288
...
...
cannon/mipsevm/arch/arch64.go
View file @
005116d9
...
...
@@ -69,6 +69,7 @@ const (
SysPrlimit64
=
5297
SysClose
=
5003
SysPread64
=
5016
SysStat
=
5004
SysFstat
=
5005
SysFstat64
=
UndefinedSysNr
SysOpenAt
=
5247
...
...
cannon/mipsevm/multithreaded/mips.go
View file @
005116d9
...
...
@@ -187,6 +187,7 @@ func (m *InstrumentedState) handleSyscall() error {
case
arch
.
SysPrlimit64
:
case
arch
.
SysClose
:
case
arch
.
SysPread64
:
case
arch
.
SysStat
:
case
arch
.
SysFstat
:
case
arch
.
SysOpenAt
:
case
arch
.
SysReadlink
:
...
...
cannon/mipsevm/tests/evm_multithreaded_test.go
View file @
005116d9
...
...
@@ -1103,6 +1103,7 @@ var NoopSyscalls = map[string]uint32{
"SysPrlimit64"
:
4338
,
"SysClose"
:
4006
,
"SysPread64"
:
4200
,
"SysStat"
:
4106
,
"SysFstat"
:
4108
,
"SysFstat64"
:
4215
,
"SysOpenAt"
:
4288
,
...
...
packages/contracts-bedrock/semver-lock.json
View file @
005116d9
...
...
@@ -144,8 +144,8 @@
"sourceCodeHash"
:
"0xd8467700c80b3e62fa37193dc6513bac35282094b686b50e162e157f704dde00"
},
"src/cannon/MIPS2.sol"
:
{
"initCodeHash"
:
"0x
478fdad3eccd158822ce2025971a9242c37c976024f419fba417fe54158269b7
"
,
"sourceCodeHash"
:
"0x
81dc3329c1644afa30ecd2684f44f8b96b5a17612dcfa6476432eed697209e63
"
"initCodeHash"
:
"0x
aedf0d0b0e94a0c5e7d987331d2fdba84230f5704a6ca33677e70cde7051b17e
"
,
"sourceCodeHash"
:
"0x
9fa2d1297ad1e93b4d3c5c0fed08bedcd8f746807589f0fd3369e79347c6a027
"
},
"src/cannon/PreimageOracle.sol"
:
{
"initCodeHash"
:
"0x5d7e8ae64f802bd9d760e3d52c0a620bd02405dc2c8795818db9183792ffe81c"
,
...
...
packages/contracts-bedrock/src/cannon/MIPS2.sol
View file @
005116d9
...
...
@@ -60,8 +60,8 @@ contract MIPS2 is ISemver {
}
/// @notice The semantic version of the MIPS2 contract.
/// @custom:semver 1.0.0-beta.2
0
string public constant version = "1.0.0-beta.2
0
";
/// @custom:semver 1.0.0-beta.2
1
string public constant version = "1.0.0-beta.2
1
";
/// @notice The preimage oracle contract.
IPreimageOracle internal immutable ORACLE;
...
...
@@ -555,6 +555,8 @@ contract MIPS2 is ISemver {
// ignored
} else if (syscall_no == sys.SYS_PREAD64) {
// ignored
} else if (syscall_no == sys.SYS_STAT) {
// ignored
} else if (syscall_no == sys.SYS_FSTAT) {
// ignored
} else if (syscall_no == sys.SYS_OPENAT) {
...
...
packages/contracts-bedrock/src/cannon/libraries/MIPSSyscalls.sol
View file @
005116d9
...
...
@@ -53,6 +53,7 @@ library MIPSSyscalls {
uint32 internal constant SYS_PRLIMIT64 = 4338;
uint32 internal constant SYS_CLOSE = 4006;
uint32 internal constant SYS_PREAD64 = 4200;
uint32 internal constant SYS_STAT = 4106;
uint32 internal constant SYS_FSTAT = 4108;
uint32 internal constant SYS_FSTAT64 = 4215;
uint32 internal constant SYS_OPENAT = 4288;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment