Move machine initialization code.

Move machine-specific initialization code out of the ptl_simulate
loop and into a function within the PTLsimMachine class.