diff options
author | twinaphex | 2015-07-26 04:44:17 +0200 |
---|---|---|
committer | twinaphex | 2015-07-26 04:44:17 +0200 |
commit | 4036107852c0f3fbf608fac2816f466d32a4a9c5 (patch) | |
tree | 801d7a148166758f46ed74af3b8a68e8b1a73212 | |
parent | cdca6ac2a92d68453dd448f2de8e23eb02df5ee2 (diff) | |
download | picogpsp-4036107852c0f3fbf608fac2816f466d32a4a9c5.tar.gz picogpsp-4036107852c0f3fbf608fac2816f466d32a4a9c5.tar.bz2 picogpsp-4036107852c0f3fbf608fac2816f466d32a4a9c5.zip |
Prevent bunch of warnings
-rw-r--r-- | cpu.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -163,14 +163,18 @@ void print_register_usage(void) u32 rn = (opcode >> 16) & 0x0F; \ u32 rd = (opcode >> 12) & 0x0F; \ u32 rm = opcode & 0x0F; \ + (void)rd; \ + (void)rn; \ using_register(arm, rd, op_dest); \ using_register(arm, rn, op_src); \ using_register(arm, rm, op_src) \ #define arm_decode_data_proc_imm(opcode) \ + u32 imm; \ u32 rn = (opcode >> 16) & 0x0F; \ u32 rd = (opcode >> 12) & 0x0F; \ - u32 imm; \ + (void)rd; \ + (void)rn; \ ror(imm, opcode & 0xFF, ((opcode >> 8) & 0x0F) * 2); \ using_register(arm, rd, op_dest); \ using_register(arm, rn, op_src) \ @@ -179,13 +183,17 @@ void print_register_usage(void) u32 psr_field = (opcode >> 16) & 0x0F; \ u32 rd = (opcode >> 12) & 0x0F; \ u32 rm = opcode & 0x0F; \ + (void)rd; \ + (void)rm; \ + (void)psr_field; \ using_register(arm, rd, op_dest); \ using_register(arm, rm, op_src) \ #define arm_decode_psr_imm(opcode) \ + u32 imm; \ u32 psr_field = (opcode >> 16) & 0x0F; \ u32 rd = (opcode >> 12) & 0x0F; \ - u32 imm; \ + (void)rd; \ ror(imm, opcode & 0xFF, ((opcode >> 8) & 0x0F) * 2); \ using_register(arm, rd, op_dest) \ @@ -198,6 +206,7 @@ void print_register_usage(void) u32 rn = (opcode >> 12) & 0x0F; \ u32 rs = (opcode >> 8) & 0x0F; \ u32 rm = opcode & 0x0F; \ + (void)rn; \ using_register(arm, rd, op_dest); \ using_register(arm, rn, op_src); \ using_register(arm, rm, op_src) \ @@ -295,6 +304,7 @@ void print_register_usage(void) #define thumb_decode_hireg_op() \ u32 rs = (opcode >> 3) & 0x0F; \ u32 rd = ((opcode >> 4) & 0x08) | (opcode & 0x07); \ + (void)rd; \ using_register(thumb, rd, op_src_dest); \ using_register(thumb, rs, op_src) \ @@ -1657,6 +1667,8 @@ void execute_arm(u32 cycles) u32 old_pc; + (void)old_pc; + if(!pc_address_block) pc_address_block = load_gamepak_page(pc_region & 0x3FF); |