qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qustion about x86 sse insn "lddqu"
@ 2009-12-03  5:29 Hui Zhu
  2010-03-06 18:17 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Hui Zhu @ 2009-12-03  5:29 UTC (permalink / raw)
  To: qemu-devel

Hi,

In qemu 0.11.0, it handle lddqu as:
        case 0x3f0: /* lddqu */
            if (mod == 3)
                goto illegal_op;
            gen_lea_modrm(s, modrm, &reg_addr, &offset_addr);
            gen_sto_env_A0(s->mem_index, offsetof(CPUX86State,xmm_regs[reg]));
            break;
It st the value of xmm[reg] to address A0, right?

But in intel doc about this insn:
LDDQU—Load Unaligned Integer 128 Bits
The instruction is functionally similar to MOVDQU xmm, m128 for loading from
memory. That is: 16 bytes of data starting at an address specified by the source
memory operand (second operand) are fetched from memory and placed in
a destination
register (first operand). The source operand need not be aligned on a 16-byte
boundary. Up to 32 bytes may be loaded from memory; this is implementation
dependent.

Did I miss something? Or this code have some bug?

Thanks,
Hui

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-06 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03  5:29 [Qemu-devel] qustion about x86 sse insn "lddqu" Hui Zhu
2010-03-06 18:17 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).