From 77803adcac603414f0a84dd493198c5a0cb3b140 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Fri, 20 Aug 2021 17:39:35 +0200 Subject: [PATCH] Remove more unused stuff --- gba_memory.c | 2 -- main.c | 12 ------------ main.h | 8 -------- 3 files changed, 22 deletions(-) diff --git a/gba_memory.c b/gba_memory.c index cb28486..9a556fe 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -2835,7 +2835,6 @@ cpu_alert_type dma_transfer(dma_transfer_type *dma) { src_ptr &= ~0x01; dest_ptr &= ~0x01; - cycle_dma16_words += length; switch((dma->dest_direction << 2) | dma->source_direction) { @@ -2877,7 +2876,6 @@ cpu_alert_type dma_transfer(dma_transfer_type *dma) { src_ptr &= ~0x03; dest_ptr &= ~0x03; - cycle_dma32_words += length; switch((dma->dest_direction << 2) | dma->source_direction) { diff --git a/main.c b/main.c index 370399f..b6a782c 100644 --- a/main.c +++ b/main.c @@ -34,14 +34,6 @@ u32 arm_frame = 0; u32 thumb_frame = 0; u32 last_frame = 0; -u32 cycle_memory_access = 0; -u32 cycle_pc_relative_access = 0; -u32 cycle_sp_relative_access = 0; -u32 cycle_block_memory_access = 0; -u32 cycle_block_memory_sp_access = 0; -u32 cycle_block_memory_words = 0; -u32 cycle_dma16_words = 0; -u32 cycle_dma32_words = 0; u32 flush_ram_count = 0; u32 gbc_update_count = 0; u32 oam_update_count = 0; @@ -119,8 +111,6 @@ void init_main(void) #endif } -u32 no_alpha = 0; - u32 update_gba(void) { irq_type irq_raised = IRQ_NONE; @@ -161,8 +151,6 @@ u32 update_gba(void) if(reg[OAM_UPDATED]) oam_update_count++; - if(no_alpha) - write_ioreg(REG_BLDCNT, 0); update_scanline(); // If in visible area also fire HDMA diff --git a/main.h b/main.h index c3718cd..35bc525 100644 --- a/main.h +++ b/main.h @@ -82,14 +82,6 @@ extern u32 execute_cycles; extern u32 global_cycles_per_instruction; extern u32 skip_next_frame; -extern u32 cycle_memory_access; -extern u32 cycle_pc_relative_access; -extern u32 cycle_sp_relative_access; -extern u32 cycle_block_memory_access; -extern u32 cycle_block_memory_sp_access; -extern u32 cycle_block_memory_words; -extern u32 cycle_dma16_words; -extern u32 cycle_dma32_words; extern u32 flush_ram_count; extern u64 base_timestamp;