Revision e06fcd75 target-ppc/helper.c
b/target-ppc/helper.c | ||
---|---|---|
40 | 40 |
//#define FLUSH_ALL_TLBS |
41 | 41 |
|
42 | 42 |
/*****************************************************************************/ |
43 |
/* Exceptions processing */ |
|
44 |
|
|
45 |
void raise_exception_err (CPUState *env, int exception, int error_code) |
|
46 |
{ |
|
47 |
#if 0 |
|
48 |
printf("Raise exception %3x code : %d\n", exception, error_code); |
|
49 |
#endif |
|
50 |
env->exception_index = exception; |
|
51 |
env->error_code = error_code; |
|
52 |
cpu_loop_exit(); |
|
53 |
} |
|
54 |
|
|
55 |
void raise_exception (CPUState *env, int exception) |
|
56 |
{ |
|
57 |
helper_raise_exception_err(exception, 0); |
|
58 |
} |
|
59 |
|
|
60 |
/*****************************************************************************/ |
|
61 | 43 |
/* PowerPC MMU emulation */ |
62 | 44 |
|
63 | 45 |
#if defined(CONFIG_USER_ONLY) |
Also available in: Unified diff