TLS fixes

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>