Add support for pseudo functions / intrinsics #158
Labels
dom: decoder
(P/I) Related to instruction decoding / frontend
dom: decompilation
(P/I) Covers all middle end related issues
dom: parsers
(P/I) Covers all parser related issues
type: feature
(P/I) Brand new functionality
Currently, instructions with unknown semantics are treated as NOP.
This causes a multitude of problems; most importantly, instructions with special semantics are decompiled wrong.
For example, x86 executables containing a CPUID instruction are decompiled wrong because the semantics of CPUID cannot be represented with the current IR.
A solution for this would be to add support for pseudo functions to SSL; these pseudo functions cannot be renamed and are either directly emitted as intrinsics (e.g.
__cpuid(foo, bar)
) or maybe with a__pseudo_
prefix if the pseudo function does not correspond to a known intrinsic.The text was updated successfully, but these errors were encountered: