Skip to content

Commit 222d37d

Browse files
zbalatonnpiggin
authored andcommitted
ppc/amigaone: Simplify replacement dummy_fw
There's no need to do shift in a loop, doing it in one instruction works just as well, only the result is used. Signed-off-by: BALATON Zoltan <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Message-ID: <446bf740cbb99422be2cc5a31e51a1034eddded7.1740673173.git.balaton@eik.bme.hu> Signed-off-by: Nicholas Piggin <[email protected]>
1 parent d91b101 commit 222d37d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

hw/ppc/amigaone.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141

4242
/* AmigaOS calls this routine from ROM, use this if no firmware loaded */
4343
static const char dummy_fw[] = {
44-
0x38, 0x00, 0x00, 0x08, /* li r0,8 */
45-
0x7c, 0x09, 0x03, 0xa6, /* mtctr r0 */
46-
0x54, 0x63, 0xf8, 0x7e, /* srwi r3,r3,1 */
47-
0x42, 0x00, 0xff, 0xfc, /* bdnz 0x8 */
44+
0x54, 0x63, 0xc2, 0x3e, /* srwi r3,r3,8 */
4845
0x7c, 0x63, 0x18, 0xf8, /* not r3,r3 */
4946
0x4e, 0x80, 0x00, 0x20, /* blr */
5047
};

0 commit comments

Comments
 (0)