mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 04:06:46 +00:00 
			
		
		
		
	Implment tlbiel
Linux uses tlbiel to flush TLB entries in PPC64 mode. This special TLB flush opcode only flushes an entry for the CPU it runs on, not across all CPUs in the system. Signed-off-by: Alexander Graf <alex@csgraf.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6749 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									5b5aba4f14
								
							
						
					
					
						commit
						bf14b1cef1
					
				| @ -4394,6 +4394,20 @@ GEN_HANDLER(tlbia, 0x1F, 0x12, 0x0B, 0x03FFFC01, PPC_MEM_TLBIA) | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| /* tlbiel */ | ||||
| GEN_HANDLER(tlbiel, 0x1F, 0x12, 0x08, 0x03FF0001, PPC_MEM_TLBIE) | ||||
| { | ||||
| #if defined(CONFIG_USER_ONLY) | ||||
|     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); | ||||
| #else | ||||
|     if (unlikely(!ctx->mem_idx)) { | ||||
|         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); | ||||
|         return; | ||||
|     } | ||||
|     gen_helper_tlbie(cpu_gpr[rB(ctx->opcode)]); | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| /* tlbie */ | ||||
| GEN_HANDLER(tlbie, 0x1F, 0x12, 0x09, 0x03FF0001, PPC_MEM_TLBIE) | ||||
| { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 blueswir1
						blueswir1