mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 13:20:03 +00:00 
			
		
		
		
	dyncom: Remove unused cpu parameter from decode_thumb_instr
This commit is contained in:
		
							parent
							
								
									097d8282a6
								
							
						
					
					
						commit
						92fd2753c5
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -3490,7 +3490,7 @@ enum { | ||||||
|     FETCH_FAILURE |     FETCH_FAILURE | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| static tdstate decode_thumb_instr(ARMul_State* cpu, u32 inst, u32 addr, u32* arm_inst, u32* inst_size, ARM_INST_PTR* ptr_inst_base) { | static tdstate decode_thumb_instr(u32 inst, u32 addr, u32* arm_inst, u32* inst_size, ARM_INST_PTR* ptr_inst_base) { | ||||||
|     // Check if in Thumb mode
 |     // Check if in Thumb mode
 | ||||||
|     tdstate ret = thumb_translate (addr, inst, arm_inst, inst_size); |     tdstate ret = thumb_translate (addr, inst, arm_inst, inst_size); | ||||||
|     if(ret == t_branch){ |     if(ret == t_branch){ | ||||||
|  | @ -3581,8 +3581,7 @@ static int InterpreterTranslate(ARMul_State* cpu, int& bb_start, u32 addr) { | ||||||
|         // If we are in thumb instruction, we will translate one thumb to one corresponding arm instruction
 |         // If we are in thumb instruction, we will translate one thumb to one corresponding arm instruction
 | ||||||
|         if (cpu->TFlag) { |         if (cpu->TFlag) { | ||||||
|             uint32_t arm_inst; |             uint32_t arm_inst; | ||||||
|             tdstate state; |             tdstate state = decode_thumb_instr(inst, phys_addr, &arm_inst, &inst_size, &inst_base); | ||||||
|             state = decode_thumb_instr(cpu, inst, phys_addr, &arm_inst, &inst_size, &inst_base); |  | ||||||
| 
 | 
 | ||||||
|             // We have translated the branch instruction of thumb in thumb decoder
 |             // We have translated the branch instruction of thumb in thumb decoder
 | ||||||
|             if(state == t_branch){ |             if(state == t_branch){ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue