OSDN Git Service

target/i386: clarify (un)signedness of immediates from 0F3Ah opcodes
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Sep 2022 15:48:14 +0000 (17:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Oct 2022 11:58:05 +0000 (13:58 +0200)
commita64eee3ab402469b536db9aeb259097b84d31d0f
treeeb5fb3d992de12d84dcbee13b52fe31b7afa5b81
parent6bbeb98d10f9d93e723a0fa3d35457750f5e69ac
target/i386: clarify (un)signedness of immediates from 0F3Ah opcodes

Three-byte opcodes from the 0F3Ah area all have an immediate byte which
is usually unsigned.  Clarify in the helper code that it is unsigned;
the new decoder treats immediates as signed by default, and seeing
an intN_t in the prototype might give the wrong impression that one
can use decode->immediate directly.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/ops_sse.h
target/i386/ops_sse_header.h