cpu.h (e412e9973a49e9e79bc733438fe2b637c11b6e14) cpu.h (5a165e2615736a60acce94fbd4e66eda5ba92268)
1#ifndef SPARC_CPU_H
2#define SPARC_CPU_H
3
4#include "qemu/bswap.h"
5#include "cpu-qom.h"
6#include "exec/cpu-defs.h"
7#include "qemu/cpu-float.h"
8

--- 730 unchanged lines hidden (view full) ---

739trap_state* cpu_tsptr(CPUSPARCState* env);
740#endif
741
742#define TB_FLAG_MMU_MASK 7
743#define TB_FLAG_FPU_ENABLED (1 << 4)
744#define TB_FLAG_AM_ENABLED (1 << 5)
745#define TB_FLAG_SUPER (1 << 6)
746#define TB_FLAG_HYPER (1 << 7)
1#ifndef SPARC_CPU_H
2#define SPARC_CPU_H
3
4#include "qemu/bswap.h"
5#include "cpu-qom.h"
6#include "exec/cpu-defs.h"
7#include "qemu/cpu-float.h"
8

--- 730 unchanged lines hidden (view full) ---

739trap_state* cpu_tsptr(CPUSPARCState* env);
740#endif
741
742#define TB_FLAG_MMU_MASK 7
743#define TB_FLAG_FPU_ENABLED (1 << 4)
744#define TB_FLAG_AM_ENABLED (1 << 5)
745#define TB_FLAG_SUPER (1 << 6)
746#define TB_FLAG_HYPER (1 << 7)
747#define TB_FLAG_FSR_QNE (1 << 8)
747#define TB_FLAG_ASI_SHIFT 24
748
749static inline void cpu_get_tb_cpu_state(CPUSPARCState *env, vaddr *pc,
750 uint64_t *cs_base, uint32_t *pflags)
751{
752 uint32_t flags;
753 *pc = env->pc;
754 *cs_base = env->npc;

--- 15 unchanged lines hidden (view full) ---

770 if ((env->pstate & PS_PEF) && (env->fprs & FPRS_FEF)) {
771 flags |= TB_FLAG_FPU_ENABLED;
772 }
773 flags |= env->asi << TB_FLAG_ASI_SHIFT;
774#else
775 if (env->psref) {
776 flags |= TB_FLAG_FPU_ENABLED;
777 }
748#define TB_FLAG_ASI_SHIFT 24
749
750static inline void cpu_get_tb_cpu_state(CPUSPARCState *env, vaddr *pc,
751 uint64_t *cs_base, uint32_t *pflags)
752{
753 uint32_t flags;
754 *pc = env->pc;
755 *cs_base = env->npc;

--- 15 unchanged lines hidden (view full) ---

771 if ((env->pstate & PS_PEF) && (env->fprs & FPRS_FEF)) {
772 flags |= TB_FLAG_FPU_ENABLED;
773 }
774 flags |= env->asi << TB_FLAG_ASI_SHIFT;
775#else
776 if (env->psref) {
777 flags |= TB_FLAG_FPU_ENABLED;
778 }
778#endif
779#ifndef CONFIG_USER_ONLY
780 if (env->fsr_qne) {
781 flags |= TB_FLAG_FSR_QNE;
782 }
783#endif /* !CONFIG_USER_ONLY */
784#endif /* TARGET_SPARC64 */
779 *pflags = flags;
780}
781
782static inline bool tb_fpu_enabled(int tb_flags)
783{
784#if defined(CONFIG_USER_ONLY)
785 return true;
786#else

--- 34 unchanged lines hidden ---
785 *pflags = flags;
786}
787
788static inline bool tb_fpu_enabled(int tb_flags)
789{
790#if defined(CONFIG_USER_ONLY)
791 return true;
792#else

--- 34 unchanged lines hidden ---