qemu/gdb-xml
Taylor Simpson 523e45ac5b Hexagon: lldb read/write predicate registers p0/p1/p2/p3
hexagon-core.xml only exposes register p3_0 which is an alias that
aggregates the predicate registers.  It is more convenient for users
to interact directly with the predicate registers.

Tested with lldb downloaded from this location
https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz

BEFORE:
(lldb) reg read p3_0
    p3_0 = 0x00000000
(lldb) reg read p0
error: Invalid register name 'p0'.
(lldb) reg write p1 0xf
error: Register not found for 'p1'.

AFTER:
(lldb) reg read p3_0
    p3_0 = 0x00000000
(lldb) reg read p0
      p0 = 0x00
(lldb) reg read -s 1
Predicate Registers:
        p0 = 0x00
        p1 = 0x00
        p2 = 0x00
        p3 = 0x00

(lldb) reg write p1 0xf
(lldb) reg read p3_0
    p3_0 = 0x00000f00
(lldb) reg write p3_0 0xff00ff00
(lldb) reg read -s 1
Predicate Registers:
        p0 = 0x00
        p1 = 0xff
        p2 = 0x00
        p3 = 0xff

Signed-off-by: Taylor Simpson <ltaylorsimpson@gmail.com>
Reviewed-by: Brian Cain <bcain@quicinc.com>
Reviewed-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
Message-Id: <20240613182209.140082-1-ltaylorsimpson@gmail.com>
Signed-off-by: Brian Cain <bcain@quicinc.com>
2024-08-07 20:34:41 -07:00
..
aarch64-core.xml
aarch64-fpu.xml
aarch64-mte.xml gdbstub: Add support for MTE in user mode 2024-07-05 12:35:33 +01:00
aarch64-pauth.xml
arm-core.xml
arm-m-profile-mve.xml
arm-m-profile.xml
arm-neon.xml gdb-xml: fix duplicate register in arm-neon.xml 2023-11-08 15:15:23 +00:00
arm-vfp3.xml
arm-vfp-sysregs.xml
arm-vfp.xml
avr-cpu.xml
cf-core.xml
cf-fp.xml
hexagon-core.xml Hexagon: lldb read/write predicate registers p0/p1/p2/p3 2024-08-07 20:34:41 -07:00
hexagon-hvx.xml
i386-32bit.xml
i386-64bit.xml
loongarch-base32.xml
loongarch-base64.xml
loongarch-fpu.xml
loongarch-lasx.xml target/loongarch/gdbstub: Add vector registers support 2024-07-19 10:40:04 +08:00
loongarch-lsx.xml target/loongarch/gdbstub: Add vector registers support 2024-07-19 10:40:04 +08:00
m68k-core.xml
m68k-fp.xml
microblaze-core.xml
microblaze-stack-protect.xml
power64-core.xml
power-altivec.xml
power-core.xml
power-fpu.xml
power-spe.xml
power-vsx.xml
riscv-32bit-cpu.xml
riscv-32bit-fpu.xml
riscv-32bit-virtual.xml
riscv-64bit-cpu.xml
riscv-64bit-fpu.xml
riscv-64bit-virtual.xml
rx-core.xml
s390-acr.xml
s390-cr.xml
s390-fpr.xml
s390-gs.xml
s390-virt-kvm.xml
s390-virt.xml
s390-vx.xml
s390x-core64.xml