On 11/19/21 7:13 AM, Song Gao wrote:
+DEF_HELPER_3(crc32, tl, tl, tl, tl)
+DEF_HELPER_3(crc32c, tl, tl, tl, tl)
+DEF_HELPER_2(cpucfg, tl, env, tl)

DEF_HELPER_FLAGS_N, TCG_CALL_NO_RWG_SE.

+target_ulong helper_cpucfg(CPULoongArchState *env, target_ulong rj)
+{
+    return env->cpucfg[rj];
+}

The value of the source register should be bounded by ARRAY_SIZE(env->cpucfg); out-of-bound indicies read 0.


r~

Reply via email to