[PATCH v3 0/2] target/i386/tcg: fix EIP truncation for wrapping 16-bit near branches

Paul Galbraith posted 2 patches 15 hours ago
target/i386/tcg/translate.c                |  20 +++-
tests/tcg/i386/system/meson.build          |   7 ++
tests/tcg/i386/system/test-branch-wrap16.S | 118 +++++++++++++++++++++
3 files changed, 141 insertions(+), 4 deletions(-)
create mode 100644 tests/tcg/i386/system/test-branch-wrap16.S
[PATCH v3 0/2] target/i386/tcg: fix EIP truncation for wrapping 16-bit near branches
Posted by Paul Galbraith 15 hours ago
Changes since v2:
- Patch 1: no change
- Patch 2: test rewritten in assembly, hopefully clearer

v2: https://lore.kernel.org/qemu-devel/20260910180517.97-1-paul@galbraiths.ca/

Paul Galbraith (2):
  target/i386/tcg: fix EIP truncation for wrapping 16-bit near branches
  tests/tcg/i386: add regression test for wrapping 16-bit near branches

 target/i386/tcg/translate.c                |  20 +++-
 tests/tcg/i386/system/meson.build          |   7 ++
 tests/tcg/i386/system/test-branch-wrap16.S | 118 +++++++++++++++++++++
 3 files changed, 141 insertions(+), 4 deletions(-)
 create mode 100644 tests/tcg/i386/system/test-branch-wrap16.S


base-commit: 8db19f3ad9cef7842b6e5025130fc30075311691
-- 
2.55.0.windows.3