aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/cpu.h2
-rw-r--r--target-microblaze/op_helper.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 599938639a..ec2ca183d7 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -327,6 +327,8 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
*flags = env->iflags & IFLAGS_TB_MASK;
}
+#if !defined(CONFIG_USER_ONLY)
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int is_asi, int size);
#endif
+#endif
diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c
index 8a9cea2f27..be0c829735 100644
--- a/target-microblaze/op_helper.c
+++ b/target-microblaze/op_helper.c
@@ -245,7 +245,6 @@ void helper_mmu_write(uint32_t rn, uint32_t v)
{
mmu_write(env, rn, v);
}
-#endif
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int is_asi, int size)
@@ -282,3 +281,4 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
}
env = saved_env;
}
+#endif