Commit 40af15f2 authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle

runtime: teach softfloat interpreter about "add r11, pc, r11"

This is generated during fp code when -shared is active.

Change-Id: Ia1092299b9c3b63ff771ca4842158b42c34bd008
Reviewed-on: https://go-review.googlesource.com/14286Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
parent 821e124c
......@@ -157,6 +157,17 @@ execute:
}
return 1
}
if i == 0xe08fb00b {
// add pc to r11
// might be part of a PIC floating point move
// (or might not, but again no harm done).
regs[11] += uint32(uintptr(unsafe.Pointer(pc))) + 8
if fptrace > 0 {
print("*** cpu R[11] += pc ", hex(regs[11]), "\n")
}
return 1
}
if i == 0xe08bb00d {
// add sp to r11.
// might be part of a large stack offset address
......
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