target-s390x: add a cpu_mmu_idx_to_asc function
commit4decd76d71d6972a59bf0a16d0dea0c83490d001
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 3 Jun 2015 21:09:53 +0000 (3 23:09 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 4 Jun 2015 23:37:59 +0000 (5 01:37 +0200)
tree47795fad3c68a225f1dd5bbbafea3dd72822da09
parenta1f12d855b6ec79a640fa6a74d12884f1646ecfe
target-s390x: add a cpu_mmu_idx_to_asc function

Use constants to define the MMU indexes, and add a function to do
the reverse conversion of cpu_mmu_index.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/cpu.h