Message ID | 84ba6ace-e0bd-515a-5194-2e6704d22805@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index e327a35..3278d8a 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -753,14 +753,14 @@ static inline void cpu_get_invalid_tb_cpu_state(target_ulong *pc, target_ulong *cs_base, uint32_t *flags) { - *cs_base = -1; /* npc must be a multible of 4 */ + *flags = TB_FLAG_MMU_MASK; } static inline bool cpu_tb_cpu_state_is_invalidated(target_ulong pc, target_ulong cs_base, uint32_t flags) { - return cs_base == -1; + return flags == TB_FLAG_MMU_MASK; } static inline bool tb_fpu_enabled(int tb_flags)