Enable RomFS for NROs plus some minor formatting.

This commit is contained in:
Jarek Syrylak
2018-07-28 09:51:15 +01:00
parent c47b775200
commit bfcad07dc0
3 changed files with 7 additions and 6 deletions

View File

@@ -132,16 +132,14 @@ std::unique_ptr<Dynarmic::A64::Jit> ARM_Dynarmic::MakeJit() const {
void ARM_Dynarmic::Run() {
ASSERT(Memory::GetCurrentPageTable() == current_page_table);
if(!GDBStub::GetInstCacheValidity())
{
if (!GDBStub::GetInstCacheValidity()) {
ClearInstructionCache();
}
jit->Run();
}
void ARM_Dynarmic::Step() {
if(!GDBStub::GetInstCacheValidity())
{
if (!GDBStub::GetInstCacheValidity()) {
ClearInstructionCache();
}
cb->InterpreterFallback(jit->GetPC(), 1);

View File

@@ -78,8 +78,7 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
}
}
if(GDBStub::IsServerEnabled())
{
if (GDBStub::IsServerEnabled()) {
GDBStub::SetCpuStepFlag(false);
GDBStub::SetInstCacheValidity(true);
}

View File

@@ -294,6 +294,10 @@ void RegisterFileSystems() {
auto sdcard = std::make_unique<FileSys::SDMCFactory>(std::move(sd_directory));
sdmc_factory = std::move(sdcard);
auto romfs =
std::make_unique<FileSys::RomFSFactory>(Core::System::GetInstance().GetAppLoader());
romfs_factory = std::move(romfs);
}
void InstallInterfaces(SM::ServiceManager& service_manager) {