]> git.proxmox.com Git - mirror_qemu.git/commit - target/sh4/cpu.c
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)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 18 Dec 2022 17:36:07 +0000 (09:36 -0800)
commitbc2331635ce18ff068d2bb1e493bc546e1f786e1
tree6670d16aab7c6d2ea7c5d4affa8886d935d20f10
parent562d4af32ec2213061f844b3838223fd7711b56a
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>
target/sh4/cpu.c