Skip to content
Snippets Groups Projects
Commit 53972b65 authored by Clark Coleman's avatar Clark Coleman
Browse files

Merge branch 'endbr_opcodes' into 'master'

Treat endbr32 and endbr64 as nops instead of failing to build RTLs.

See merge request !30
parents ccccd625 5cc4326b
No related branches found
No related tags found
1 merge request!30Treat endbr32 and endbr64 as nops instead of failing to build RTLs.
Pipeline #22996 passed
......@@ -27279,9 +27279,17 @@ bool SMPInstr::BuildX86RTL(void)
case STARS_NN_wrussq: // Write (8 bytes) to User Shadow Stack
case STARS_NN_setssbsy: // Mark Shadow Stack Busy
case STARS_NN_clrssbsy: // Clear Shadow Stack Busy Flag
return false;
break;
case STARS_NN_endbr64: // Terminate an Indirect Branch in 64-bit Mode
case STARS_NN_endbr32: // Terminate an Indirect Branch in 32-bit and Compatibility Mode
return false;
NopRT = new SMPRegTransfer;
NopRT->SetParentInst(this);
NopRT->SetOperator(SMP_NULL_OPERATOR);
this->RTL.push_back(NopRT);
NopRT = nullptr;
return true;
break;
 
// Undefined Instruction
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment