]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add missing raw register read in aarch64_sme_pseudo_register_write
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Dec 2023 16:27:33 +0000 (11:27 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 16:04:49 +0000 (16:04 +0000)
commit06f02beb8fae22b079ed7c5360c17b3670cbb291
treee8efeccf6ac60cb3a13e547997cf6ff3661c5ac4
parent246179eaf681faeba6f49f3cd45b0857a6b42710
gdb: add missing raw register read in aarch64_sme_pseudo_register_write

It seems like the intention here is to read the contents of the ZA
register and only write part of it.  However, there's no actual read of
the ZA register, so it looks like we'll write uninitialized bytes to the
target, for the portion of the raw register where we don't write the
pseudo register.  Add a call to raw_read to fix this.

I don't know how to test this though.

Change-Id: I7548240bd4324f6a3b729a1ebf7502fae5a46e9e
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
Approved-by: Luis Machado <luis.machado@arm.com>
gdb/aarch64-tdep.c