LLDB mainline
RegisterInfoPOSIX_loongarch64.h
Go to the documentation of this file.
1//===-- RegisterInfoPOSIX_loongarch64.h -------------------------*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERINFOPOSIX_LOONGARCH64_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERINFOPOSIX_LOONGARCH64_H
11
14#include "lldb/lldb-private.h"
15#include <map>
16
19public:
20 static const lldb_private::RegisterInfo *
22 static uint32_t
24
25public:
29 };
30
31 struct GPR {
32 uint64_t gpr[32];
33
34 uint64_t orig_a0;
35 uint64_t csr_era;
36 uint64_t csr_badv;
37 uint64_t reserved[10];
38 };
39
40 struct FPR {
41 uint64_t fpr[32];
42 uint64_t fcc;
43 uint32_t fcsr;
44 };
45
48
49 size_t GetGPRSize() const override;
50
51 size_t GetFPRSize() const override;
52
53 const lldb_private::RegisterInfo *GetRegisterInfo() const override;
54
55 uint32_t GetRegisterCount() const override;
56
58 GetRegisterSet(size_t reg_set) const override;
59
60 size_t GetRegisterSetCount() const override;
61
62 size_t GetRegisterSetFromRegisterIndex(uint32_t reg_index) const override;
63
64private:
67};
68
69#endif
size_t GetRegisterSetFromRegisterIndex(uint32_t reg_index) const override
static const lldb_private::RegisterInfo * GetRegisterInfoPtr(const lldb_private::ArchSpec &target_arch)
const lldb_private::RegisterSet * GetRegisterSet(size_t reg_set) const override
const lldb_private::RegisterInfo * m_register_info_p
static uint32_t GetRegisterInfoCount(const lldb_private::ArchSpec &target_arch)
const lldb_private::RegisterInfo * GetRegisterInfo() const override
An architecture specification class.
Definition: ArchSpec.h:31
A class to manage flags.
Definition: Flags.h:22
Every register is described in detail including its name, alternate name (optional),...
Registers are grouped into register sets.