bios_emulator: Add parens to xorl macro
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 23 Jul 2025 10:34:36 +0000 (11:34 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 29 Jul 2025 19:14:47 +0000 (13:14 -0600)
commit0fdcca86d87b3b723cdfc9901f02f14adba9df60
treea8a312a83562abed749d4e4beb1054ebe081259f
parent4b8aba93bdba168f284036cd7f8cb0e988bf3f92
bios_emulator: Add parens to xorl macro

The xorl macro lacked surrounding parens which meant that it could have
unexpected results when used in expressions. Fix this by adding the
surrounding parens to make its use predictable.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/bios_emulator/x86emu/ops2.c