summary refs log tree commit diff stats
path: root/hw/virtio/virtio-net-pci.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-04-03 23:07:20 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-05-12 17:48:32 +0200
commit5b80dcf95b9a196c15c12b0226f93732c1b1a843 (patch)
treeffc5e6d02ff0b5bba1ccdf16ff2652184e2547a6 /hw/virtio/virtio-net-pci.c
parent77a2dba45cc9a1be7fec6ab88f43d2fa18af52a3 (diff)
downloadfocaccia-qemu-5b80dcf95b9a196c15c12b0226f93732c1b1a843.tar.gz
focaccia-qemu-5b80dcf95b9a196c15c12b0226f93732c1b1a843.zip
target/i386/emulate: mostly rewrite flags handling
While Bochs's algorithms are pretty solid, there are small opportunities
to improve them or to make their logic more similar to TCG's handling
of condition codes.

- use a single bit for the difference between bits 0..7 of result and PF.
This is useful because "set only ZF" is not a common case.

- place SD in the same place as SF

- move CF and PO at bits 62 and 63 when target_ulong is 64-bits wide,
  so that 64-bit ALU operations need fewer shifts

- use rotates to move CF and AF from auxbits to their eflags position

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-net-pci.c')
0 files changed, 0 insertions, 0 deletions