On Fri, Aug 19, 2016 at 08:09:00PM +0100, Paul Burton wrote: > Provide a new cpu_supports_isa function which allows callers to > determine whether a CPU supports one of the ISA_ flags, by testing > whether the associated struct mips_def_t sets the ISA flags in its > insn_flags field. > > An example use of this is to allow boards which generate bootloader code > to determine the properties of the CPU that will be used, for example > whether the CPU is 64 bit or which architecture revision it implements. > > Signed-off-by: Paul Burton <paul.bur...@imgtec.com> > --- > target-mips/cpu.h | 1 + > target-mips/translate.c | 10 ++++++++++ > 2 files changed, 11 insertions(+)
Reviewed-by: Leon Alrae <leon.al...@imgtec.com>