1 //===-- RegisterContextFreeBSD_mips64.cpp ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===---------------------------------------------------------------------===//
11 #include "RegisterContextPOSIX_mips64.h"
12 #include "RegisterContextFreeBSD_mips64.h"
14 using namespace lldb_private;
17 // http://svnweb.freebsd.org/base/head/sys/mips/include/regnum.h
62 //---------------------------------------------------------------------------
63 // Include RegisterInfos_mips64 to declare our g_register_infos_mips64 structure.
64 //---------------------------------------------------------------------------
65 #define DECLARE_REGISTER_INFOS_MIPS64_STRUCT
66 #include "RegisterInfos_mips64.h"
67 #undef DECLARE_REGISTER_INFOS_MIPS64_STRUCT
69 RegisterContextFreeBSD_mips64::RegisterContextFreeBSD_mips64(const ArchSpec &target_arch) :
70 RegisterInfoInterface(target_arch)
75 RegisterContextFreeBSD_mips64::GetGPRSize() const
77 return sizeof(GPR_freebsd_mips);
81 RegisterContextFreeBSD_mips64::GetRegisterInfo() const
83 assert (m_target_arch.GetCore() == ArchSpec::eCore_mips64);
84 return g_register_infos_mips64;
88 RegisterContextFreeBSD_mips64::GetRegisterCount () const
90 return static_cast<uint32_t> (sizeof (g_register_infos_mips64) / sizeof (g_register_infos_mips64 [0]));