#ifndef XTENSA_COREBITS_H #define XTENSA_COREBITS_H /* * THIS FILE IS GENERATED -- DO NOT MODIFY BY HAND * * xtensa/corebits.h - Xtensa Special Register field positions and masks. * * (In previous releases, these were defined in specreg.h, a generated file. * This file is not generated, i.e. it is processor configuration independent.) */ /* EXCCAUSE register fields: */ #define EXCCAUSE_EXCCAUSE_SHIFT 0 #define EXCCAUSE_EXCCAUSE_MASK 0x3F /* Exception causes (mostly incomplete!): */ #define EXCCAUSE_ILLEGAL 0 #define EXCCAUSE_SYSCALL 1 #define EXCCAUSE_IFETCHERROR 2 #define EXCCAUSE_LOADSTOREERROR 3 #define EXCCAUSE_LEVEL1INTERRUPT 4 #define EXCCAUSE_ALLOCA 5 /* PS register fields: */ #define PS_WOE_SHIFT 18 #define PS_WOE_MASK 0x00040000 #define PS_WOE PS_WOE_MASK #define PS_CALLINC_SHIFT 16 #define PS_CALLINC_MASK 0x00030000 #define PS_CALLINC(n) (((n)&3)<