diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-10 10:31:39 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-12-29 22:04:40 +0100 |
| commit | 405c7c07082b4f9d11500659c849657297f0d065 (patch) | |
| tree | ad8a1dcdff080c7304af65810fce5531ece8664b /scripts/modules/module_block.py | |
| parent | e7bbb7cb71b3001c54f23c66848d84e694c47243 (diff) | |
| download | focaccia-qemu-405c7c07082b4f9d11500659c849657297f0d065.tar.gz focaccia-qemu-405c7c07082b4f9d11500659c849657297f0d065.zip | |
target/i386: implement CMPccXADD
The main difficulty here is that a page fault when writing to the destination must not overwrite the flags. Therefore, the flags computation must be inlined instead of using gen_jcc1*. For simplicity, I am using an unconditional cmpxchg operation, that becomes a NOP if the comparison fails. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions