diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-05-24 15:45:54 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-05-24 15:45:54 +0200 |
| commit | a8e0c141b0184d629504b9f0ee8dbc4fefb90934 (patch) | |
| tree | cff0f7e64ce58dc8f1e4ff4501743d9b94449c94 /ppu_registers.c | |
| parent | e28ad1546509de31b706f0fd300a906e5bc55199 (diff) | |
3011fps
Diffstat (limited to 'ppu_registers.c')
| -rw-r--r-- | ppu_registers.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
