java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.emulator.EEmuUtil

public class EEmuUtil extends Object
Utility code IR emulators.
  • Constructor Details

    • EEmuUtil

      public EEmuUtil()
  • Method Details

    • setupGenericThreadLocalStorageInfo

      public static long setupGenericThreadLocalStorageInfo(EEmulator emu, long pageAddress, boolean allocAndWrite)
      Set-up platform-specific structures used for thread local storage (TLS) -like information. This routine works on a best-effort basis.
      Parameters:
      emu - emulator
      pageAddress - base address for TLS data
      allocAndWrite - if true, a page for TLS data will be allocated (preferably at the provided address), and pseudo TLS values will be written on that page
      Returns:
      the actual TLS base address