git: libnvmm: Fix MOVZX emulation

Aaron LI aly at crater.dragonflybsd.org
Sat Oct 3 07:05:12 PDT 2026


commit 78d08104a1aad575e68596ac7d7c366a1c2b9480
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Oct 3 16:47:59 2026 +0800

    libnvmm: Fix MOVZX emulation
    
    The overridden operand_size was being used to select the register, and
    this did not match the actual desired register size. This could result
    in the wrong register being written to, for example EBP would be decoded
    as CH.
    
    Update the existing unit-test to exercise this case.
    
    Obtained-from: NVMM Reference Implementation

Summary of changes:
 lib/libnvmm/libnvmm_x86.c                 | 5 ++++-
 test/testcases/libnvmm/h_mem_assist_asm.S | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/78d08104a1aad575e68596ac7d7c366a1c2b9480


-- 
DragonFly BSD source repository


More information about the Commits mailing list