qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call
@ 2024-08-02  8:37 Akihiko Odaki
  2024-08-02  8:44 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Akihiko Odaki @ 2024-08-02  8:37 UTC (permalink / raw)
  To: Alexander Graf, Peter Maydell
  Cc: qemu-arm, qemu-devel, Richard Henderson, Akihiko Odaki

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an
exception") changed val from uint64_t to a pointer to uint64_t in
hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Fixes: 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
 target/arm/hvf/hvf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index c1496ad5be9b..ace83671b594 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -1280,7 +1280,7 @@ static int hvf_sysreg_read(CPUState *cpu, uint32_t reg, uint64_t *val)
     case SYSREG_ICC_SRE_EL1:
     case SYSREG_ICC_CTLR_EL1:
         /* Call the TCG sysreg handler. This is only safe for GICv3 regs. */
-        if (hvf_sysreg_read_cp(cpu, reg, &val)) {
+        if (hvf_sysreg_read_cp(cpu, reg, val)) {
             return 0;
         }
         break;

---
base-commit: 31669121a01a14732f57c49400bc239cf9fd505f
change-id: 20240802-hvf-40971c54eccf

Best regards,
-- 
Akihiko Odaki <akihiko.odaki@daynix.com>



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call
  2024-08-02  8:37 [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call Akihiko Odaki
@ 2024-08-02  8:44 ` Peter Maydell
  2024-08-02  9:50   ` Richard Henderson
  2024-08-02 15:53 ` Philippe Mathieu-Daudé
  2024-08-02 23:30 ` Richard Henderson
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2024-08-02  8:44 UTC (permalink / raw)
  To: Akihiko Odaki; +Cc: Alexander Graf, qemu-arm, qemu-devel, Richard Henderson

On Fri, 2 Aug 2024 at 09:37, Akihiko Odaki <akihiko.odaki@daynix.com> wrote:
>
> Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an
> exception") changed val from uint64_t to a pointer to uint64_t in
> hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.
>
> Fixes: 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
> Reported-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>

Richard: I'm not going to be back at work til next Thursday:
feel free to grab this and apply directly to fix the cirrus
build.

thanks
-- PMM


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call
  2024-08-02  8:44 ` Peter Maydell
@ 2024-08-02  9:50   ` Richard Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 2024-08-02  9:50 UTC (permalink / raw)
  To: Peter Maydell, Akihiko Odaki; +Cc: Alexander Graf, qemu-arm, qemu-devel

On 8/2/24 18:44, Peter Maydell wrote:
> On Fri, 2 Aug 2024 at 09:37, Akihiko Odaki <akihiko.odaki@daynix.com> wrote:
>>
>> Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an
>> exception") changed val from uint64_t to a pointer to uint64_t in
>> hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.
>>
>> Fixes: 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
>> Reported-by: Richard Henderson <richard.henderson@linaro.org>
>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> 
> Richard: I'm not going to be back at work til next Thursday:
> feel free to grab this and apply directly to fix the cirrus
> build.

Will do, thanks for the heads up.


r~


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call
  2024-08-02  8:37 [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call Akihiko Odaki
  2024-08-02  8:44 ` Peter Maydell
@ 2024-08-02 15:53 ` Philippe Mathieu-Daudé
  2024-08-02 23:30 ` Richard Henderson
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-08-02 15:53 UTC (permalink / raw)
  To: Akihiko Odaki, Alexander Graf, Peter Maydell
  Cc: qemu-arm, qemu-devel, Richard Henderson

On 2/8/24 10:37, Akihiko Odaki wrote:
> Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an
> exception") changed val from uint64_t to a pointer to uint64_t in
> hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.
> 
> Fixes: 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")

Not 05b8d7249109 but e9e640148c.

Fixes: e9e640148c ("hvf: arm: Raise an exception for sysreg by default")

Updating description:
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

> Reported-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
>   target/arm/hvf/hvf.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call
  2024-08-02  8:37 [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call Akihiko Odaki
  2024-08-02  8:44 ` Peter Maydell
  2024-08-02 15:53 ` Philippe Mathieu-Daudé
@ 2024-08-02 23:30 ` Richard Henderson
  2 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 2024-08-02 23:30 UTC (permalink / raw)
  To: Akihiko Odaki, Alexander Graf, Peter Maydell; +Cc: qemu-arm, qemu-devel

On 8/2/24 18:37, Akihiko Odaki wrote:
> Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an
> exception") changed val from uint64_t to a pointer to uint64_t in
> hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.
> 
> Fixes: 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
> Reported-by: Richard Henderson<richard.henderson@linaro.org>
> Signed-off-by: Akihiko Odaki<akihiko.odaki@daynix.com>
> ---
>   target/arm/hvf/hvf.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.


r~


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-02 23:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  8:37 [PATCH] hvf: arm: Fix hvf_sysreg_read_cp() call Akihiko Odaki
2024-08-02  8:44 ` Peter Maydell
2024-08-02  9:50   ` Richard Henderson
2024-08-02 15:53 ` Philippe Mathieu-Daudé
2024-08-02 23:30 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).