OSDN Git Service

target-sparc: add UltraSPARC T1 TLB #defines
authorArtyom Tarasenko <atar4qemu@gmail.com>
Fri, 10 Jun 2016 08:44:15 +0000 (10:44 +0200)
committerArtyom Tarasenko <atar4qemu@gmail.com>
Wed, 18 Jan 2017 21:03:44 +0000 (22:03 +0100)
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
target/sparc/cpu.h

index 4c4c159..f65d8b5 100644 (file)
@@ -336,6 +336,10 @@ enum {
 #define TTE_PGSIZE_UA2005(tte)     ((tte) & 7ULL)
 #define TTE_PA(tte)         ((tte) & 0x1ffffffe000ULL)
 
+/* UltraSPARC T1 specific */
+#define TLB_UST1_IS_REAL_BIT   (1ULL << 9)  /* Real translation entry */
+#define TLB_UST1_IS_SUN4V_BIT  (1ULL << 10) /* sun4u/sun4v TTE format switch */
+
 #define SFSR_NF_BIT         (1ULL << 24)   /* JPS1 NoFault */
 #define SFSR_TM_BIT         (1ULL << 15)   /* JPS1 TLB Miss */
 #define SFSR_FT_VA_IMMU_BIT (1ULL << 13)   /* USIIi VA out of range (IMMU) */