Fix a subtle thinko which was causing bits 2-3 of jump targets to be reset.
authorDavid Given <dg@cowlark.com>
Tue, 11 Sep 2018 21:16:30 +0000 (23:16 +0200)
committerDavid Given <dg@cowlark.com>
Tue, 11 Sep 2018 21:16:30 +0000 (23:16 +0200)
mach/mips/as/mach4.c

index c7f1582..6208fff 100644 (file)
@@ -174,7 +174,7 @@ abs26
                        serror("jump targets must be 4-aligned");
 
                newrelo($1.typ, RELOMIPS | FIXUPFLAGS);
-               $$ = (target >> 2) & 0x03fffffd;
+               $$ = (target >> 2) & 0x03ffffff;
        }
        ;