forked from OSchip/llvm-project
Try to fix the mips64 build after rL257447
llvm-svn: 257469
This commit is contained in:
parent
5797c55f07
commit
239132f452
|
@ -1389,7 +1389,7 @@ NativeRegisterContextLinux_mips64::DoReadRegisterValue(uint32_t offset,
|
|||
lldb_private::ArchSpec arch;
|
||||
if (m_thread.GetProcess()->GetArchitecture(arch))
|
||||
{
|
||||
void* target_address = ((uint8_t*)®s) + offset + 4 * (arch.GetMachine() == llvm::Triple::mips;
|
||||
void* target_address = ((uint8_t*)®s) + offset + 4 * (arch.GetMachine() == llvm::Triple::mips);
|
||||
uint32_t target_size;
|
||||
if ((::strcmp(reg_name, "sr") == 0) || (::strcmp(reg_name, "cause") == 0) || (::strcmp(reg_name, "config5") == 0))
|
||||
target_size = 4;
|
||||
|
|
Loading…
Reference in New Issue