op_helper.c (0a22f8cf3ec1716865d635688fbfb31402c0ba7a) op_helper.c (f0f7e7f7b284f536389a3c5b67de681055325317)
1/*
2 * Microblaze helper routines.
3 *
4 * Copyright (c) 2009 Edgar E. Iglesias <edgar.iglesias@gmail.com>.
5 * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

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

471 env->sregs[SR_EAR] = addr;
472 env->sregs[SR_ESR] = ESR_EC_STACKPROT;
473 helper_raise_exception(env, EXCP_HW_EXCP);
474 }
475}
476
477#if !defined(CONFIG_USER_ONLY)
478/* Writes/reads to the MMU's special regs end up here. */
1/*
2 * Microblaze helper routines.
3 *
4 * Copyright (c) 2009 Edgar E. Iglesias <edgar.iglesias@gmail.com>.
5 * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public

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

471 env->sregs[SR_EAR] = addr;
472 env->sregs[SR_ESR] = ESR_EC_STACKPROT;
473 helper_raise_exception(env, EXCP_HW_EXCP);
474 }
475}
476
477#if !defined(CONFIG_USER_ONLY)
478/* Writes/reads to the MMU's special regs end up here. */
479uint32_t helper_mmu_read(CPUMBState *env, uint32_t rn)
479uint32_t helper_mmu_read(CPUMBState *env, uint32_t ext, uint32_t rn)
480{
480{
481 return mmu_read(env, rn);
481 return mmu_read(env, ext, rn);
482}
483
482}
483
484void helper_mmu_write(CPUMBState *env, uint32_t rn, uint32_t v)
484void helper_mmu_write(CPUMBState *env, uint32_t ext, uint32_t rn, uint32_t v)
485{
485{
486 mmu_write(env, rn, v);
486 mmu_write(env, ext, rn, v);
487}
488
489void mb_cpu_unassigned_access(CPUState *cs, hwaddr addr,
490 bool is_write, bool is_exec, int is_asi,
491 unsigned size)
492{
493 MicroBlazeCPU *cpu;
494 CPUMBState *env;

--- 26 unchanged lines hidden ---
487}
488
489void mb_cpu_unassigned_access(CPUState *cs, hwaddr addr,
490 bool is_write, bool is_exec, int is_asi,
491 unsigned size)
492{
493 MicroBlazeCPU *cpu;
494 CPUMBState *env;

--- 26 unchanged lines hidden ---