mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
According to x86 architecture rules, 32-bit operations zero-extend the
result to 64 bits. The current implementation of handle_in() only masks
the lower 32 bits, which preserves the upper 32 bits of RAX when a
32-bit port IN instruction is emulated.
Use insn_assign_reg() to write the result back into RAX with proper
partial-register-write semantics: 1- and 2-byte forms leave the upper
bits untouched, the 4-byte form zero-extends to the full register.
Fixes:
|
||
|---|---|---|
| .. | ||
| debug.c | ||
| Makefile | ||
| tdcall.S | ||
| tdx-shared.c | ||
| tdx.c | ||