Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIPS P5600: no error when executing unimplemented Paired-Single instructions #42

Closed
rdsk opened this issue Feb 2, 2015 · 1 comment
Closed

Comments

@rdsk
Copy link

rdsk commented Feb 2, 2015

According to [1], Paired-Single instructions are not implemented in MIPS P5600, however, it is still possible to execute them with P5600 CPU defininition without any errors.

Step to reproduce:

$ cat t.c
int main () {
    asm volatile ("pll.ps $f2,$f4,$f6");
    return 0;
}
$ mips64el-linux-gnu -mips32r5 -mabi=32 -mfp64 t.c -o t.exe 
$ qemu-mipsel -cpu P5600 t.exe
<returns 0>

Tested on i6400-mips64r6-PRIP4 branch.

References:
[1] "P5600 Multiprocessing System Software User's Manual", p646, http://www.imgtec.com/mips/docs/p-class/MD01025-2B-P5600-SUM-01.30.pdf

yongbok added a commit to yongbok/prpl-qemu that referenced this issue Feb 10, 2015
64-bit paired-single (PS) floating point data type could not be
implemented in the pre-Release 6.
It has to raise RI exception when PS type is not implemented. (FIR.PS = 0)
(The PS data type is removed in the Release 6.)

Closes prplfoundation#42

Signed-off-by: Yongbok Kim <[email protected]>
@yongbok
Copy link

yongbok commented Mar 31, 2015

Fix has been applied. Closing the issue.

@yongbok yongbok closed this as completed Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants