mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	UserspaceEmulator: Implement the 32-bit BSWAP instruction :^)
This commit is contained in:
		
							parent
							
								
									339f12e8a2
								
							
						
					
					
						commit
						029fe56d69
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -726,7 +726,12 @@ void SoftCPU::BSF_reg16_RM16(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BSF_reg32_RM32(const X86::Instruction&) { TODO(); } | void SoftCPU::BSF_reg32_RM32(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BSR_reg16_RM16(const X86::Instruction&) { TODO(); } | void SoftCPU::BSR_reg16_RM16(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BSR_reg32_RM32(const X86::Instruction&) { TODO(); } | void SoftCPU::BSR_reg32_RM32(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BSWAP_reg32(const X86::Instruction&) { TODO(); } | 
 | ||||||
|  | void SoftCPU::BSWAP_reg32(const X86::Instruction& insn) | ||||||
|  | { | ||||||
|  |     gpr32(insn.reg32()) = __builtin_bswap32(gpr32(insn.reg32())); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| void SoftCPU::BTC_RM16_imm8(const X86::Instruction&) { TODO(); } | void SoftCPU::BTC_RM16_imm8(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BTC_RM16_reg16(const X86::Instruction&) { TODO(); } | void SoftCPU::BTC_RM16_reg16(const X86::Instruction&) { TODO(); } | ||||||
| void SoftCPU::BTC_RM32_imm8(const X86::Instruction&) { TODO(); } | void SoftCPU::BTC_RM32_imm8(const X86::Instruction&) { TODO(); } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling