Commit cb3d83bc authored by Richard Henderson's avatar Richard Henderson
Browse files

exec-all.h: Use stl_le_p instead of stl_p patching x86



We got the wrong version of stl_p, the one that bswaps as appropriate
for the target.  Since x86 is always little-endian, the "_le_" routine
will resolve to what we want.

Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
parent cd2b9b86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ void ppc_tb_set_jmp_target(unsigned long jmp_addr, unsigned long addr);
static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr)
{
    /* patch the branch destination */
    stl_p((void*)jmp_addr, addr - (jmp_addr + 4));
    stl_le_p((void*)jmp_addr, addr - (jmp_addr + 4));
    /* no need to flush icache explicitly */
}
#elif defined(__aarch64__)