qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH 1/3] target/hppa: Fix assemble_16 insns for wide mode
Date: Mon, 4 Mar 2024 13:58:17 -1000
User-agent: Mozilla Thunderbird

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(val, 1, 13);
+
+    if (ctx->tb_flags & PSW_W) {
+        i ^= val & (3 << 13);

Patch boots when I change to:
+        i ^= ((val >> 14) & 3) << 13;


Whoops, yes.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]