[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE reg
From: |
Alex Bennée |
Subject: |
Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers |
Date: |
Thu, 19 Dec 2019 19:15:30 +0000 |
User-agent: |
mu4e 1.3.5; emacs 27.0.50 |
Richard Henderson <address@hidden> writes:
> 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.
I'm just going to drop vg (and therefor the ability to set it) from the
regset. It was only meant to be an indicator and gdb doesn't actually
look to it to size it's output. The likely dynamic extension will just
re-transmit the whole XML when a change occurs.
--
Alex Bennée
- Re: [PATCH v3 08/20] gdbstub: extend GByteArray to read register helpers, (continued)
- [PATCH v3 15/20] tests/tcg/aarch64: userspace system register test, Alex Bennée, 2019/12/11
- [PATCH v3 14/20] target/arm: don't bother with id_aa64pfr0_read for USER_ONLY, Alex Bennée, 2019/12/11
- [PATCH v3 16/20] tests/tcg: ensure we re-configure if configure.sh is updated, Alex Bennée, 2019/12/11
- [PATCH v3 20/20] tests/tcg/aarch64: add test-sve-ioctl guest-debug test, Alex Bennée, 2019/12/11
- [PATCH v3 12/20] target/arm: generate xml description of our SVE registers, Alex Bennée, 2019/12/11
[PATCH v3 17/20] tests/guest-debug: add a simple test runner, Alex Bennée, 2019/12/11
[PATCH v3 18/20] tests/tcg/aarch64: add a gdbstub testcase for SVE registers, Alex Bennée, 2019/12/11