PPC: e500: Fix MMUCSR0 emulation
commita721d390b302a383a99224e08d12caad2e97d7ab
authorAlex Zuepke <alexander.zuepke@hs-rm.de>
Wed, 28 May 2014 17:25:36 +0000 (28 19:25 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:40 +0000 (16 13:24 +0200)
tree8a81b17e463ee4cc8d0c40e89d17716001125c01
parent1b8eceee280d3fab11812271f4956f7b69287ef0
PPC: e500: Fix MMUCSR0 emulation

A  "mtspr SPRMMUCSR0, reg"  always flushed TLB0,
because it passed the SPR number 0x3f4 to the flush routine.
But we want to flush either TLB0 or TBL1 depending on the GPR value.

Signed-off-by: Alex Zuepke <alexander.zuepke@hs-rm.de>
[agraf: change subject line, fix TCGv size mismatch]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/helper.h
target-ppc/mmu_helper.c
target-ppc/translate_init.c