target/nios2: Remove assignment to env in handle_instruction
commit50e1a0cd3cf7cc2b56fee6523882014fda95dc95
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 20 Jun 2021 05:15:35 +0000 (19 22:15 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jun 2021 17:02:32 +0000 (29 10:02 -0700)
tree2342346285b6c167e08e0641da2612d88b35eb62
parentd67cbd932187fecf70d38bd113fa985209b72671
target/nios2: Remove assignment to env in handle_instruction

Direct assignments to env during translation do not work.

As it happens, the only way we can get here is if env->pc
is already set to dc->pc.  We will trap on the first insn
we execute anywhere on the page.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/nios2/translate.c