diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index aa376e10..e75d4e55 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -5112,6 +5112,7 @@ static void zcr_write(CPUARMState *env, const ARMCPRegInfo *ri, int new_len; /* Bits other than [3:0] are RAZ/WI. */ + QEMU_BUILD_BUG_ON(ARM_MAX_VQ > 16); raw_write(env, ri, value & 0xf); /*