Re: [PATCH 2/3] i386: Move asserts to separate x86_cpudef_validate() function

2021-02-02 Thread Philippe Mathieu-Daudé
On 2/1/21 11:54 PM, Eduardo Habkost wrote: > Additional sanity checks will be added to the code, so move the > existing asserts to a separate function. > > Wrap the whole function in `#ifndef NDEBUG` because the checks > will become more complex than trivial assert() calls. How can you build with

[PATCH 2/3] i386: Move asserts to separate x86_cpudef_validate() function

2021-02-01 Thread Eduardo Habkost
Additional sanity checks will be added to the code, so move the existing asserts to a separate function. Wrap the whole function in `#ifndef NDEBUG` because the checks will become more complex than trivial assert() calls. Signed-off-by: Eduardo Habkost --- target/i386/cpu.c | 16 ---