]> www.infradead.org Git - qemu-nvme.git/commit
linux-user/aarch64: Move sve record checks into restore
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 8 Jul 2022 15:15:34 +0000 (20:45 +0530)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 11 Jul 2022 12:43:51 +0000 (13:43 +0100)
commitd3b4f7170f7cb0987b83f70e15bfdc13e820d56d
tree4c3efd211dc5fae5c52ea8c364616c084fbd3a88
parent8e5e19ee4193acfe17ce43e708c79211c11f5779
linux-user/aarch64: Move sve record checks into restore

Move the checks out of the parsing loop and into the
restore function.  This more closely mirrors the code
structure in the kernel, and is slightly clearer.

Reject rather than silently skip incorrect VL and SVE record sizes,
bringing our checks in to line with those the kernel does.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220708151540.18136-40-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/aarch64/signal.c