aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeif Lindholm <leif@nuviainc.com>2021-03-10 13:23:24 +0000
committerLeif Lindholm <leif@nuviainc.com>2021-04-13 12:31:40 +0100
commit5d764e05e424bc4a82bbd27cf145122e729660b0 (patch)
treea214e40375445d6407bcf788b50ca58dbf609852 /include
parent103ee1b1c389c02a9c0f3a0c44749412dcae8be6 (diff)
downloadtrusted-firmware-a-5d764e05e424bc4a82bbd27cf145122e729660b0.tar.gz
Add support for QEMU "max" CPU
Enable basic support for QEMU "max" CPU. The "max" CPU does not attampt to emulate any specific CPU, but rather just enables all the functions emulated by QEMU. Change-Id: I69c212932ef61433509662d0fefbabb1e9e71cf2 Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Diffstat (limited to 'include')
-rw-r--r--include/lib/cpus/aarch64/qemu_max.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/lib/cpus/aarch64/qemu_max.h b/include/lib/cpus/aarch64/qemu_max.h
new file mode 100644
index 0000000000..14da170398
--- /dev/null
+++ b/include/lib/cpus/aarch64/qemu_max.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2014-2021, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef QEMU_MAX_H
+#define QEMU_MAX_H
+
+#include <lib/utils_def.h>
+
+/*
+ * QEMU MAX midr for revision 0
+ * 00 - Reserved for software use
+ * 0 - Variant
+ * F - Architectural features identified in ID_* registers
+ * 051 - 'Q', in a 12-bit field.
+ * 0 - Revision
+ */
+#define QEMU_MAX_MIDR U(0x000F0510)
+
+#endif /* QEMU_MAX_H */