Re: [PATCH 2/2] target/nios2: Use MMUAccessType enum type when possible

2021-02-03 Thread Richard Henderson
On 1/27/21 1:41 PM, Philippe Mathieu-Daudé wrote: > All callers of mmu_translate() provide it a MMUAccessType > type. Let the prototype use it as argument, as it is stricter > than an integer. We can remove the documentation as enum > names are self explicit. > > Signed-off-by: Philippe Mathieu-Da

[PATCH 2/2] target/nios2: Use MMUAccessType enum type when possible

2021-01-27 Thread Philippe Mathieu-Daudé
All callers of mmu_translate() provide it a MMUAccessType type. Let the prototype use it as argument, as it is stricter than an integer. We can remove the documentation as enum names are self explicit. Signed-off-by: Philippe Mathieu-Daudé --- target/nios2/mmu.h | 3 ++- target/nios2/mmu.c | 4 +