On 11/26/25 14:21, Philippe Mathieu-Daudé wrote:
+static target_ulong loads4(CPUMIPSState *env, target_ulong arg,
+ unsigned mem_idx, uintptr_t ra)
+{
+ return (target_long)(int32_t)cpu_ldl_mmuidx_ra(env, arg, mem_idx, ra);
+}
+HELPER_LD_ATOMIC(ll, 0x3, loads4)
#ifdef TARGET_MIPS64
-HELPER_LD_ATOMIC(lld, ldq, 0x7, (target_ulong))
+static target_ulong loadu8(CPUMIPSState *env, target_ulong arg,
+ unsigned mem_idx, uintptr_t ra)
+{
+ return (target_ulong)cpu_ldq_mmuidx_ra(env, arg, mem_idx, ra);
+}
You don't need the casts to target_ulong -- those are implied by the return
type.
Otherwise,
Reviewed-by: Richard Henderson <[email protected]>
r~