summaryrefslogtreecommitdiffstats
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-12 16:47:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-12 16:47:36 +0000
commit5af451868c5bd93ea24672b0fa1b765cbd563cc6 (patch)
tree9b3d1a6c9d59353ab231d1f7ab5d957022ba5683 /target-i386/helper.c
parent77f193daa80a097a892c5c86e6038de9ffe59938 (diff)
downloadhqemu-5af451868c5bd93ea24672b0fa1b765cbd563cc6.zip
hqemu-5af451868c5bd93ea24672b0fa1b765cbd563cc6.tar.gz
converted SSE/MMX ops to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4441 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index c93f10f..30a6ecc 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -4462,3 +4462,32 @@ void vmexit(uint64_t exit_code, uint64_t exit_info_1)
}
#endif
+
+/* MMX/SSE */
+/* XXX: optimize by storing fptt and fptags in the static cpu state */
+void helper_enter_mmx(void)
+{
+ env->fpstt = 0;
+ *(uint32_t *)(env->fptags) = 0;
+ *(uint32_t *)(env->fptags + 4) = 0;
+}
+
+void helper_emms(void)
+{
+ /* set to empty state */
+ *(uint32_t *)(env->fptags) = 0x01010101;
+ *(uint32_t *)(env->fptags + 4) = 0x01010101;
+}
+
+/* XXX: suppress */
+void helper_movq(uint64_t *d, uint64_t *s)
+{
+ *d = *s;
+}
+
+#define SHIFT 0
+#include "ops_sse.h"
+
+#define SHIFT 1
+#include "ops_sse.h"
+
OpenPOWER on IntegriCloud