target/i386: fix host_cpu_adjust_phys_bits error handling
commitce21726525da53053432b19e27e9fd2a49086d78
authorClaudio Fontana <cfontana@suse.de>
Mon, 22 Mar 2021 13:27:43 +0000 (22 14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:50 +0000 (10 15:41 -0400)
tree728582a6a95073517918cbd5b2eb6fe8dbc84224
parentbb883fd67707fd7f1bf04369aafd7ea7ad5b01b0
target/i386: fix host_cpu_adjust_phys_bits error handling

move the check for phys_bits outside of host_cpu_adjust_phys_bits,
because otherwise it is impossible to return an error condition
explicitly.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210322132800.7470-8-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/host-cpu.c