Revision 5af45186 target-i386/helper.c

b/target-i386/helper.c
4462 4462
}
4463 4463

  
4464 4464
#endif
4465

  
4466
/* MMX/SSE */
4467
/* XXX: optimize by storing fptt and fptags in the static cpu state */
4468
void helper_enter_mmx(void)
4469
{
4470
    env->fpstt = 0;
4471
    *(uint32_t *)(env->fptags) = 0;
4472
    *(uint32_t *)(env->fptags + 4) = 0;
4473
}
4474

  
4475
void helper_emms(void)
4476
{
4477
    /* set to empty state */
4478
    *(uint32_t *)(env->fptags) = 0x01010101;
4479
    *(uint32_t *)(env->fptags + 4) = 0x01010101;
4480
}
4481

  
4482
/* XXX: suppress */
4483
void helper_movq(uint64_t *d, uint64_t *s)
4484
{
4485
    *d = *s;
4486
}
4487

  
4488
#define SHIFT 0
4489
#include "ops_sse.h"
4490

  
4491
#define SHIFT 1
4492
#include "ops_sse.h"
4493

  

Also available in: Unified diff