qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH v16 79/99] target/arm: tcg: restrict ZCR cpregs to TARGET_AAR


From: Richard Henderson
Subject: Re: [PATCH v16 79/99] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64
Date: Sat, 5 Jun 2021 13:59:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/4/21 8:52 AM, Alex Bennée wrote:
From: Claudio Fontana<cfontana@suse.de>

restrict zcr_el1, zcr_el2, zcr_no_el2, zcr_el3 reginfo,
and the related SVE functions to TARGET_AARCH64.

Signed-off-by: Claudio Fontana<cfontana@suse.de>
Reviewed-by: Richard Henderson<richard.henderson@linaro.org>
Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
---
  target/arm/tcg/cpregs.c | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/target/arm/tcg/cpregs.c b/target/arm/tcg/cpregs.c
index 8422da4335..56d56f7f81 100644
--- a/target/arm/tcg/cpregs.c
+++ b/target/arm/tcg/cpregs.c
@@ -5791,6 +5791,8 @@ static const ARMCPRegInfo debug_lpae_cp_reginfo[] = {
      REGINFO_SENTINEL
  };
+#ifdef TARGET_AARCH64
+
  static void zcr_write(CPUARMState *env, const ARMCPRegInfo *ri,
                        uint64_t value)
  {
@@ -5843,6 +5845,8 @@ static const ARMCPRegInfo zcr_el3_reginfo = {
      .writefn = zcr_write, .raw_writefn = raw_write
  };
+#endif /* TARGET_AARCH64 */
+

Given that tcg/cpregs.c is > 7k lines, I wouldn't mind splitting the file on that principal. But just sprinking ifdefs is not on.


r~



reply via email to

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