On 2017-06-15 16:20, Miodrag Dinic wrote: > From: Miodrag Dinic <miodrag.di...@imgtec.com> > > 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: Miodrag Dinic <miodrag.di...@imgtec.com> > --- > target/mips/translate.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) >
Reviewed-by: Aurelien Jarno <aurel...@aurel32.net> Acked-by: Aurelien Jarno <aurel...@aurel32.net> -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net