dbg_rdi.h 3.2 KB

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