mirror of
				https://git.wownero.com/wownero/RandomWOW.git
				synced 2024-08-15 00:23:14 +00:00 
			
		
		
		
	Fix illegal instruction crash on some ARM systems
See https://github.com/xmrig/xmrig/issues/1916
This commit is contained in:
		
							parent
							
								
									a44d07c89f
								
							
						
					
					
						commit
						2ba7df2844
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -95,6 +95,10 @@ JitCompilerA64::JitCompilerA64() | |||
| { | ||||
| 	memset(reg_changed_offset, 0, sizeof(reg_changed_offset)); | ||||
| 	memcpy(code, (void*) randomx_program_aarch64, CodeSize); | ||||
| 
 | ||||
| #ifdef __GNUC__ | ||||
| 	__builtin___clear_cache(reinterpret_cast<char*>(code), reinterpret_cast<char*>(code + CodeSize)); | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| JitCompilerA64::~JitCompilerA64() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue