From a8e0c141b0184d629504b9f0ee8dbc4fefb90934 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sat, 24 May 2025 15:45:54 +0200 Subject: 3011fps --- ppu_registers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ppu_registers.c') diff --git a/ppu_registers.c b/ppu_registers.c index f6bd515..98e2c7d 100644 --- a/ppu_registers.c +++ b/ppu_registers.c @@ -1,4 +1,4 @@ -__attribute__((always_inline, hot)) +__attribute__((hot)) static inline void ppu_write(struct nes_state *state, uint32_t offset, uint8_t value) { struct ppu_state *ppu = &state->ppu; @@ -70,7 +70,7 @@ static inline void ppu_write(struct nes_state *state, uint32_t offset, uint8_t v } } -__attribute__((always_inline, hot)) +__attribute__((hot)) static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) { struct ppu_state *ppu = &state->ppu; uint8_t result = ppu->open_bus; @@ -120,7 +120,7 @@ static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) { static uint8_t memory_read_dma(struct nes_state *state, uint32_t offset); __attribute__((hot)) -static void ppu_dma_4014(struct nes_state *state, uint8_t page) { +static inline void ppu_dma_4014(struct nes_state *state, uint8_t page) { uint32_t base = page << 8; // Add 1 or 2 idle cycles depending on current CPU cycle -- cgit v1.2.3