mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Add fallback CPU detection when llvm is not aware of the CPU model
This commit is contained in:
parent
8f51b0907a
commit
3e7c1e207d
3 changed files with 61 additions and 1 deletions
|
|
@ -90,7 +90,13 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
|
|||
m_context = context;
|
||||
m_engine = &engine;
|
||||
|
||||
const auto cpu = m_engine->getTargetMachine()->getTargetCPU();
|
||||
auto cpu = m_engine->getTargetMachine()->getTargetCPU();
|
||||
|
||||
if (cpu == "generic")
|
||||
{
|
||||
// Detection failed, try to guess
|
||||
cpu = fallback_cpu_detection();
|
||||
}
|
||||
|
||||
// Test SSSE3 feature (TODO)
|
||||
if (cpu == "generic" ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue