mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
microblaze: Dont segfault when singlestepping first insn.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
This commit is contained in:
parent
b551ec04ca
commit
e1aa325409
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue