mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Disable exception handling.
Use -fno-exceptions in cmake. On MSVC, enable _HAS_EXCEPTION=0. Cleanup throw/catch from the source. Create yaml.cpp enclave because it needs exception to work. Disable thread_local optimizations in logs.cpp (TODO). Implement cpu_counter for cpu_threads (moved globals).
This commit is contained in:
parent
47bbfdd2aa
commit
04dedb17eb
39 changed files with 421 additions and 437 deletions
|
|
@ -4357,7 +4357,7 @@ Value* PPUTranslator::GetVr(u32 vr, VrType type)
|
|||
case VrType::i128: return m_ir->CreateBitCast(value, GetType<u128>());
|
||||
}
|
||||
|
||||
throw std::logic_error("GetVr(): invalid type");
|
||||
report_fatal_error("GetVr(): invalid type");
|
||||
}
|
||||
|
||||
void PPUTranslator::SetVr(u32 vr, Value* value)
|
||||
|
|
@ -4435,7 +4435,7 @@ void PPUTranslator::SetFPRF(Value* value, bool set_cr)
|
|||
const bool is32 =
|
||||
value->getType()->isFloatTy() ? true :
|
||||
value->getType()->isDoubleTy() ? false :
|
||||
throw std::logic_error("SetFPRF(): invalid value type");
|
||||
(report_fatal_error("SetFPRF(): invalid value type"), false);
|
||||
|
||||
//const auto zero = ConstantFP::get(value->getType(), 0.0);
|
||||
//const auto is_nan = m_ir->CreateFCmpUNO(value, zero);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue