qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH v2 7/9] target/riscv/cpu: Restrict some sysemu-specific field


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 7/9] target/riscv/cpu: Restrict some sysemu-specific fields from CPUArchState
Date: Sat, 17 Dec 2022 19:00:28 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 17/12/22 18:29, Philippe Mathieu-Daudé wrote:
The 'hwaddr' type is only available / meaningful on system emulation.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  target/riscv/cpu.h | 17 ++++++++++-------
  1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 05fafebff7..71ea1bb411 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -370,7 +370,7 @@ struct CPUArchState {
      uint64_t menvcfg;
      target_ulong senvcfg;
      uint64_t henvcfg;
-#endif
+
      target_ulong cur_pmmask;
      target_ulong cur_pmbase;
@@ -388,6 +388,7 @@ struct CPUArchState {
      uint64_t kvm_timer_compare;
      uint64_t kvm_timer_state;
      uint64_t kvm_timer_frequency;
+#endif
  };

Sorry this patch is not complete, as various of these fields are
in use in common emulation code (so build fails on linux-user) :/



reply via email to

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