Revision dffbe217
b/target-sparc/op_helper.c | ||
---|---|---|
3686 | 3686 |
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, |
3687 | 3687 |
int is_asi, int size) |
3688 | 3688 |
{ |
3689 |
#ifdef DEBUG_UNASSIGNED |
|
3690 | 3689 |
CPUState *saved_env; |
3691 | 3690 |
|
3692 | 3691 |
/* XXX: hack to restore env in all cases, even if not called from |
3693 | 3692 |
generated code */ |
3694 | 3693 |
saved_env = env; |
3695 | 3694 |
env = cpu_single_env; |
3695 |
|
|
3696 |
#ifdef DEBUG_UNASSIGNED |
|
3696 | 3697 |
printf("Unassigned mem access to " TARGET_FMT_plx " from " TARGET_FMT_lx |
3697 | 3698 |
"\n", addr, env->pc); |
3698 |
env = saved_env; |
|
3699 | 3699 |
#endif |
3700 |
|
|
3700 | 3701 |
if (is_exec) |
3701 | 3702 |
raise_exception(TT_CODE_ACCESS); |
3702 | 3703 |
else |
3703 | 3704 |
raise_exception(TT_DATA_ACCESS); |
3705 |
|
|
3706 |
env = saved_env; |
|
3704 | 3707 |
} |
3705 | 3708 |
#endif |
3706 | 3709 |
|
Also available in: Unified diff