target/microblaze: Cache mem_index in DisasContext
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 19 Aug 2020 23:38:07 +0000 (16:38 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Sep 2020 14:41:38 +0000 (07:41 -0700)
commit287b1defeb44398d02669d97ebdc347d650f274d
tree618eadcf3f5a36110d08e728c5f4aaa8af93071e
parent2c32179f39278ebc975c3d08710bb22672911889
target/microblaze: Cache mem_index in DisasContext

Ideally, nothing outside the top-level of translation even
has access to env.  Cache the value in init_disas_context.

Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/microblaze/translate.c