fix qemu&OS side code for interrupt