]> git.proxmox.com Git - mirror_qemu.git/commit - target/mips/tcg/translate.c
target/mips: Make check_cp0_enabled() return a boolean
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 20 Apr 2021 18:07:38 +0000 (20:07 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 2 May 2021 14:49:34 +0000 (16:49 +0200)
commit905bdf72a6373bcb46fbdc8b9d7d9f83d134a266
tree0c9241f34749529e15b1b3ab8e87e8f1434f396d
parentdf44e81703968d22ce59e1160f970c5e70db2cfb
target/mips: Make check_cp0_enabled() return a boolean

To avoid callers to emit dead code if check_cp0_enabled()
raise an exception, let it return a boolean value, whether
CP0 is enabled or not.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210420193453.1913810-4-f4bug@amsat.org>
target/mips/translate.c
target/mips/translate.h