target/cris: Use MMUAccessType enum type when possible
commitc0ff662fabb9bbf79c6518d34f6163567aa4ab44
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 28 Jan 2021 00:32:22 +0000 (28 01:32 +0100)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Mon, 22 Feb 2021 08:04:58 +0000 (22 09:04 +0100)
tree3583dbbe6a89f6ee1ecb8125902db3bfc504e181
parent00d8ba9e0d62ea1c7459c25aeabf9c8bb7659462
target/cris: Use MMUAccessType enum type when possible

Replace the 0/1/2 magic values by the corresponding MMUAccessType.
We can remove a comment as enum names are self explicit.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <20210128003223.3561108-2-f4bug@amsat.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/cris/helper.c
target/cris/mmu.c