Re: [PATCH 2/9] disas/capstone: Allow for cap_insn_unit > length

Philippe Mathieu-Daudé <[email protected]>
Newsgroups org.nongnu.qemu-devel,org.nongnu.qemu-riscv
Message-ID <[email protected]>
On 9/8/26 03:33, Richard Henderson wrote:
> cap_insn_unit is designed for targets like arm thumb2
> and s390x where 4 and 6-byte insns are displayed in
> 2-byte chunks.
> 
> For riscv, we prefer 4-byte insns to display as one
> 4-byte unit, rather than 2x 2-byte units.  So we will
> want to set cap_insn_unit to 4, but allow for insns
> that are smaller than 4.  Emit padding to match.
> 
> Signed-off-by: Richard Henderson <[email protected]>
> ---
>   disas/capstone.c | 8 +++++++-
>   1 file changed, 7 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.