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
44d01c5b
Unverified
Commit
44d01c5b
authored
Apr 17, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mipsevm: minimal VM state
parent
e1ce1a7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
state.go
mipsevm/state.go
+35
-0
No files found.
mipsevm/state.go
0 → 100644
View file @
44d01c5b
package
main
const
(
pageAddrSize
=
10
pageSize
=
1
<<
pageAddrSize
)
type
Page
[
pageSize
]
byte
type
State
struct
{
PC
uint32
Registers
[
32
]
uint32
Hi
,
Lo
uint32
// special registers
Heap
uint32
// to handle mmap growth
Memory
map
[
uint32
]
*
Page
Exit
uint32
Exited
bool
}
// TODO hooks for unicorn to modify the state
// TODO merkleization
// TODO load from JSON
// TODO store to JSON
// TODO hooks to detect state reads/writes
// -> maintain access-list
// TODO load Unicorn with hooks
// TODO convert access-list to calldata and state-sets for EVM
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