]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: fix x86_64 pushw op
authorThomas Ogrisegg <tom-bugs-qemu@fnord.at>
Tue, 15 Jul 2025 21:03:07 +0000 (23:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Oct 2025 09:03:59 +0000 (11:03 +0200)
commit5a2faa0a0a2cbdad4a108a0e122b0e51b9bc94fd
treede7f8ce6aa4ba82a7a1df83a55581fedb0f8049d
parentcdba90ac1b0ac789b10c0b5f6ef7e9558237ec66
target/i386: fix x86_64 pushw op

For x86_64 a 16 bit push op (pushw) of a memory address would generate
a 64 bit store on the stack instead of a 16 bit store.

For example:
        pushw (%rax)

behaves like
        pushq (%rax)

which is incorrect.

This patch fixes that.

Signed-off-by: Thomas Ogrisegg <tom-bugs-qemu@fnord.at>
Link: https://lore.kernel.org/r/20250715210307.GA1115@x1.fnord.at
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/decode-new.c.inc