# Class: com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.emulator.EEmuUtil

Utility code [IR emulators](EEmulator).

## Static Method: setupGenericThreadLocalStorageInfo
- parameter: `emu`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.emulator.EEmulator`
- parameter: `pageAddress`, type: `long`
- parameter: `allocAndWrite`, type: `boolean`
- return type: `long`

Description: Set\-up platform\-specific structures used for thread local storage \(TLS\) \-like information. This routine works on a best\-effort basis.
parameter: emu: emulator
parameter: pageAddress: base address for TLS data
parameter: 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
return: the actual TLS base address

