qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH for-6.2 01/43] hw/core: Make do_unaligned_access available to


From: Richard Henderson
Subject: Re: [PATCH for-6.2 01/43] hw/core: Make do_unaligned_access available to user-only
Date: Thu, 29 Jul 2021 07:51:36 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/28/21 8:19 PM, Philippe Mathieu-Daudé wrote:
On 7/29/21 2:46 AM, Richard Henderson wrote:
We shouldn't be ignoring SIGBUS for user-only.
Move our existing TCGCPUOps hook out from CONFIG_SOFTMMU.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  include/hw/core/tcg-cpu-ops.h | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h
index eab27d0c03..513d6bfe72 100644
--- a/include/hw/core/tcg-cpu-ops.h
+++ b/include/hw/core/tcg-cpu-ops.h
@@ -60,6 +60,13 @@ struct TCGCPUOps {
      /** @debug_excp_handler: Callback for handling debug exceptions */
      void (*debug_excp_handler)(CPUState *cpu);
+ /**
+     * @do_unaligned_access: Callback for unaligned access handling
+     */
+    void (*do_unaligned_access)(CPUState *cpu, vaddr addr,
+                                MMUAccessType access_type,
+                                int mmu_idx, uintptr_t retaddr);

Shouldn't it be QEMU_NORETURN?


I think in system mode we're allowed to return, letting the unaligned access continue. But I'm not sure about that, and it may not even be used.

r~



reply via email to

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