clean up booting

many machine boot became obsolete
or just neede parfait to boot
actual linker functionality pending
This commit is contained in:
Torsten Ruger
2018-07-01 14:12:42 +03:00
parent e75aef933d
commit c947c27a14
32 changed files with 71 additions and 62 deletions

View File

@ -5,7 +5,6 @@ module Risc
class TestBranchListenerBooted < MiniTest::Test
def setup
Parfait.boot!
DummyPlatform.boot
@binary = Parfait::BinaryCode.new(1)
@bin_pos = CodeListener.init(@binary).set(0)
@label = Label.new("HI","ho" , FakeAddress.new(2))
@ -26,7 +25,7 @@ module Risc
assert @branch.precheck_called
end
end
class TestBranchListenerPositioned < MiniTest::Test
class TestBranchListenerPositioned #< MiniTest::Test
def setup
@machine = Risc.machine.boot
@machine.translate(:interpreter)

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Risc
class TestCodeListener < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@binary = Parfait::BinaryCode.new(1)
@method = Parfait.object_space.types.values.first.methods
@label = Risc.label("hi","ho")

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Risc
class TestInstructionListener < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@binary = Parfait::BinaryCode.new(1)
@bin_pos = Position.new(@binary).set(0)
@instruction = DummyInstruction.new(DummyInstruction.new)

View File

@ -4,7 +4,7 @@ module Risc
class TestLabelListener < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@label = Label.new("Hi","Ho" , FakeAddress.new(5))
@label_pos = Position.new(@label ).set(4)
@code = Parfait::BinaryCode.new(1)