SMP simulator codes