]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/hppa/cpu.h
target/hppa: Introduce TYPE_HPPA64_CPU
[mirror_qemu.git] / target / hppa / cpu.h
index 08de89439321d5e2b5628c23937ed31e3743b307..0ac307e0e9ac440244809705f9d24ea76a569f32 100644 (file)
@@ -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