|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers |
Date: | Wed, 11 Dec 2019 18:26:24 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 |
On 12/11/19 9:05 AM, Alex Bennée wrote: > +static struct TypeSize vec_lanes[] = { const. > + case 51: > + return gdb_get_reg64(buf, (cpu->env.vfp.zcr_el[1] & 0xf) + 1); You need to use sve_zcr_len_for_el to get the effective vq. Also, I thought vg == 2 * vq. > + case 51: > + { > + uint64_t val = *(uint64_t *) buf; > + cpu->env.vfp.zcr_el[1] = (val - 1) & 0xf; You cannot hard-code EL1 without ifdef CONFIG_USER_ONLY. If the effective vq decreases, you must call aarch64_sve_narrow_vq. You must call arm_rebuild_hflags. r~
[Prev in Thread] | Current Thread | [Next in Thread] |