1 //===-- RegisterInfoPOSIX_arm.h ---------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERINFOPOSIX_ARM_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERINFOPOSIX_ARM_H
12 #include "RegisterInfoAndSetInterface.h"
13 #include "lldb/Target/RegisterContext.h"
14 #include "lldb/lldb-private.h"
16 class RegisterInfoPOSIX_arm
: public lldb_private::RegisterInfoAndSetInterface
{
18 enum { GPRegSet
= 0, FPRegSet
};
21 uint32_t r
[16]; // R0-R15
22 uint32_t cpsr
; // CPSR
33 QReg q
[16]; // the 128-bit NEON registers
39 uint32_t fsr
; /* Fault status */
40 uint32_t far
; /* Virtual Fault Address */
50 RegisterInfoPOSIX_arm(const lldb_private::ArchSpec
&target_arch
);
52 size_t GetGPRSize() const override
;
54 size_t GetFPRSize() const override
;
56 const lldb_private::RegisterInfo
*GetRegisterInfo() const override
;
58 uint32_t GetRegisterCount() const override
;
60 const lldb_private::RegisterSet
*
61 GetRegisterSet(size_t reg_set
) const override
;
63 size_t GetRegisterSetCount() const override
;
65 size_t GetRegisterSetFromRegisterIndex(uint32_t reg_index
) const override
;
68 const lldb_private::RegisterInfo
*m_register_info_p
;
69 uint32_t m_register_info_count
;
72 #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERINFOPOSIX_ARM_H