aboutsummaryrefslogtreecommitdiffstats
path: root/target-microblaze
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@petalogix.com>2010-02-20 14:03:14 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-02-20 14:03:14 +0100
commite1aa325409baeefad4f214ab8c34fb21968bdb2e (patch)
treed886813f4b8de5299fb7c57710de1849065a0abe /target-microblaze
parentb551ec04ca45d1925417dd2ec7c1b7f115c84f1d (diff)
microblaze: Dont segfault when singlestepping first insn.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/op_helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c
index af89dcfa6..8a9cea2f2 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;