mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
converted SSE/MMX ops to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4441 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
77f193daa8
commit
5af451868c
6 changed files with 712 additions and 668 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue