qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 05/21] hvf: arm: Raise an exception for sysreg by default


From: Akihiko Odaki
Subject: Re: [PULL 05/21] hvf: arm: Raise an exception for sysreg by default
Date: Fri, 2 Aug 2024 17:41:36 +0900
User-agent: Mozilla Thunderbird

On 2024/08/02 16:51, Richard Henderson wrote:
On 7/30/24 19:40, Peter Maydell wrote:
From: Akihiko Odaki <akihiko.odaki@daynix.com>

Any sysreg access results in an exception unless defined otherwise so
we should raise an exception by default.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
  target/arm/hvf/hvf.c | 174 +++++++++++++++++++++----------------------
  1 file changed, 85 insertions(+), 89 deletions(-)


This patch fails to compile:

https://gitlab.com/qemu-project/qemu/-/jobs/7489527235

../target/arm/hvf/hvf.c:1283:42: error: incompatible pointer types passing 'uint64_t **' (aka 'unsigned long long **') to parameter of type 'uint64_t *' (aka 'unsigned long long *'); remove & [-Werror,-Wincompatible-pointer-types]
         if (hvf_sysreg_read_cp(cpu, reg, &val)) {
                                          ^~~~
../target/arm/hvf/hvf.c:1175:71: note: passing argument to parameter 'val' here
static bool hvf_sysreg_read_cp(CPUState *cpu, uint32_t reg, uint64_t *val)
                                                                       ^
1 error generated.

This snuck in while our Cirrus build minutes were exhausted, but it suggests that the patch was never tested at all.

I have just submitted a fix. I'm sorry for causing a mess.

This is a problem in my workflow. I wrote the code on Linux, tested and fixed it on macOS. However I forgot to synchronize the code between macOS and Linux before sending it on Linux.

Regards,
Akihiko Odaki



reply via email to

[Prev in Thread] Current Thread [Next in Thread]