cpu_architecture.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2014 The Crashpad Authors. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_ARCHITECTURE_H_
  15. #define CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_ARCHITECTURE_H_
  16. namespace crashpad {
  17. //! \brief A system’s CPU architecture.
  18. //!
  19. //! This can be used to represent the CPU architecture of an entire system
  20. //! as in SystemSnapshot::CPUArchitecture(). It can also be used to represent
  21. //! the architecture of a CPUContext structure in its CPUContext::architecture
  22. //! field without reference to external data.
  23. enum CPUArchitecture {
  24. //! \brief The CPU architecture is unknown.
  25. kCPUArchitectureUnknown = 0,
  26. //! \brief 32-bit x86.
  27. kCPUArchitectureX86,
  28. //! \brief x86_64.
  29. kCPUArchitectureX86_64,
  30. //! \brief 32-bit ARM.
  31. kCPUArchitectureARM,
  32. //! \brief 64-bit ARM.
  33. kCPUArchitectureARM64,
  34. //! \brief 32-bit MIPSEL.
  35. kCPUArchitectureMIPSEL,
  36. //! \brief 64-bit MIPSEL.
  37. kCPUArchitectureMIPS64EL,
  38. //! \brief 32-bit RISCV.
  39. kCPUArchitectureRISCV,
  40. //! \brief 64-bit RISCV.
  41. kCPUArchitectureRISCV64
  42. };
  43. } // namespace crashpad
  44. #endif // CRASHPAD_SNAPSHOT_SNAPSHOT_CPU_ARCHITECTURE_H_