aboutsummaryrefslogtreecommitdiff
path: root/target/cris/mmu.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-28 01:32:23 +0100
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>2021-02-22 09:04:58 +0100
commit91ab6d46960256d21c6c01a1f5948bf1336aa15c (patch)
tree4fb1a1429a62d1fd657e994db37ba917145537b6 /target/cris/mmu.h
parentc0ff662fabb9bbf79c6518d34f6163567aa4ab44 (diff)
target/cris: Let cris_mmu_translate() use MMUAccessType access_type
All callers of cris_mmu_translate() provide 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é <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-Id: <20210128003223.3561108-3-f4bug@amsat.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target/cris/mmu.h')
-rw-r--r--target/cris/mmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/cris/mmu.h b/target/cris/mmu.h
index 9ab1642b96..d57386ec6c 100644
--- a/target/cris/mmu.h
+++ b/target/cris/mmu.h
@@ -17,6 +17,6 @@ void cris_mmu_init(CPUCRISState *env);
void cris_mmu_flush_pid(CPUCRISState *env, uint32_t pid);
int cris_mmu_translate(struct cris_mmu_result *res,
CPUCRISState *env, uint32_t vaddr,
- int rw, int mmu_idx, int debug);
+ MMUAccessType access_type, int mmu_idx, int debug);
#endif