On 2/3/26 07:38, Philippe Mathieu-Daudé wrote:
In preparation of removing the translator_ld[uw,l,q]() methods, inline them for the RISC-V targets, using mo_endian(ctx) -- which we introduced in commit 504f7f304ff -- instead of MO_TE.Mechanical change using the following Coccinelle 'spatch' script: @@ expression env, db, pc, do_swap; @@ ( - translator_lduw(env, db, pc) + translator_lduw_end(env, db, pc, mo_endian(ctx)) | - translator_ldl(env, db, pc) + translator_ldl_end(env, db, pc, mo_endian(ctx)) | - translator_ldq(env, db, pc) + translator_ldq_end(env, db, pc, mo_endian(ctx)) ) Signed-off-by: Philippe Mathieu-Daudé<[email protected]> --- target/riscv/translate.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <[email protected]> r~
