Skip to content
Commit cab48881 authored by Miodrag Dinic's avatar Miodrag Dinic Committed by Yongbok Kim
Browse files

target/mips: fix msa copy_[s|u]_df rd = 0 corner case



This patch fixes the msa copy_[s|u]_df instruction emulation when
the destination register rd is zero. Without this patch the zero
register would get clobbered, which should never happen because it
is supposed to be hardwired to 0.

Fix this corner case by explicitly checking rd = 0 and effectively
making these instructions emulation no-op in that case.

Signed-off-by: default avatarMiodrag Dinic <miodrag.dinic@imgtec.com>
Reviewed-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Acked-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Signed-off-by: default avatarYongbok Kim <yongbok.kim@imgtec.com>
parent b5ed2e11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment