Add cpu-models-stub.c, which will be required to add QMP support.

Signed-off-by: Khushit Shah <[email protected]>
---
 target/arm/cpu-models-stub.c | 13 +++++++++++++
 target/arm/meson.build       |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 target/arm/cpu-models-stub.c

diff --git a/target/arm/cpu-models-stub.c b/target/arm/cpu-models-stub.c
new file mode 100644
index 0000000000..48f712d648
--- /dev/null
+++ b/target/arm/cpu-models-stub.c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * ARM named CPU model stubs.
+ */
+#include "qemu/osdep.h"
+#include "cpu.h"
+#include "cpu-models.h"
+
+
+const ArmNamedCpuModel *arm_find_model(const char *name)
+{
+    return NULL;
+}
diff --git a/target/arm/meson.build b/target/arm/meson.build
index dd28146c52..5c056fc440 100644
--- a/target/arm/meson.build
+++ b/target/arm/meson.build
@@ -42,6 +42,7 @@ arm_stubs_ss.add(files(
   'gicv5-stubs.c',
   'kvm-stub.c',
   'tcg-stubs.c',
+  'cpu-models-stub.c'
 ))
 arm_user_ss.add(files(
   'el2-stubs.c',
-- 
2.52.0


Reply via email to