diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-02-26 01:27:32 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-03-03 09:37:47 -1000 |
commit | 304c05df7c3e383133a70e20d7b5121d75ae4190 (patch) | |
tree | 3343eff2f64381f081d8c00b80c8e6fd23cd4ed1 /target/nios2/helper.h | |
parent | 0b6e8f5b234181198f4864f201bef13842987525 (diff) | |
download | qemu-304c05df7c3e383133a70e20d7b5121d75ae4190.zip qemu-304c05df7c3e383133a70e20d7b5121d75ae4190.tar.gz qemu-304c05df7c3e383133a70e20d7b5121d75ae4190.tar.bz2 |
target/nios2: Split mmu_write
Create three separate functions for the three separate registers.
Avoid extra dispatch through op_helper.c.
Dispatch to the correct function in translation.
Clean up the ifdefs in wrctl.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2/helper.h')
-rw-r--r-- | target/nios2/helper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/nios2/helper.h b/target/nios2/helper.h index 6d8eec1..21ef7f0 100644 --- a/target/nios2/helper.h +++ b/target/nios2/helper.h @@ -21,6 +21,8 @@ DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) #if !defined(CONFIG_USER_ONLY) -DEF_HELPER_3(mmu_write, void, env, i32, i32) +DEF_HELPER_2(mmu_write_tlbacc, void, env, i32) +DEF_HELPER_2(mmu_write_tlbmisc, void, env, i32) +DEF_HELPER_2(mmu_write_pteaddr, void, env, i32) DEF_HELPER_1(check_interrupts, void, env) #endif |