mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 05:25:11 +00:00
target/mips: Correct helper for MSA FCLASS.<W|D> instructions
Correct helper for MSA FCLASS.<W|D> instructions. Backports commit 698c5752c4e618dc17b4c78dfa566896c7bce5ef from qemu
This commit is contained in:
parent
bf194f980c
commit
1e148beb0e
|
@ -4055,9 +4055,11 @@ void helper_msa_fclass_df(CPUMIPSState *env, uint32_t df,
|
|||
pwd->w[1] = float_class_s(pws->w[1], status);
|
||||
pwd->w[2] = float_class_s(pws->w[2], status);
|
||||
pwd->w[3] = float_class_s(pws->w[3], status);
|
||||
} else {
|
||||
} else if (df == DF_DOUBLE) {
|
||||
pwd->d[0] = float_class_d(pws->d[0], status);
|
||||
pwd->d[1] = float_class_d(pws->d[1], status);
|
||||
} else {
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue