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
fed882d2
Commit
fed882d2
authored
Oct 27, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to unicorn2
parent
e4e07849
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
.gitignore
.gitignore
+1
-0
build_unicorn.sh
build_unicorn.sh
+4
-4
README
mipsevm/README
+2
-0
compare_evmchain_test.go
mipsevm/compare_evmchain_test.go
+2
-2
go.mod
mipsevm/go.mod
+1
-1
No files found.
.gitignore
View file @
fed882d2
...
@@ -2,4 +2,5 @@ node_modules
...
@@ -2,4 +2,5 @@ node_modules
artifacts
artifacts
cache
cache
unicorn
unicorn
unicorn2
.*.swp
.*.swp
build_unicorn.sh
View file @
fed882d2
#!/bin/bash
#!/bin/bash
git clone https://github.com/geohot/unicorn.git
git clone https://github.com/geohot/unicorn.git
-b
dev unicorn2
cd
unicorn
cd
unicorn
2
UNICORN_ARCHS
=
mips make
-j8
cmake
.
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Debug
UNICORN_ARCHS
=
mips
make
-j8
make
-j8
mipsevm/README
View file @
fed882d2
...
@@ -23,3 +23,5 @@ Instruction set used by minigeth, 55 instructions:
...
@@ -23,3 +23,5 @@ Instruction set used by minigeth, 55 instructions:
'negu', 'nop', 'not', 'or', 'ori',
'negu', 'nop', 'not', 'or', 'ori',
'sb', 'sll', 'sllv', 'slt', 'slti', 'sltiu', 'sltu', 'sra', 'srl', 'srlv', 'subu', 'sw', 'swr', 'sync', 'syscall',
'sb', 'sll', 'sllv', 'slt', 'slti', 'sltiu', 'sltu', 'sra', 'srl', 'srlv', 'subu', 'sw', 'swr', 'sync', 'syscall',
'xor', 'xori']
'xor', 'xori']
STEPS=100000000 ./evm.sh unicorn ../mipigo/minigeth.bin
mipsevm/compare_evmchain_test.go
View file @
fed882d2
...
@@ -12,8 +12,8 @@ import (
...
@@ -12,8 +12,8 @@ import (
func
LoadRam
()
map
[
uint32
](
uint32
)
{
func
LoadRam
()
map
[
uint32
](
uint32
)
{
ram
:=
make
(
map
[
uint32
](
uint32
))
ram
:=
make
(
map
[
uint32
](
uint32
))
fn
:=
"../mipigo/test/test.bin"
//
fn := "../mipigo/test/test.bin"
//LoadMappedFile("test/bin/add.bin", ram, 0)
fn
:=
"test/bin/add.bin"
LoadMappedFile
(
fn
,
ram
,
0
)
LoadMappedFile
(
fn
,
ram
,
0
)
ZeroRegisters
(
ram
)
ZeroRegisters
(
ram
)
ram
[
0xC000007C
]
=
0x5EAD0000
ram
[
0xC000007C
]
=
0x5EAD0000
...
...
mipsevm/go.mod
View file @
fed882d2
...
@@ -3,7 +3,7 @@ module mipsevm
...
@@ -3,7 +3,7 @@ module mipsevm
go 1.17
go 1.17
replace github.com/ethereum/go-ethereum => ../minigeth
replace github.com/ethereum/go-ethereum => ../minigeth
replace github.com/unicorn-engine/unicorn => ../unicorn
replace github.com/unicorn-engine/unicorn => ../unicorn
2
require (
require (
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/btcsuite/btcd v0.22.0-beta // indirect
...
...
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