Revision 3cc62370 target-ppc/helper.c
b/target-ppc/helper.c | ||
---|---|---|
18 | 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 |
*/ |
20 | 20 |
#include "exec.h" |
21 |
#if defined (USE_OPEN_FIRMWARE) |
|
22 |
#include <time.h> |
|
23 |
#include "of.h" |
|
24 |
#endif |
|
25 | 21 |
|
26 | 22 |
//#define DEBUG_MMU |
27 | 23 |
//#define DEBUG_BATS |
... | ... | |
688 | 684 |
} |
689 | 685 |
/* Generate informations in save/restore registers */ |
690 | 686 |
switch (excp) { |
691 |
case EXCP_OFCALL: |
|
692 |
#if defined (USE_OPEN_FIRMWARE) |
|
693 |
env->gpr[3] = OF_client_entry((void *)env->gpr[3]); |
|
694 |
#endif |
|
695 |
return; |
|
696 |
case EXCP_RTASCALL: |
|
697 |
#if defined (USE_OPEN_FIRMWARE) |
|
698 |
printf("RTAS call !\n"); |
|
699 |
env->gpr[3] = RTAS_entry((void *)env->gpr[3]); |
|
700 |
printf("RTAS call done\n"); |
|
701 |
#endif |
|
702 |
return; |
|
703 | 687 |
case EXCP_NONE: |
704 | 688 |
/* Do nothing */ |
705 | 689 |
#if defined (DEBUG_EXCEPTIONS) |
Also available in: Unified diff