$OpenBSD: patch-source_mupen64plus-core_src_r4300_cop1_w_c,v 1.1.1.1 2011/12/26 13:38:27 stsp Exp $
--- src/r4300/cop1_w.c.orig	Sun Dec 18 23:22:38 2011
+++ src/r4300/cop1_w.c	Sun Dec 18 20:04:55 2011
@@ -22,20 +22,18 @@
 #include "r4300.h"
 #include "ops.h"
 #include "macros.h"
+#include "fpu.h"
 
 void CVT_S_W(void)
 {  
    if (check_cop1_unusable()) return;
-   set_rounding();
-   *reg_cop1_simple[cffd] = (float) *((int*)reg_cop1_simple[cffs]);
+   cvt_s_w((int*)reg_cop1_simple[cffs], reg_cop1_simple[cffd]);
    PC++;
 }
 
 void CVT_D_W(void)
 {
    if (check_cop1_unusable()) return;
-   set_rounding();
-   *reg_cop1_double[cffd] = *((int*)reg_cop1_simple[cffs]);
+   cvt_d_w((int*)reg_cop1_simple[cffs], reg_cop1_double[cffd]);
    PC++;
 }
-
