fix elf test

This commit is contained in:
Torsten Ruger
2016-12-15 17:57:45 +02:00
parent 1571c796bb
commit 884bf23e5f
6 changed files with 13 additions and 9 deletions

View File

@ -48,7 +48,7 @@ module Arm
# relative addressing for jumps/calls
# but because of the arm "theoretical" 3- stage pipeline,
# we have to subtract 2 words (fetch/decode)
arg = arg.position - self.position - 8
arg = @first.position - self.position - 8
when Parfait::TypedMethod
# But, for methods, this happens to be the size of the object header,
# so there it balances out, but not blocks

View File

@ -49,7 +49,7 @@ module Arm
val |= instruction_code
val |= condition_code
io.write_uint32 val
assemble_extra
assemble_extra(io)
end
def result
@ -104,7 +104,7 @@ module Arm
end
# by now we have the extra add so assemble that
def assemble_extra
def assemble_extra(io)
return unless @extra
if(@extra == 1) # unles things have changed and then we add a noop (to keep the length same)
@extra = ArmMachine.mov( :r1 , :r1 )