There are two cases where this was wrong, albeit in a benign way (the
compiler - according to my checking - didn't leverage the wrongness
for any optimizations affecting overall outcome).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
if ( (rc = ops->read(src.mem.seg, src.mem.off,
&src.val, src.bytes, ctxt)) != 0 )
goto done;
- emulate_fpu_insn_memdst("fldt", src.val);
+ emulate_fpu_insn_memsrc("fldt", src.val);
break;
case 7: /* fstp m80fp */
ea.bytes = 10;
ea.bytes = 8;
dst = ea;
dst.type = OP_MEM;
- emulate_fpu_insn_memsrc("fstl", dst.val);
+ emulate_fpu_insn_memdst("fstl", dst.val);
break;
case 3: /* fstp m64fp */
ea.bytes = 8;