Re: [PATCH 1/3] target/hppa: Fix assemble_16 insns for wide mode

2024-03-04 Thread Richard Henderson
On 3/2/24 20:43, Helge Deller wrote: +/* Expander for assemble_16(s,im14). */ +static int expand_16(DisasContext *ctx, int val) +{ +    /* + * @val is bits [0:15], containing both im14 and s. + * Swizzle thing around depending on PSW.W. + */ +    int i = (-(val & 1) << 13) | extract32

Re: [PATCH 1/3] target/hppa: Fix assemble_16 insns for wide mode

2024-03-02 Thread Helge Deller
On 3/3/24 03:19, Richard Henderson wrote: Reported-by: Sven Schnelle Signed-off-by: Richard Henderson --- target/hppa/insns.decode | 15 +-- target/hppa/translate.c | 21 + 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/target/hppa/insns.dec