Skip to content

Commit

Permalink
CRIS: cris_mmu_result_t -> cris_mmu_result
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
  • Loading branch information
edgarigl committed Apr 25, 2009
1 parent ef28c4b commit 2fa73ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions target-cris/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void cris_shift_ccs(CPUState *env)
int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
int mmu_idx, int is_softmmu)
{
struct cris_mmu_result_t res;
struct cris_mmu_result res;
int prot, miss;
int r = -1;
target_ulong phy;
Expand Down Expand Up @@ -191,7 +191,7 @@ void do_interrupt(CPUState *env)
target_phys_addr_t cpu_get_phys_page_debug(CPUState * env, target_ulong addr)
{
uint32_t phy = addr;
struct cris_mmu_result_t res;
struct cris_mmu_result res;
int miss;
miss = cris_mmu_translate(&res, env, addr, 0, 0);
if (!miss)
Expand Down
4 changes: 2 additions & 2 deletions target-cris/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void dump_tlb(CPUState *env, int mmu)
#endif

/* rw 0 = read, 1 = write, 2 = exec. */
static int cris_mmu_translate_page(struct cris_mmu_result_t *res,
static int cris_mmu_translate_page(struct cris_mmu_result *res,
CPUState *env, uint32_t vaddr,
int rw, int usermode)
{
Expand Down Expand Up @@ -324,7 +324,7 @@ void cris_mmu_flush_pid(CPUState *env, uint32_t pid)
}
}

int cris_mmu_translate(struct cris_mmu_result_t *res,
int cris_mmu_translate(struct cris_mmu_result *res,
CPUState *env, uint32_t vaddr,
int rw, int mmu_idx)
{
Expand Down
4 changes: 2 additions & 2 deletions target-cris/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define CRIS_MMU_ERR_WRITE 2
#define CRIS_MMU_ERR_FLUSH 3

struct cris_mmu_result_t
struct cris_mmu_result
{
uint32_t phy;
int prot;
Expand All @@ -12,6 +12,6 @@ struct cris_mmu_result_t

void cris_mmu_init(CPUState *env);
void cris_mmu_flush_pid(CPUState *env, uint32_t pid);
int cris_mmu_translate(struct cris_mmu_result_t *res,
int cris_mmu_translate(struct cris_mmu_result *res,
CPUState *env, uint32_t vaddr,
int rw, int mmu_idx);

0 comments on commit 2fa73ec

Please sign in to comment.