https://bugs.kde.org/show_bug.cgi?id=379525

--- Comment #15 from Ivo Raisr <iv...@ivosh.net> ---
So the real "culprit" is that on:

amd64/Linux:
guest_amd64_assume_fs_is_const = True
guest_amd64_assume_gs_is_const = True

amd64/Darwin:
guest_amd64_assume_fs_is_const = False
guest_amd64_assume_gs_is_const = True

amd64/Solaris:
guest_amd64_assume_fs_is_const = True
guest_amd64_assume_gs_is_const = True

And amd64 decoder in disInstr_AMD64_WRK(), around lines 32238-32243 fails with:
------------
   /* We have a %fs prefix.  Reject it if there's no evidence in 'vbi'
      that we should accept it. */
   if ((pfx & PFX_FS) && !vbi->guest_amd64_assume_fs_is_const)
      goto decode_failure;

   /* Ditto for %gs prefixes. */
   if ((pfx & PFX_GS) && !vbi->guest_amd64_assume_gs_is_const)
      goto decode_failure;
-----------


This means that the test cases in cet_nops are probably not valid for all OSes.
Only Linux can have both "fs" and "gs" prefixes, OS X only "gs" and Solaris
only "fs".

I think this could be easily fixed by simple #ifdefery in cet_ops.c.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to