Commit ff160745 authored by George Hotz's avatar George Hotz

embedded test, exit properly

parent 28c3c85d
name: Test Embedded
on: [push, pull_request]
jobs:
unit:
name: Test Embedded
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Go
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install golang python3 python3-pip
- name: Install Python deps
run: pip3 install -r risc/requirements.txt
- name: Build minigeth and run default block (cache)
run: ./run.sh
- name: Test in the embedded world
run: |
cd risc
./build.sh && ./run.py
name: Tests
name: Test PC
on: [push, pull_request]
jobs:
unit:
name: Tests
name: Test PC
runs-on: ubuntu-latest
steps:
- name: Checkout Code
......
unicorn==1.0.3
pyelftools==0.27
hexdump==3.3
termcolor==1.1.0
\ No newline at end of file
......@@ -102,8 +102,9 @@ def hook_interrupt(uc, intno, user_data):
uc.mem_write(buf, ret)
uc.reg_write(UC_MIPS_REG_V0, len(ret))
elif syscall_no == 4246:
print("EXIT")
return False
a0 = uc.reg_read(UC_MIPS_REG_A0)
print("exit(%d)" % a0)
os._exit(a0)
elif syscall_no == 4090:
a0 = uc.reg_read(UC_MIPS_REG_A0)
a1 = uc.reg_read(UC_MIPS_REG_A1)
......
#!/bin/bash -e
(cd minigeth/ && go build)
mkdir -p /tmp/eth
# 0 tx: 13284491
# low tx: 13284469
# delete issue: 13284053
minigeth/go-ethereum 13284469
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment