aboutsummaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-10-01 16:12:16 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-01 16:12:16 -0500
commitc227f0995e1722a1abccc28cadf0664266bd8043 (patch)
tree39e92c2f818e3e8144978740b914731613af0e40 /target-mips
parent99a0949b720a0936da2052cb9a46db04ffc6db29 (diff)
downloadqemu-c227f0995e1722a1abccc28cadf0664266bd8043.zip
qemu-c227f0995e1722a1abccc28cadf0664266bd8043.tar.gz
qemu-c227f0995e1722a1abccc28cadf0664266bd8043.tar.bz2
Revert "Get rid of _t suffix"
In the very least, a change like this requires discussion on the list. The naming convention is goofy and it causes a massive merge problem. Something like this _must_ be presented on the list first so people can provide input and cope with it. This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/cpu.h17
-rw-r--r--target-mips/helper.c6
-rw-r--r--target-mips/op_helper.c8
-rw-r--r--target-mips/translate.c4
-rw-r--r--target-mips/translate_init.c20
5 files changed, 28 insertions, 27 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index e7d30d1..c27738a 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -21,8 +21,8 @@ typedef unsigned int uint_fast16_t;
struct CPUMIPSState;
-typedef struct r4k_tlb a_r4k_tlb;
-struct r4k_tlb {
+typedef struct r4k_tlb_t r4k_tlb_t;
+struct r4k_tlb_t {
target_ulong VPN;
uint32_t PageMask;
uint_fast8_t ASID;
@@ -47,12 +47,13 @@ struct CPUMIPSTLBContext {
void (*helper_tlbr) (void);
union {
struct {
- a_r4k_tlb tlb[MIPS_TLB_MAX];
+ r4k_tlb_t tlb[MIPS_TLB_MAX];
} r4k;
} mmu;
};
-union fpr {
+typedef union fpr_t fpr_t;
+union fpr_t {
float64 fd; /* ieee double precision */
float32 fs[2];/* ieee single precision */
uint64_t d; /* binary double fixed-point */
@@ -70,7 +71,7 @@ union fpr {
typedef struct CPUMIPSFPUContext CPUMIPSFPUContext;
struct CPUMIPSFPUContext {
/* Floating point registers */
- union fpr fpr[32];
+ fpr_t fpr[32];
float_status fp_status;
/* fpu implementation/revision register (fir) */
uint32_t fcr0;
@@ -129,7 +130,7 @@ struct CPUMIPSMVPContext {
#define CP0MVPC1_PCP1 0
};
-typedef struct mips_def a_mips_def;
+typedef struct mips_def_t mips_def_t;
#define MIPS_SHADOW_SET_MAX 16
#define MIPS_TC_MAX 5
@@ -457,7 +458,7 @@ struct CPUMIPSState {
CPU_COMMON
- const a_mips_def *cpu_model;
+ const mips_def_t *cpu_model;
void *irq[8];
struct QEMUTimer *timer; /* Internal timer */
};
@@ -474,7 +475,7 @@ void r4k_helper_tlbp (void);
void r4k_helper_tlbr (void);
void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...));
-void do_unassigned_access(a_target_phys_addr addr, int is_write, int is_exec,
+void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int unused, int size);
#define cpu_init cpu_mips_init
diff --git a/target-mips/helper.c b/target-mips/helper.c
index abca444..7f659ae 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -69,7 +69,7 @@ int r4k_map_address (CPUState *env, target_ulong *physical, int *prot,
int i;
for (i = 0; i < env->tlb->tlb_in_use; i++) {
- a_r4k_tlb *tlb = &env->tlb->mmu.r4k.tlb[i];
+ r4k_tlb_t *tlb = &env->tlb->mmu.r4k.tlb[i];
/* 1k pages are not supported. */
target_ulong mask = tlb->PageMask | ~(TARGET_PAGE_MASK << 1);
target_ulong tag = address & ~mask;
@@ -201,7 +201,7 @@ static int get_physical_address (CPUState *env, target_ulong *physical,
}
#endif
-a_target_phys_addr cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
+target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
{
#if defined(CONFIG_USER_ONLY)
return addr;
@@ -564,7 +564,7 @@ void do_interrupt (CPUState *env)
void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra)
{
- a_r4k_tlb *tlb;
+ r4k_tlb_t *tlb;
target_ulong addr;
target_ulong end;
uint8_t ASID = env->CP0_EntryHi & 0xFF;
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index 17e6ed5..d3dab33 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -1508,7 +1508,7 @@ static void r4k_mips_tlb_flush_extra (CPUState *env, int first)
static void r4k_fill_tlb (int idx)
{
- a_r4k_tlb *tlb;
+ r4k_tlb_t *tlb;
/* XXX: detect conflicting TLBs and raise a MCHECK exception when needed */
tlb = &env->tlb->mmu.r4k.tlb[idx];
@@ -1554,7 +1554,7 @@ void r4k_helper_tlbwr (void)
void r4k_helper_tlbp (void)
{
- a_r4k_tlb *tlb;
+ r4k_tlb_t *tlb;
target_ulong mask;
target_ulong tag;
target_ulong VPN;
@@ -1596,7 +1596,7 @@ void r4k_helper_tlbp (void)
void r4k_helper_tlbr (void)
{
- a_r4k_tlb *tlb;
+ r4k_tlb_t *tlb;
uint8_t ASID;
int idx;
@@ -1846,7 +1846,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr)
env = saved_env;
}
-void do_unassigned_access(a_target_phys_addr addr, int is_write, int is_exec,
+void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int unused, int size)
{
if (is_exec)
diff --git a/target-mips/translate.c b/target-mips/translate.c
index d05fee9..58f483f 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -8451,7 +8451,7 @@ static void fpu_dump_state(CPUState *env, FILE *f,
(fp)->w[FP_ENDIAN_IDX], (fp)->d, (fp)->fd, \
(fp)->fs[FP_ENDIAN_IDX], (fp)->fs[!FP_ENDIAN_IDX]); \
else { \
- union fpr tmp; \
+ fpr_t tmp; \
tmp.w[FP_ENDIAN_IDX] = (fp)->w[FP_ENDIAN_IDX]; \
tmp.w[!FP_ENDIAN_IDX] = ((fp) + 1)->w[FP_ENDIAN_IDX]; \
fpu_fprintf(f, "w:%08x d:%016lx fd:%13g fs:%13g psu:%13g\n", \
@@ -8591,7 +8591,7 @@ static void mips_tcg_init(void)
CPUMIPSState *cpu_mips_init (const char *cpu_model)
{
CPUMIPSState *env;
- const a_mips_def *def;
+ const mips_def_t *def;
def = cpu_mips_find_by_name(cpu_model);
if (!def)
diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
index 7c8519a..eb35dba 100644
--- a/target-mips/translate_init.c
+++ b/target-mips/translate_init.c
@@ -61,7 +61,7 @@ enum mips_mmu_types {
MMU_TYPE_R8000
};
-struct mips_def {
+struct mips_def_t {
const char *name;
int32_t CP0_PRid;
int32_t CP0_Config0;
@@ -94,7 +94,7 @@ struct mips_def {
/*****************************************************************************/
/* MIPS CPU definitions */
-static const a_mips_def mips_defs[] =
+static const mips_def_t mips_defs[] =
{
{
.name = "4Kc",
@@ -416,7 +416,7 @@ static const a_mips_def mips_defs[] =
#endif
};
-static const a_mips_def *cpu_mips_find_by_name (const char *name)
+static const mips_def_t *cpu_mips_find_by_name (const char *name)
{
int i;
@@ -439,19 +439,19 @@ void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
}
#ifndef CONFIG_USER_ONLY
-static void no_mmu_init (CPUMIPSState *env, const a_mips_def *def)
+static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def)
{
env->tlb->nb_tlb = 1;
env->tlb->map_address = &no_mmu_map_address;
}
-static void fixed_mmu_init (CPUMIPSState *env, const a_mips_def *def)
+static void fixed_mmu_init (CPUMIPSState *env, const mips_def_t *def)
{
env->tlb->nb_tlb = 1;
env->tlb->map_address = &fixed_mmu_map_address;
}
-static void r4k_mmu_init (CPUMIPSState *env, const a_mips_def *def)
+static void r4k_mmu_init (CPUMIPSState *env, const mips_def_t *def)
{
env->tlb->nb_tlb = 1 + ((def->CP0_Config1 >> CP0C1_MMU) & 63);
env->tlb->map_address = &r4k_map_address;
@@ -461,7 +461,7 @@ static void r4k_mmu_init (CPUMIPSState *env, const a_mips_def *def)
env->tlb->helper_tlbr = r4k_helper_tlbr;
}
-static void mmu_init (CPUMIPSState *env, const a_mips_def *def)
+static void mmu_init (CPUMIPSState *env, const mips_def_t *def)
{
env->tlb = qemu_mallocz(sizeof(CPUMIPSTLBContext));
@@ -486,7 +486,7 @@ static void mmu_init (CPUMIPSState *env, const a_mips_def *def)
}
#endif /* CONFIG_USER_ONLY */
-static void fpu_init (CPUMIPSState *env, const a_mips_def *def)
+static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
{
int i;
@@ -504,7 +504,7 @@ static void fpu_init (CPUMIPSState *env, const a_mips_def *def)
#endif
}
-static void mvp_init (CPUMIPSState *env, const a_mips_def *def)
+static void mvp_init (CPUMIPSState *env, const mips_def_t *def)
{
env->mvp = qemu_mallocz(sizeof(CPUMIPSMVPContext));
@@ -531,7 +531,7 @@ static void mvp_init (CPUMIPSState *env, const a_mips_def *def)
(0x1 << CP0MVPC1_PCP1);
}
-static int cpu_mips_register (CPUMIPSState *env, const a_mips_def *def)
+static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)
{
env->CP0_PRid = def->CP0_PRid;
env->CP0_Config0 = def->CP0_Config0;