qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH v3 18/28] target/arm: Move common cpu code into cpu.c


From: Philippe Mathieu-Daudé
Subject: Re: [RFC PATCH v3 18/28] target/arm: Move common cpu code into cpu.c
Date: Tue, 17 Jan 2023 17:36:09 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 13/1/23 15:04, Fabiano Rosas wrote:
The cpu_tcg.c file about to be moved into the tcg directory. Move the
code that is needed for cpus that also work with KVM into cpu.c.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
  target/arm/cpu.c     | 76 +++++++++++++++++++++++++++++++++++++++++++
  target/arm/cpu_tcg.c | 77 --------------------------------------------
  2 files changed, 76 insertions(+), 77 deletions(-)

diff --git a/target/arm/cpu.c b/target/arm/cpu.c
[...]

TYPE_IDAU_INTERFACE is ARMv8-M specific, so TCG AFAIU.

+static const TypeInfo idau_interface_type_info = {
+    .name = TYPE_IDAU_INTERFACE,
+    .parent = TYPE_INTERFACE,
+    .class_size = sizeof(IDAUInterfaceClass),
+};
+
  static void arm_cpu_register_types(void)
  {
+    type_register_static(&idau_interface_type_info);
      type_register_static(&arm_cpu_type_info);
  }
diff --git a/target/arm/cpu_tcg.c b/target/arm/cpu_tcg.c

-static const TypeInfo idau_interface_type_info = {
-    .name = TYPE_IDAU_INTERFACE,
-    .parent = TYPE_INTERFACE,
-    .class_size = sizeof(IDAUInterfaceClass),
-};
-
  static void arm_tcg_cpu_register_types(void)
  {
      size_t i;
- type_register_static(&idau_interface_type_info);
      for (i = 0; i < ARRAY_SIZE(arm_tcg_cpus); ++i) {
          arm_cpu_register(&arm_tcg_cpus[i]);
      }




reply via email to

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