diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2025-02-27 17:39:15 +0100 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2025-03-11 22:43:32 +1000 |
commit | 222d37d38999546d8407139410ee45df98fac805 (patch) | |
tree | ab663ce2bb0d9d6158e878babcac21e3c801c1a7 | |
parent | d91b101da1075f57dda0f30f6802129328716da1 (diff) | |
download | qemu-222d37d38999546d8407139410ee45df98fac805.zip qemu-222d37d38999546d8407139410ee45df98fac805.tar.gz qemu-222d37d38999546d8407139410ee45df98fac805.tar.bz2 |
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 <balaton@eik.bme.hu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <446bf740cbb99422be2cc5a31e51a1034eddded7.1740673173.git.balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
-rw-r--r-- | hw/ppc/amigaone.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ppc/amigaone.c b/hw/ppc/amigaone.c index b027922..4290d58 100644 --- a/hw/ppc/amigaone.c +++ b/hw/ppc/amigaone.c @@ -41,10 +41,7 @@ /* AmigaOS calls this routine from ROM, use this if no firmware loaded */ static const char dummy_fw[] = { - 0x38, 0x00, 0x00, 0x08, /* li r0,8 */ - 0x7c, 0x09, 0x03, 0xa6, /* mtctr r0 */ - 0x54, 0x63, 0xf8, 0x7e, /* srwi r3,r3,1 */ - 0x42, 0x00, 0xff, 0xfc, /* bdnz 0x8 */ + 0x54, 0x63, 0xc2, 0x3e, /* srwi r3,r3,8 */ 0x7c, 0x63, 0x18, 0xf8, /* not r3,r3 */ 0x4e, 0x80, 0x00, 0x20, /* blr */ }; |