From e1aa325409baeefad4f214ab8c34fb21968bdb2e Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Sat, 20 Feb 2010 14:03:14 +0100 Subject: [PATCH] microblaze: Dont segfault when singlestepping first insn. Signed-off-by: Edgar E. Iglesias --- target-microblaze/op_helper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c index af89dcfa69..8a9cea2f27 100644 --- a/target-microblaze/op_helper.c +++ b/target-microblaze/op_helper.c @@ -251,6 +251,12 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, int is_asi, int size) { CPUState *saved_env; + + if (!cpu_single_env) { + /* XXX: ??? */ + return; + } + /* XXX: hack to restore env in all cases, even if not called from generated code */ saved_env = env; -- GitLab