mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 04:04:30 +01:00
a32_emit_x64: Implement fastmem
This commit is contained in:
parent
f9b9081d4c
commit
4636055646
11 changed files with 180 additions and 15 deletions
|
|
@ -42,13 +42,13 @@ static RunCodeCallbacks GenRunCodeCallbacks(A32::UserCallbacks* cb, CodePtr (*Lo
|
|||
}
|
||||
|
||||
static std::function<void(BlockOfCode&)> GenRCP(const A32::UserConfig& config) {
|
||||
if (!config.page_table) {
|
||||
return [](BlockOfCode&){};
|
||||
}
|
||||
|
||||
const u64 r14_value = Common::BitCast<u64>(config.page_table);
|
||||
return [r14_value](BlockOfCode& code) {
|
||||
code.mov(code.r14, r14_value);
|
||||
return [config](BlockOfCode& code) {
|
||||
if (config.page_table) {
|
||||
code.mov(code.r14, Common::BitCast<u64>(config.page_table));
|
||||
}
|
||||
if (config.fastmem_pointer) {
|
||||
code.mov(code.r13, Common::BitCast<u64>(config.fastmem_pointer));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue