[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 67/72] ppc/amigaone: Simplify replacement dummy_fw
From: |
Nicholas Piggin |
Subject: |
[PULL 67/72] ppc/amigaone: Simplify replacement dummy_fw |
Date: |
Tue, 11 Mar 2025 22:58:01 +1000 |
From: BALATON Zoltan <balaton@eik.bme.hu>
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>
---
hw/ppc/amigaone.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/hw/ppc/amigaone.c b/hw/ppc/amigaone.c
index b02792221c..4290d58613 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 */
};
--
2.47.1
- [PULL 43/72] target/ppc: Make ppc_ldl_code() declaration public, (continued)
- [PULL 43/72] target/ppc: Make ppc_ldl_code() declaration public, Nicholas Piggin, 2025/03/11
- [PULL 49/72] target/ppc: Restrict exception helpers to TCG, Nicholas Piggin, 2025/03/11
- [PULL 52/72] target/ppc: Make powerpc_excp() prototype public, Nicholas Piggin, 2025/03/11
- [PULL 53/72] target/ppc: Restrict ATTN / SCV / PMINSN helpers to TCG, Nicholas Piggin, 2025/03/11
- [PULL 54/72] hw/ppc/spapr: Convert HPTE() macro as hpte_get_ptr() method, Nicholas Piggin, 2025/03/11
- [PULL 55/72] hw/ppc/spapr: Convert HPTE_VALID() macro as hpte_is_valid() method, Nicholas Piggin, 2025/03/11
- [PULL 56/72] hw/ppc/spapr: Convert HPTE_DIRTY() macro as hpte_is_dirty() method, Nicholas Piggin, 2025/03/11
- [PULL 65/72] target/ppc: Avoid warning message for zero process table entries, Nicholas Piggin, 2025/03/11
- [PULL 63/72] target/ppc: fix timebase register reset state, Nicholas Piggin, 2025/03/11
- [PULL 72/72] docs/system/ppc/amigang.rst: Update for NVRAM emulation, Nicholas Piggin, 2025/03/11
- [PULL 67/72] ppc/amigaone: Simplify replacement dummy_fw,
Nicholas Piggin <=
- [PULL 40/72] hw/ssi/pnv_spi: Put a limit to RDR match failures, Nicholas Piggin, 2025/03/11
- [PULL 50/72] target/ppc: Restrict various common helpers to TCG, Nicholas Piggin, 2025/03/11
- [PULL 57/72] hw/ppc/spapr: Convert CLEAN_HPTE() macro as hpte_set_clean() method, Nicholas Piggin, 2025/03/11
- [PULL 61/72] ppc: spapr: Enable 2nd DAWR on Power10 pSeries machine, Nicholas Piggin, 2025/03/11
- [PULL 62/72] spapr: nested: Add support for reporting Hostwide state counter, Nicholas Piggin, 2025/03/11
- [PULL 39/72] hw/ssi/pnv_spi: Make bus names distinct for each controllers of a socket, Nicholas Piggin, 2025/03/11
- [PULL 69/72] ppc/amigaone: Add default environment, Nicholas Piggin, 2025/03/11
- [PULL 70/72] ppc/amigaone: Add kernel and initrd support, Nicholas Piggin, 2025/03/11
- [PULL 47/72] target/ppc: Restrict powerpc_checkstop() to TCG, Nicholas Piggin, 2025/03/11
- [PULL 51/72] target/ppc: Fix style in excp_helper.c, Nicholas Piggin, 2025/03/11