mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target/sparc: Add FSR_QNE to tb_flags
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Carl Hauser <chauser@pullman.com>
This commit is contained in:
parent
c35c8d4d1a
commit
5a165e2615
2 changed files with 14 additions and 4 deletions
|
@ -744,6 +744,7 @@ trap_state* cpu_tsptr(CPUSPARCState* env);
|
|||
#define TB_FLAG_AM_ENABLED (1 << 5)
|
||||
#define TB_FLAG_SUPER (1 << 6)
|
||||
#define TB_FLAG_HYPER (1 << 7)
|
||||
#define TB_FLAG_FSR_QNE (1 << 8)
|
||||
#define TB_FLAG_ASI_SHIFT 24
|
||||
|
||||
static inline void cpu_get_tb_cpu_state(CPUSPARCState *env, vaddr *pc,
|
||||
|
@ -775,7 +776,12 @@ static inline void cpu_get_tb_cpu_state(CPUSPARCState *env, vaddr *pc,
|
|||
if (env->psref) {
|
||||
flags |= TB_FLAG_FPU_ENABLED;
|
||||
}
|
||||
#endif
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
if (env->fsr_qne) {
|
||||
flags |= TB_FLAG_FSR_QNE;
|
||||
}
|
||||
#endif /* !CONFIG_USER_ONLY */
|
||||
#endif /* TARGET_SPARC64 */
|
||||
*pflags = flags;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue