HomeFreeBSD

arm64/disassem.c: Fix typo sxts to sxts and amount for TYPE_02

Description

arm64/disassem.c: Fix typo sxts to sxts and amount for TYPE_02

The current implementation is wrong, since it unconditionally sets the
amount equal to the <size> field of the instruction. However, when the
<S> bit (scale) is not set, it must be zero.

Also fix a typo, sxts to sxtx, according to the Arm64 documentation.

Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39334

(cherry picked from commit cb923f03faa068f0c8ed5ffa7c3485ad7918be10)

Details

Provenance
koliagogsadze_gmail.comAuthored on Apr 18 2023, 3:50 PM
mhorneCommitted on Jun 9 2023, 6:14 PM
Reviewer
mhorne
Differential Revision
D39334: arm64/disassem.c: Fix typo sxts to sxts and amount for TYPE_02
Parents
rGbf64c283250a: arm64/disassem.c: Add support str/strb/strh instructions
Branches
Unknown
Tags
Unknown