1 /* dbg_rdi.h -- ARMulator RDI interface: ARM6 Instruction Emulator. 2 Copyright (C) 1994 Advanced RISC Machines Ltd. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 3 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, see <http://www.gnu.org/licenses/>. */ 16 17 #ifndef dbg_rdi__h 18 #define dbg_rdi__h 19 20 /***************************************************************************\ 21 * Error Codes * 22 \***************************************************************************/ 23 24 #define RDIError_NoError 0 25 26 #define RDIError_Reset 1 27 #define RDIError_UndefinedInstruction 2 28 #define RDIError_SoftwareInterrupt 3 29 #define RDIError_PrefetchAbort 4 30 #define RDIError_DataAbort 5 31 #define RDIError_AddressException 6 32 #define RDIError_IRQ 7 33 #define RDIError_FIQ 8 34 #define RDIError_Error 9 35 #define RDIError_BranchThrough0 10 36 37 #define RDIError_NotInitialised 128 38 #define RDIError_UnableToInitialise 129 39 #define RDIError_WrongByteSex 130 40 #define RDIError_UnableToTerminate 131 41 #define RDIError_BadInstruction 132 42 #define RDIError_IllegalInstruction 133 43 #define RDIError_BadCPUStateSetting 134 44 #define RDIError_UnknownCoPro 135 45 #define RDIError_UnknownCoProState 136 46 #define RDIError_BadCoProState 137 47 #define RDIError_BadPointType 138 48 #define RDIError_UnimplementedType 139 49 #define RDIError_BadPointSize 140 50 #define RDIError_UnimplementedSize 141 51 #define RDIError_NoMorePoints 142 52 #define RDIError_BreakpointReached 143 53 #define RDIError_WatchpointAccessed 144 54 #define RDIError_NoSuchPoint 145 55 #define RDIError_ProgramFinishedInStep 146 56 #define RDIError_UserInterrupt 147 57 #define RDIError_CantSetPoint 148 58 #define RDIError_IncompatibleRDILevels 149 59 60 #define RDIError_CantLoadConfig 150 61 #define RDIError_BadConfigData 151 62 #define RDIError_NoSuchConfig 152 63 #define RDIError_BufferFull 153 64 #define RDIError_OutOfStore 154 65 #define RDIError_NotInDownload 155 66 #define RDIError_PointInUse 156 67 #define RDIError_BadImageFormat 157 68 #define RDIError_TargetRunning 158 69 70 #define RDIError_LittleEndian 240 71 #define RDIError_BigEndian 241 72 #define RDIError_SoftInitialiseError 242 73 74 #define RDIError_InsufficientPrivilege 253 75 #define RDIError_UnimplementedMessage 254 76 #define RDIError_UndefinedMessage 255 77 78 #endif 79 80 extern unsigned int swi_mask; 81 82 #define SWI_MASK_DEMON (1 << 0) 83 #define SWI_MASK_ANGEL (1 << 1) 84 #define SWI_MASK_REDBOOT (1 << 2) 85