2026-09-26 06:34:09

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-26 06:34:09 +00:00
committed by crueter
parent 5e7ba8fc9c
commit 22b7e1e24c
48 changed files with 2390 additions and 2230 deletions
+13 -9
View File
@@ -48,12 +48,7 @@ public:
}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, C<&IJitEnvironment::GenerateCode>, "GenerateCode"},
FunctionInfo{1, C<&IJitEnvironment::Control>, "Control"},
FunctionInfo{1000, C<&IJitEnvironment::LoadPlugin>, "LoadPlugin"},
FunctionInfo{1001, C<&IJitEnvironment::GetCodeAddress>, "GetCodeAddress"}
);
return HandlerTableGenerateWithFind(key, functions);
}
~IJitEnvironment() {
@@ -245,6 +240,13 @@ private:
return in;
}
static constexpr auto functions = CreateStaticMap(
FunctionInfo{0, C<&IJitEnvironment::GenerateCode>, "GenerateCode"},
FunctionInfo{1, C<&IJitEnvironment::Control>, "Control"},
FunctionInfo{1000, C<&IJitEnvironment::LoadPlugin>, "LoadPlugin"},
FunctionInfo{1001, C<&IJitEnvironment::GetCodeAddress>, "GetCodeAddress"}
);
Kernel::KScopedAutoObject<Kernel::KProcess> process;
CodeMemory user_rx;
CodeMemory user_ro;
@@ -258,9 +260,7 @@ public:
explicit JITU(Core::System& system_) : ServiceFramework{system_, "jit:u"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, C<&JITU::CreateJitEnvironment>, "CreateJitEnvironment"}
);
return HandlerTableGenerateWithFind(key, functions);
}
private:
@@ -289,6 +289,10 @@ private:
}
private:
static constexpr auto functions = CreateStaticMap(
FunctionInfo{0, C<&JITU::CreateJitEnvironment>, "CreateJitEnvironment"}
);
std::mt19937_64 generate_random{};
};