File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,12 @@ CPU.prototype.get_state = function()
573573 state [ 83 ] = this . devices . virtio_net ;
574574 state [ 84 ] = this . devices . virtio_balloon ;
575575
576+ // state[85] new ide set above
577+
578+ state [ 86 ] = this . last_result ;
579+ state [ 87 ] = this . fpu_status_word ;
580+ state [ 88 ] = this . mxcsr ;
581+
576582 return state ;
577583} ;
578584
@@ -759,6 +765,10 @@ CPU.prototype.set_state = function(state)
759765 this . fpu_dp_selector [ 0 ] = state [ 74 ] ;
760766 this . fpu_opcode [ 0 ] = state [ 75 ] ;
761767
768+ if ( state [ 86 ] !== undefined ) this . last_result = state [ 86 ] ;
769+ if ( state [ 87 ] !== undefined ) this . fpu_status_word = state [ 87 ] ;
770+ if ( state [ 88 ] !== undefined ) this . mxcsr = state [ 88 ] ;
771+
762772 const bitmap = new Bitmap ( state [ 78 ] . buffer ) ;
763773 const packed_memory = state [ 77 ] ;
764774 this . unpack_memory ( bitmap , packed_memory ) ;
You can’t perform that action at this time.
0 commit comments