mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-28 11:50:37 -07:00
include/exec: fix assert in size_memop
We can handle larger sized memops now, expand the range of the assert.
Fixes: 4b473e0c60 (tcg: Expand MO_SIZE to 3 bits)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250603110204.838117-14-alex.bennee@linaro.org>
This commit is contained in:
parent
002655381f
commit
7aabb6dbba
1 changed files with 2 additions and 2 deletions
|
|
@ -162,8 +162,8 @@ static inline unsigned memop_size(MemOp op)
|
|||
static inline MemOp size_memop(unsigned size)
|
||||
{
|
||||
#ifdef CONFIG_DEBUG_TCG
|
||||
/* Power of 2 up to 8. */
|
||||
assert((size & (size - 1)) == 0 && size >= 1 && size <= 8);
|
||||
/* Power of 2 up to 1024 */
|
||||
assert(is_power_of_2(size) && size >= 1 && size <= (1 << MO_SIZE));
|
||||
#endif
|
||||
return (MemOp)ctz32(size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue