target/tricore: Move translate feature check to ctx
commit44ee3bafb6711180e77dd071beb04fae70b1cb65
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Fri, 29 May 2020 07:21:45 +0000 (29 09:21 +0200)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 1 Jun 2020 14:55:12 +0000 (1 16:55 +0200)
tree2d380902dde8a90e8e498572a79b0d524ed01251
parenta564c318fe4e5bdc17029ced343fb13173fbd2c9
target/tricore: Move translate feature check to ctx

this allows us to remove the references to env from ctx. This also fixes
a segfault that was due to the unititalized ctx->env ptr.

Reported-by: Andreas Konopik <andreas.konopik@fau.de>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20200529072148.284037-3-kbastian@mail.uni-paderborn.de>
target/tricore/translate.c