MIPS: Only build microMIPS specific simulator functions if microMIPS support is required.
authorAndrew Bennett <andrew.bennett@imgtec.com>
Mon, 18 Jan 2016 21:25:19 +0000 (21:25 +0000)
committerAndrew Bennett <andrew.bennett@imgtec.com>
Mon, 18 Jan 2016 21:50:00 +0000 (21:50 +0000)
commit3d304f48cafbff4b7a1c0a9d338fb20aa4e4934b
tree5170a4c7640f9a532d57ca85339c9efef1eb9b61
parent3f7f365076a112313870e2a321452bfda6d40914
MIPS: Only build microMIPS specific simulator functions if microMIPS support is required.

This fixes PR sim/19441.  In the MIPS simulator the microMIPS
functions in micromips.igen were not predicated on the microMIPS
models.  This was causing build issues for some target triples.
This patch sets all the microMIPS specific functions to only be built if
the micromips32, micromips64 or micromipsdsp models are used.

PR sim/19441
* micromips.igen (delayslot_micromips): Enable for `micromips32',
`micromips64' and `micromipsdsp' only.
(process_isa_mode): Enable for `micromips32' and `micromips64' only.
(do_micromips_jalr, do_micromips_jal): Likewise.
(compute_movep_src_reg): Likewise.
(compute_andi16_imm): Likewise.
(convert_fmt_micromips): Likewise.
(convert_fmt_micromips_cvt_d): Likewise.
(convert_fmt_micromips_cvt_s): Likewise.
(FMT_MICROMIPS): Likewise.
(FMT_MICROMIPS_CVT_D): Likewise.
(FMT_MICROMIPS_CVT_S): Likewise.
sim/mips/ChangeLog
sim/mips/micromips.igen