implement INSTR_STATE in the qcvm
use INSTR_STATE by default, add -femulate-state to switch to emulation, and -state-fps=NUM to set its emulation FPS
add tests for INSTR_STATE and -femulate-state