target/mips/mips-defs: Introduce CPU_MIPS64 and cpu_type_is_64bit()
commitb0586b38cb51dccb25a1957796e34ecd99c8fbf7
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 16 Dec 2020 11:41:25 +0000 (16 12:41 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 14 Jan 2021 16:13:53 +0000 (14 17:13 +0100)
tree1c1ab2380bf5cd79106b5fe89a96246b99af9a32
parent8b0ea9b638adadcf056f4a18fe53a7c6339beba8
target/mips/mips-defs: Introduce CPU_MIPS64 and cpu_type_is_64bit()

MIPS 64-bit ISA is introduced with MIPS3.

Introduce the CPU_MIPS64 definition aliased to the MIPS3 ISA,
and the cpu_type_is_64bit() method to check if a CPU supports
this ISA (thus is 64-bit).

Suggested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210104221154.3127610-5-f4bug@amsat.org>
target/mips/cpu.h
target/mips/mips-defs.h