From 664e0f195adda3cf01b40d8d1aa79bbc24ad5fab Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 8 Jan 2005 18:58:29 +0000 Subject: MMX/SSE support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1205 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/ops_mem.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'target-i386/ops_mem.h') diff --git a/target-i386/ops_mem.h b/target-i386/ops_mem.h index 21c17008b9..2e6ccc424d 100644 --- a/target-i386/ops_mem.h +++ b/target-i386/ops_mem.h @@ -80,7 +80,21 @@ void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T1_A0)(void) glue(stl, MEMSUFFIX)(A0, T1); } -/* SSE support */ +/* SSE/MMX support */ +void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _env_A0)(void) +{ + uint64_t *p; + p = (uint64_t *)((char *)env + PARAM1); + *p = glue(ldq, MEMSUFFIX)(A0); +} + +void OPPROTO glue(glue(op_stq, MEMSUFFIX), _env_A0)(void) +{ + uint64_t *p; + p = (uint64_t *)((char *)env + PARAM1); + glue(stq, MEMSUFFIX)(A0, *p); +} + void OPPROTO glue(glue(op_ldo, MEMSUFFIX), _env_A0)(void) { XMMReg *p; -- cgit v1.2.3