modified:   sim/sim_core.c