mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
target/Hexagon: Finish conversion to tcg_gen_qemu_{ld, st}_*
Convert away from the old interface with the implicit MemOp argument. Importantly, this removes some incorrect casts generated by idef-parser's gen_load(). Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Anton Johansson <anjo@rev.ng> Message-Id: <20230502135741.1158035-4-richard.henderson@linaro.org>
This commit is contained in:
@ -99,37 +99,37 @@
|
||||
#define MEM_LOAD1s(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 1); \
|
||||
tcg_gen_qemu_ld8s(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_SB); \
|
||||
} while (0)
|
||||
#define MEM_LOAD1u(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 1); \
|
||||
tcg_gen_qemu_ld8u(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_UB); \
|
||||
} while (0)
|
||||
#define MEM_LOAD2s(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 2); \
|
||||
tcg_gen_qemu_ld16s(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_TESW); \
|
||||
} while (0)
|
||||
#define MEM_LOAD2u(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 2); \
|
||||
tcg_gen_qemu_ld16u(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_TEUW); \
|
||||
} while (0)
|
||||
#define MEM_LOAD4s(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 4); \
|
||||
tcg_gen_qemu_ld32s(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_TESL); \
|
||||
} while (0)
|
||||
#define MEM_LOAD4u(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 4); \
|
||||
tcg_gen_qemu_ld32s(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_tl(DST, VA, ctx->mem_idx, MO_TEUL); \
|
||||
} while (0)
|
||||
#define MEM_LOAD8u(DST, VA) \
|
||||
do { \
|
||||
CHECK_NOSHUF(VA, 8); \
|
||||
tcg_gen_qemu_ld64(DST, VA, ctx->mem_idx); \
|
||||
tcg_gen_qemu_ld_i64(DST, VA, ctx->mem_idx, MO_TEUQ); \
|
||||
} while (0)
|
||||
|
||||
#define MEM_STORE1_FUNC(X) \
|
||||
|
Reference in New Issue
Block a user