mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
PowerPC recompiler rework (#641)
This commit is contained in:
parent
06233e3462
commit
b089ae5b32
54 changed files with 15433 additions and 12397 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "util/crypto/aes128.h"
|
||||
|
||||
#include "Cafe/Filesystem/FST/FST.h"
|
||||
#include "util/helpers/StringHelpers.h"
|
||||
|
||||
void requireConsole();
|
||||
|
||||
|
@ -74,7 +75,9 @@ bool LaunchSettings::HandleCommandline(const std::vector<std::wstring>& args)
|
|||
po::options_description hidden{ "Hidden options" };
|
||||
hidden.add_options()
|
||||
("nsight", po::value<bool>()->implicit_value(true), "NSight debugging options")
|
||||
("legacy", po::value<bool>()->implicit_value(true), "Intel legacy graphic mode");
|
||||
("legacy", po::value<bool>()->implicit_value(true), "Intel legacy graphic mode")
|
||||
("ppcrec-lower-addr", po::value<std::string>(), "For debugging: Lower address allowed for PPC recompilation")
|
||||
("ppcrec-upper-addr", po::value<std::string>(), "For debugging: Upper address allowed for PPC recompilation");
|
||||
|
||||
po::options_description extractor{ "Extractor tool" };
|
||||
extractor.add_options()
|
||||
|
@ -186,6 +189,20 @@ bool LaunchSettings::HandleCommandline(const std::vector<std::wstring>& args)
|
|||
if (vm.count("output"))
|
||||
log_path = vm["output"].as<std::wstring>();
|
||||
|
||||
// recompiler range limit for debugging
|
||||
if (vm.count("ppcrec-lower-addr"))
|
||||
{
|
||||
uint32 addr = (uint32)StringHelpers::ToInt64(vm["ppcrec-lower-addr"].as<std::string>());
|
||||
ppcRec_limitLowerAddr = addr;
|
||||
}
|
||||
if (vm.count("ppcrec-upper-addr"))
|
||||
{
|
||||
uint32 addr = (uint32)StringHelpers::ToInt64(vm["ppcrec-upper-addr"].as<std::string>());
|
||||
ppcRec_limitUpperAddr = addr;
|
||||
}
|
||||
if(ppcRec_limitLowerAddr != 0 && ppcRec_limitUpperAddr != 0)
|
||||
cemuLog_log(LogType::Force, "PPCRec range limited to 0x{:08x}-0x{:08x}", ppcRec_limitLowerAddr, ppcRec_limitUpperAddr);
|
||||
|
||||
if(!extract_path.empty())
|
||||
{
|
||||
ExtractorTool(extract_path, output_path, log_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue