diff options
author | twinaphex | 2014-12-10 01:17:37 +0100 |
---|---|---|
committer | twinaphex | 2014-12-10 01:17:37 +0100 |
commit | fe19474dca84b5d00570e3fb5a04c8a359615f70 (patch) | |
tree | 97ea724a4515ae9bdb76dd1d72082f6ca3d16d5f /arm | |
parent | afff31b5087e0e12a42c0301057ea56e7c6d2b75 (diff) | |
download | picogpsp-fe19474dca84b5d00570e3fb5a04c8a359615f70.tar.gz picogpsp-fe19474dca84b5d00570e3fb5a04c8a359615f70.tar.bz2 picogpsp-fe19474dca84b5d00570e3fb5a04c8a359615f70.zip |
Add macro parameter 'opcode' to some macros
Diffstat (limited to 'arm')
-rw-r--r-- | arm/arm_emit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arm/arm_emit.h b/arm/arm_emit.h index aa97ad4..c77d7e1 100644 --- a/arm/arm_emit.h +++ b/arm/arm_emit.h @@ -1097,7 +1097,7 @@ u32 function_cc execute_spsr_restore_body(u32 pc) #define arm_generate_op_reg(name, load_op, store_op, flags_op) \ u32 shift_type = (opcode >> 5) & 0x03; \ - arm_decode_data_proc_reg(); \ + arm_decode_data_proc_reg(opcode); \ prepare_load_rn_##load_op(); \ prepare_store_rd_##store_op(); \ \ @@ -1122,7 +1122,7 @@ u32 function_cc execute_spsr_restore_body(u32 pc) // imm will be loaded by the called function if necessary. #define arm_generate_op_imm(name, load_op, store_op, flags_op) \ - arm_decode_data_proc_imm(); \ + arm_decode_data_proc_imm(opcode); \ prepare_load_rn_##load_op(); \ prepare_store_rd_##store_op(); \ generate_op_##name##_imm(_rd, _rn); \ @@ -1274,7 +1274,7 @@ u32 execute_store_cpsr_body(u32 _cpsr, u32 store_mask, u32 address) #define arm_psr(op_type, transfer_type, psr_reg) \ { \ - arm_decode_psr_##op_type(); \ + arm_decode_psr_##op_type(opcode); \ arm_psr_##transfer_type(op_type, psr_reg); \ } \ @@ -1835,7 +1835,7 @@ u32 execute_store_cpsr_body(u32 _cpsr, u32 store_mask, u32 address) generate_branch(arm) \ #define arm_bx() \ - arm_decode_branchx(); \ + arm_decode_branchx(opcode); \ generate_load_reg(reg_a0, rn); \ generate_indirect_branch_dual(); \ |