This commit is contained in:
aliaspider
2014-12-10 12:53:26 +01:00
parent 6d7fd87e07
commit a926a68eb3
15 changed files with 4 additions and 980 deletions

View File

@@ -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

View File

@@ -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