fix elf test
This commit is contained in:
@ -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
|
||||
|
@ -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 )
|
||||
|
Reference in New Issue
Block a user