public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb174d
)
Fix incorrect offset encoding in lea (sp) instructions.
author
David Given
<dg@cowlark.com>
Fri, 28 Jun 2013 23:35:07 +0000
(
00:35
+0100)
committer
David Given
<dg@cowlark.com>
Fri, 28 Jun 2013 23:35:07 +0000
(
00:35
+0100)
--HG--
branch : dtrg-videocore
mach/vc4/as/mach5.c
patch
|
blob
|
history
diff --git
a/mach/vc4/as/mach5.c
b/mach/vc4/as/mach5.c
index
e98f675
..
5f10fac
100644
(file)
--- a/
mach/vc4/as/mach5.c
+++ b/
mach/vc4/as/mach5.c
@@
-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);