qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v11 09/26] target/loongarch: Add fixed point extra instructio


From: Richard Henderson
Subject: Re: [PATCH v11 09/26] target/loongarch: Add fixed point extra instruction translation
Date: Sat, 20 Nov 2021 09:52:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

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

[Prev in Thread] Current Thread [Next in Thread]