aboutsummaryrefslogtreecommitdiff
path: root/target/hppa/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-09-17 15:31:47 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-11-06 18:49:33 -0800
commitbd6243a33fed93844ea24d77ed62d35f13d644e7 (patch)
tree4ee61a1891f09341163ee03d2b6fe5f7b2de3551 /target/hppa/cpu.h
parentd781cb7798e41141f377784257e27f615041603d (diff)
downloadqemu-bd6243a33fed93844ea24d77ed62d35f13d644e7.zip
qemu-bd6243a33fed93844ea24d77ed62d35f13d644e7.tar.gz
qemu-bd6243a33fed93844ea24d77ed62d35f13d644e7.tar.bz2
target/hppa: Introduce TYPE_HPPA64_CPU
Prepare for the qemu binary supporting both pa10 and pa20 at the same time. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa/cpu.h')
-rw-r--r--target/hppa/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h
index 08de894..0ac307e 100644
--- a/target/hppa/cpu.h
+++ b/target/hppa/cpu.h
@@ -272,6 +272,11 @@ struct ArchCPU {
#include "exec/cpu-all.h"
+static inline bool hppa_is_pa20(CPUHPPAState *env)
+{
+ return object_dynamic_cast(OBJECT(env_cpu(env)), TYPE_HPPA64_CPU) != NULL;
+}
+
static inline int cpu_mmu_index(CPUHPPAState *env, bool ifetch)
{
#ifdef CONFIG_USER_ONLY