Commit 6f95e202 authored by George Hotz's avatar George Hotz

move startup and test

parent 7ee4abd6
#!/usr/bin/env python3
import os
import sys
import struct
from rangetree import RangeTree
......@@ -31,7 +32,8 @@ def load_minigeth(mu, fn="minigeth"):
print("entrypoint: 0x%x" % entry)
# moved to MIPS
start = open("startup.bin", "rb").read() + struct.pack(">I", entry)
sf = os.path.join(os.path.dirname(os.path.abspath(__file__)), "startup", "startup.bin")
start = open(sf, "rb").read() + struct.pack(">I", entry)
mu.mem_write(0, start)
entry = 0
......
#!/bin/bash -e
../mipsevm/maketests.py startup.s startup.bin
#!/bin/bash -e
../../mipsevm/maketests.py startup.s startup.bin
......@@ -3,4 +3,4 @@ export GOOS=linux
export GOARCH=mips
export GOMIPS=softfloat
go build test.go
./compile.py test
../compile.py test
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