summaryrefslogtreecommitdiff
path: root/arm
diff options
context:
space:
mode:
authoraliaspider2014-12-10 12:53:26 +0100
committeraliaspider2014-12-10 12:53:26 +0100
commita926a68eb30710c61ea3c0dbfa2597e96842d31e (patch)
tree161d00ad81625fa57eecb166b30a1719db001ebc /arm
parent6d7fd87e07f157237319b51a8e0583ce0a4a5e6d (diff)
downloadpicogpsp-a926a68eb30710c61ea3c0dbfa2597e96842d31e.tar.gz
picogpsp-a926a68eb30710c61ea3c0dbfa2597e96842d31e.tar.bz2
picogpsp-a926a68eb30710c61ea3c0dbfa2597e96842d31e.zip
cleanups
Diffstat (limited to 'arm')
-rw-r--r--arm/arm_emit.h7
-rw-r--r--arm/arm_stub.S32
2 files changed, 0 insertions, 39 deletions
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