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 <faro...@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