diff options
author | Greg Clayton <gclayton@apple.com> | 2014-01-22 23:42:03 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-01-22 23:42:03 +0000 |
commit | a86dc43371fb7e6a8d5861d79f45ec1fdeb68fd1 (patch) | |
tree | 8b79d49d9798df3cc234a29b54b6d1f8aefb7ee5 /lldb/source/Host/macosx/Host.mm | |
parent | 3b2c96ee86d6a3991a5db7432c1aa18cea264da7 (diff) | |
download | bcm5719-llvm-a86dc43371fb7e6a8d5861d79f45ec1fdeb68fd1.tar.gz bcm5719-llvm-a86dc43371fb7e6a8d5861d79f45ec1fdeb68fd1.zip |
Add support for Haswell on x86_64.
<rdar://problem/15312873>
llvm-svn: 199854
Diffstat (limited to 'lldb/source/Host/macosx/Host.mm')
-rw-r--r-- | lldb/source/Host/macosx/Host.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 2c680c18fb8..5729a7375d3 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1625,9 +1625,11 @@ LaunchProcessPosixSpawn (const char *exe_path, ProcessLaunchInfo &launch_info, : // to set which CPU subtype to launch... const ArchSpec &arch_spec = launch_info.GetArchitecture(); cpu_type_t cpu = arch_spec.GetMachOCPUType(); - if (cpu != 0 && + cpu_type_t sub = arch_spec.GetMachOCPUSubType(); + if (cpu != 0 && cpu != UINT32_MAX && - cpu != LLDB_INVALID_CPUTYPE) + cpu != LLDB_INVALID_CPUTYPE && + !(cpu == 0x01000007 && sub == 8)) // If haswell is specified, don't try to set the CPU type or we will fail { size_t ocount = 0; error.SetError( ::posix_spawnattr_setbinpref_np (&attr, 1, &cpu, &ocount), eErrorTypePOSIX); |