From a926a68eb30710c61ea3c0dbfa2597e96842d31e Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 10 Dec 2014 12:53:26 +0100 Subject: cleanups --- arm/arm_emit.h | 7 ------- arm/arm_stub.S | 32 -------------------------------- 2 files changed, 39 deletions(-) (limited to 'arm') diff --git a/arm/arm_emit.h b/arm/arm_emit.h index c77d7e1..cf2602e 100644 --- a/arm/arm_emit.h +++ b/arm/arm_emit.h @@ -45,9 +45,6 @@ void execute_swi_thumb(u32 pc); void function_cc execute_store_u32_safe(u32 address, u32 source); -void step_debug_arm(u32 pc); - - #define write32(value) \ *((u32 *)translation_ptr) = value; \ translation_ptr += 4 \ @@ -1958,9 +1955,5 @@ void execute_swi_hle_div_c() generate_update_pc(pc); \ generate_indirect_branch_no_cycle_update(type) \ -#define generate_step_debug() \ - generate_function_call(step_debug_arm); \ - write32(pc) \ - #endif diff --git a/arm/arm_stub.S b/arm/arm_stub.S index b4fbb71..1fc0db6 100644 --- a/arm/arm_stub.S +++ b/arm/arm_stub.S @@ -37,9 +37,6 @@ .global execute_bios_ptr_protected .global execute_bios_rom_ptr - -.global step_debug_arm - .global invalidate_icache_region .global invalidate_cache_region @@ -934,35 +931,6 @@ execute_patch_bios_protect: type##_reg_scratch(12) ;\ type##_reg_scratch(14) ;\ - -step_debug_arm: - save_flags() - collapse_flags(r0) - - ldr r0, [reg_base, #REG_CPSR] @ r1 = cpsr - tst r0, #0x20 @ see if Thumb bit is set - - ldr r0, [lr] @ load PC - mvn r1, reg_cycles @ load cycle counter - - beq 1f @ if not goto ARM mode - - scratch_regs_thumb(save) - - store_registers_thumb() @ write back Thumb regs - call_c_function(step_debug) @ call debug step - scratch_regs_thumb(restore) - restore_flags() - add pc, lr, #4 @ return - -1: - scratch_regs_arm(save) - store_registers_arm() @ write back ARM regs - call_c_function(step_debug) @ call debug step - scratch_regs_arm(restore) - restore_flags() - add pc, lr, #4 @ return, skipping PC - .pool .comm memory_map_read 0x8000 -- cgit v1.2.3