cpu.h (d8276573da58e8ce78dab8c46dd660efd664bcb7) | cpu.h (74433bf083b0766aba81534f92de13194f23ff3e) |
---|---|
1#ifndef SPARC_CPU_H 2#define SPARC_CPU_H 3 4#include "qemu-common.h" 5#include "qemu/bswap.h" 6#include "cpu-qom.h" | 1#ifndef SPARC_CPU_H 2#define SPARC_CPU_H 3 4#include "qemu-common.h" 5#include "qemu/bswap.h" 6#include "cpu-qom.h" |
7#include "exec/cpu-defs.h" |
|
7 8#define ALIGNED_ONLY 9 10#if !defined(TARGET_SPARC64) | 8 9#define ALIGNED_ONLY 10 11#if !defined(TARGET_SPARC64) |
11#define TARGET_LONG_BITS 32 | |
12#define TARGET_DPREGS 16 | 12#define TARGET_DPREGS 16 |
13#define TARGET_PAGE_BITS 12 /* 4k */ 14#define TARGET_PHYS_ADDR_SPACE_BITS 36 15#define TARGET_VIRT_ADDR_SPACE_BITS 32 | |
16#else | 13#else |
17#define TARGET_LONG_BITS 64 | |
18#define TARGET_DPREGS 32 | 14#define TARGET_DPREGS 32 |
19#define TARGET_PAGE_BITS 13 /* 8k */ 20#define TARGET_PHYS_ADDR_SPACE_BITS 41 21# ifdef TARGET_ABI32 22# define TARGET_VIRT_ADDR_SPACE_BITS 32 23# else 24# define TARGET_VIRT_ADDR_SPACE_BITS 44 25# endif | |
26#endif 27 28#define CPUArchState struct CPUSPARCState 29 | 15#endif 16 17#define CPUArchState struct CPUSPARCState 18 |
30#include "exec/cpu-defs.h" 31 | |
32/*#define EXCP_INTERRUPT 0x100*/ 33 34/* trap definitions */ 35#ifndef TARGET_SPARC64 36#define TT_TFAULT 0x01 37#define TT_ILL_INSN 0x02 38#define TT_PRIV_INSN 0x03 39#define TT_NFPU_INSN 0x04 --- 180 unchanged lines hidden (view full) --- 220#define PG_ACCESSED_MASK (1 << PG_ACCESSED_BIT) 221#define PG_MODIFIED_MASK (1 << PG_MODIFIED_BIT) 222#define PG_CACHE_MASK (1 << PG_CACHE_BIT) 223 224/* 3 <= NWINDOWS <= 32. */ 225#define MIN_NWINDOWS 3 226#define MAX_NWINDOWS 32 227 | 19/*#define EXCP_INTERRUPT 0x100*/ 20 21/* trap definitions */ 22#ifndef TARGET_SPARC64 23#define TT_TFAULT 0x01 24#define TT_ILL_INSN 0x02 25#define TT_PRIV_INSN 0x03 26#define TT_NFPU_INSN 0x04 --- 180 unchanged lines hidden (view full) --- 207#define PG_ACCESSED_MASK (1 << PG_ACCESSED_BIT) 208#define PG_MODIFIED_MASK (1 << PG_MODIFIED_BIT) 209#define PG_CACHE_MASK (1 << PG_CACHE_BIT) 210 211/* 3 <= NWINDOWS <= 32. */ 212#define MIN_NWINDOWS 3 213#define MAX_NWINDOWS 32 214 |
228#if !defined(TARGET_SPARC64) 229#define NB_MMU_MODES 3 230#else 231#define NB_MMU_MODES 6 | 215#ifdef TARGET_SPARC64 |
232typedef struct trap_state { 233 uint64_t tpc; 234 uint64_t tnpc; 235 uint64_t tstate; 236 uint32_t tt; 237} trap_state; 238#endif 239#define TARGET_INSN_START_EXTRA_WORDS 1 --- 581 unchanged lines hidden --- | 216typedef struct trap_state { 217 uint64_t tpc; 218 uint64_t tnpc; 219 uint64_t tstate; 220 uint32_t tt; 221} trap_state; 222#endif 223#define TARGET_INSN_START_EXTRA_WORDS 1 --- 581 unchanged lines hidden --- |