mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	arm_disasm: Remove unnecessary code
This part of disassembly only determines the opcode, there's no need for offset calculation here.
This commit is contained in:
		
							parent
							
								
									7c7eeb9d34
								
							
						
					
					
						commit
						59d5358068
					
				@ -779,20 +779,12 @@ Opcode ARM_Disasm::Decode10(uint32_t insn) {
 | 
				
			|||||||
            return OP_LDM;
 | 
					            return OP_LDM;
 | 
				
			||||||
        return OP_STM;
 | 
					        return OP_STM;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    // Branch or Branch with link
 | 
					 | 
				
			||||||
    uint8_t is_link = (insn >> 24) & 1;
 | 
					 | 
				
			||||||
    uint32_t offset = insn & 0xffffff;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Sign-extend the 24-bit offset
 | 
					    // Branch with link
 | 
				
			||||||
    if ((offset >> 23) & 1)
 | 
					    if ((insn >> 24) & 1)
 | 
				
			||||||
        offset |= 0xff000000;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Pre-compute the left-shift and the prefetch offset
 | 
					 | 
				
			||||||
    offset <<= 2;
 | 
					 | 
				
			||||||
    offset += 8;
 | 
					 | 
				
			||||||
    if (is_link == 0)
 | 
					 | 
				
			||||||
        return OP_B;
 | 
					 | 
				
			||||||
        return OP_BL;
 | 
					        return OP_BL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return OP_B;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Opcode ARM_Disasm::Decode11(uint32_t insn) {
 | 
					Opcode ARM_Disasm::Decode11(uint32_t insn) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user