Fix incorrect offset encoding in lea (sp) instructions.
--HG-- branch : dtrg-videocore
This commit is contained in:
parent
edb174da8d
commit
8b6951dac0
|
@ -457,6 +457,7 @@ void lea_stack_instr(int rd, long va, int rs)
|
|||
if (rs != 25)
|
||||
serror("source register must be sp");
|
||||
|
||||
va /= 4;
|
||||
if (!fitx(va, 6))
|
||||
serror("offset too big to encode in instruction");
|
||||
va = maskx(va, 6);
|
||||
|
|
Loading…
Reference in a new issue