PPC: Save/restore cr2, cr3 and cr4 when entering/leaving VM.

This commit is contained in:
Mike Pall
2011-08-10 21:54:03 +02:00
parent 5385809d30
commit d84207b8b6
3 changed files with 1138 additions and 1079 deletions

View File

@@ -100,13 +100,13 @@ enum {
#define CFRAME_SIZE 64
#define CFRAME_SHIFT_MULTRES 3
#elif LJ_TARGET_PPC
#define CFRAME_OFS_ERRF 28
#define CFRAME_OFS_NRES 24
#define CFRAME_OFS_PREV 20
#define CFRAME_OFS_L 16
#define CFRAME_OFS_PC 8
#define CFRAME_OFS_MULTRES 12
#define CFRAME_SIZE 256
#define CFRAME_OFS_ERRF 48
#define CFRAME_OFS_NRES 44
#define CFRAME_OFS_PREV 40
#define CFRAME_OFS_L 36
#define CFRAME_OFS_PC 32
#define CFRAME_OFS_MULTRES 28
#define CFRAME_SIZE 272
#define CFRAME_SHIFT_MULTRES 3
#elif LJ_TARGET_PPCSPE
#define CFRAME_OFS_ERRF 28