orcmips: only enable if the DSPr2 ASE is present
authorJames Cowgill <jcowgill@debian.org>
Fri, 6 Apr 2018 14:26:43 +0000 (15:26 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 22 Apr 2018 19:22:52 +0000 (20:22 +0100)
commitd5be86cc73304689712ad920877e152fb7a2460a
tree9d32c04dca40b0315b7a797015a3369b128c03a8
parent88371bf16bfbdcd235140c882578a2883002fbe0
orcmips: only enable if the DSPr2 ASE is present

The mips target uses various instructions that a part of the MIPS DSPr2
ASE which is not present on all processors. The easiest solution is to
gate the target on the presense of DSPr2 at runtime.

Unfortunately there isn't a "nice" way to detect if DSPr2 is present, so
resort to parsing /proc/cpuinfo to get the information.

https://bugzilla.gnome.org/show_bug.cgi?id=760834
orc/Makefile.am
orc/meson.build
orc/orccpu-mips.c [new file with mode: 0644]
orc/orcmips.h
orc/orcprogram-mips.c