qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 04/16] target/mips: Call translator_ld() in translate_insn


From: Richard Henderson
Subject: Re: [PATCH v3 04/16] target/mips: Call translator_ld() in translate_insn() callees
Date: Tue, 26 Nov 2024 10:03:18 -0600
User-agent: Mozilla Thunderbird

On 11/26/24 07:59, Philippe Mathieu-Daudé wrote:
Historically we were only calling decode_opc() from the MIPS
translate_insn() handler. Then variable instruction length
ISAs were added, we kept using the same pattern but call
yet more translator_ld() in the callees when necessary.

This is cumbersome and bug prone, so better move all
translator_ld() calls to the callees where it is more
logical.

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  target/mips/tcg/translate.c               |  6 ++----
  target/mips/tcg/micromips_translate.c.inc |  3 +++
  target/mips/tcg/mips16e_translate.c.inc   |  5 +++--
  target/mips/tcg/nanomips_translate.c.inc  | 12 +++++++++---
  4 files changed, 17 insertions(+), 9 deletions(-)

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

r~



reply via email to

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