src/sim/igen works ok now

Change-Id: Ifc8ba003e8b1aeae93298d6ea6068c9f449d2533