]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sh4: Mask restore of env->flags from tb->flags
authorGuenter Roeck <linux@roeck-us.net>
Mon, 12 Dec 2022 15:03:17 +0000 (09:03 -0600)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commite34f86a2f91c39d610d58baa6f4c9ed9a5a5d791
tree678ee2a2906acb91b5a5be15e1a355daeb0f6962
parentb67b00e6b4c7831a3f5bc684bc0df7a9bfd1bd56
target/sh4: Mask restore of env->flags from tb->flags

The values in env->flags are a subset of tb->flags.
Restore only the bits that belong.

Cc: qemu-stable@nongnu.org
Fixes: ab419fd8a035 ("target/sh4: Fix TB_FLAG_UNALIGN")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-ID: <20221212011345.GA2235238@roeck-us.net>
[rth: Reduce to only the the superh_cpu_synchronize_from_tb change]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit bc2331635ce18ff068d2bb1e493bc546e1f786e1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/sh4/cpu.c