diff options
author | Alex Bennée | 2020-03-16 18:21:45 +0100 |
---|---|---|
committer | Alex Bennée | 2020-03-17 18:38:38 +0100 |
commit | d12379c5980d53e69468db0965d8915064727b85 (patch) | |
tree | d27f6156c8e1ee7c876a7ee4dc2f51dbf3b8e1a0 /target/arm/cpu.h | |
parent | target/arm: default SVE length to 64 bytes for linux-user (diff) | |
download | qemu-d12379c5980d53e69468db0965d8915064727b85.tar.gz qemu-d12379c5980d53e69468db0965d8915064727b85.tar.xz qemu-d12379c5980d53e69468db0965d8915064727b85.zip |
target/arm: generate xml description of our SVE registers
We also expose a the helpers to read/write the the registers.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200316172155.971-19-alex.bennee@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index fbfd73a7b5..8b9f2961ba 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -756,6 +756,7 @@ struct ARMCPU { int32_t cpreg_vmstate_array_len; DynamicGDBXMLInfo dyn_sysreg_xml; + DynamicGDBXMLInfo dyn_svereg_xml; /* Timers used by the generic (architected) timer */ QEMUTimer *gt_timer[NUM_GTIMERS]; @@ -977,10 +978,12 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cpu, vaddr addr, int arm_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg); int arm_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); -/* Dynamically generates for gdb stub an XML description of the sysregs from - * the cp_regs hashtable. Returns the registered sysregs number. +/* + * Helpers to dynamically generates XML descriptions of the sysregs + * and SVE registers. Returns the number of registers in each set. */ int arm_gen_dynamic_sysreg_xml(CPUState *cpu, int base_reg); +int arm_gen_dynamic_svereg_xml(CPUState *cpu, int base_reg); /* Returns the dynamically generated XML for the gdb stub. * Returns a pointer to the XML contents for the specified XML file or NULL |