mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target/sh4: Fix mac.w with saturation enabled
The saturation arithmetic logic in helper_macw is not correct. I tested and verified this behavior on a SH7091. Reviewd-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Zack Buhman <zack@buhman.org> Message-Id: <20240405233802.29128-3-zack@buhman.org> [rth: Reformat helper_macw, add a test case.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
c97e8977dc
commit
7227c0cd50
4 changed files with 82 additions and 12 deletions
|
@ -12,7 +12,7 @@ DEF_HELPER_1(discard_movcal_backup, void, env)
|
|||
DEF_HELPER_2(ocbi, void, env, i32)
|
||||
|
||||
DEF_HELPER_3(macl, void, env, s32, s32)
|
||||
DEF_HELPER_3(macw, void, env, i32, i32)
|
||||
DEF_HELPER_3(macw, void, env, s32, s32)
|
||||
|
||||
DEF_HELPER_2(ld_fpscr, void, env, i32)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue