mirror of
https://github.com/qemu/qemu.git
synced 2026-07-09 18:16:33 +00:00
target/hexagon: Inline translator_ldl()
translator_ldl() is defined in "exec/translator.h" as:
198 static inline uint32_t
199 translator_ldl(CPUArchState *env, DisasContextBase *db, vaddr pc)
200 {
201 return translator_ldl_end(env, db, pc, MO_TE);
202 }
Directly use the inlined form, expanding MO_TE -> MO_LE
since Hexagon use little-endian order.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-ID: <20251224160708.89085-2-philmd@linaro.org>
This commit is contained in:
@@ -207,8 +207,9 @@ static int read_packet_words(CPUHexagonState *env, DisasContext *ctx,
|
||||
memset(words, 0, PACKET_WORDS_MAX * sizeof(uint32_t));
|
||||
for (nwords = 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) {
|
||||
words[nwords] =
|
||||
translator_ldl(env, &ctx->base,
|
||||
ctx->base.pc_next + nwords * sizeof(uint32_t));
|
||||
translator_ldl_end(env, &ctx->base,
|
||||
ctx->base.pc_next + nwords * sizeof(uint32_t),
|
||||
MO_LE);
|
||||
found_end = is_packet_end(words[nwords]);
|
||||
}
|
||||
if (!found_end) {
|
||||
@@ -987,8 +988,10 @@ static bool pkt_crosses_page(CPUHexagonState *env, DisasContext *ctx)
|
||||
int nwords;
|
||||
|
||||
for (nwords = 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) {
|
||||
uint32_t word = translator_ldl(env, &ctx->base,
|
||||
ctx->base.pc_next + nwords * sizeof(uint32_t));
|
||||
uint32_t word = translator_ldl_end(env, &ctx->base,
|
||||
ctx->base.pc_next
|
||||
+ nwords * sizeof(uint32_t),
|
||||
MO_LE);
|
||||
found_end = is_packet_end(word);
|
||||
}
|
||||
uint32_t next_ptr = ctx->base.pc_next + nwords * sizeof(uint32_t);
|
||||
|
||||
Reference in New Issue
Block a user