qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 09/30] target/mips: Merge do_translate_address into cpu_mi


From: Richard Henderson
Subject: Re: [PATCH v3 09/30] target/mips: Merge do_translate_address into cpu_mips_translate_address
Date: Mon, 19 Apr 2021 12:31:35 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 4/19/21 12:18 PM, Philippe Mathieu-Daudé wrote:
Currently cpu_mips_translate_address() calls raise_mmu_exception(),
and do_translate_address() calls cpu_loop_exit_restore().

This API split is dangerous, we could call cpu_mips_translate_address
without returning to the main loop.

As there is only one caller, it is trivial (and safer) to merge
do_translate_address() back to cpu_mips_translate_address().

Reported-by: Richard Henderson<richard.henderson@linaro.org>
Suggested-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
---
  target/mips/internal.h   |  2 +-
  target/mips/op_helper.c  | 20 ++------------------
  target/mips/tlb_helper.c | 11 ++++++-----
  3 files changed, 9 insertions(+), 24 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]