mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Rename context_frame to cpu_context
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "std_include.hpp"
|
||||
#include "context_frame.hpp"
|
||||
#include "cpu_context.hpp"
|
||||
|
||||
namespace context_frame
|
||||
namespace cpu_context
|
||||
{
|
||||
void restore(x64_emulator& emu, const CONTEXT64& context)
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "x64_emulator.hpp"
|
||||
|
||||
namespace context_frame
|
||||
namespace cpu_context
|
||||
{
|
||||
void save(x64_emulator& emu, CONTEXT64& context);
|
||||
void restore(x64_emulator& emu, const CONTEXT64& context);
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "emulator_thread.hpp"
|
||||
|
||||
#include "context_frame.hpp"
|
||||
#include "cpu_context.hpp"
|
||||
#include "process_context.hpp"
|
||||
|
||||
namespace
|
||||
@@ -226,7 +226,7 @@ void emulator_thread::setup_registers(x64_emulator& emu, const process_context&
|
||||
ctx.ContextFlags = CONTEXT64_ALL;
|
||||
|
||||
unalign_stack(emu);
|
||||
context_frame::save(emu, ctx);
|
||||
cpu_context::save(emu, ctx);
|
||||
|
||||
ctx.Rip = context.rtl_user_thread_start;
|
||||
ctx.Rcx = this->start_address;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "exception_dispatch.hpp"
|
||||
#include "process_context.hpp"
|
||||
#include "context_frame.hpp"
|
||||
#include "cpu_context.hpp"
|
||||
|
||||
#include <platform/status.hpp>
|
||||
|
||||
@@ -146,7 +146,7 @@ void dispatch_exception(x64_emulator& emu, const process_context& proc, const DW
|
||||
{
|
||||
CONTEXT64 ctx{};
|
||||
ctx.ContextFlags = CONTEXT64_ALL;
|
||||
context_frame::save(emu, ctx);
|
||||
cpu_context::save(emu, ctx);
|
||||
|
||||
exception_record record{};
|
||||
memset(&record, 0, sizeof(record));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "std_include.hpp"
|
||||
#include "syscall_dispatcher.hpp"
|
||||
#include "context_frame.hpp"
|
||||
#include "cpu_context.hpp"
|
||||
#include "emulator_utils.hpp"
|
||||
#include "syscall_utils.hpp"
|
||||
|
||||
@@ -2775,7 +2775,7 @@ namespace
|
||||
c.write_status = false;
|
||||
|
||||
const auto context = thread_context.read();
|
||||
context_frame::restore(c.emu, context);
|
||||
cpu_context::restore(c.emu, context);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
@@ -3800,7 +3800,7 @@ namespace
|
||||
c.win_emu.log.print(color::pink, "--> Reading debug registers!\n");
|
||||
}
|
||||
|
||||
context_frame::save(c.emu, context);
|
||||
cpu_context::save(c.emu, context);
|
||||
});
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
@@ -3832,7 +3832,7 @@ namespace
|
||||
});
|
||||
|
||||
const auto context = thread_context.read();
|
||||
context_frame::restore(c.emu, context);
|
||||
cpu_context::restore(c.emu, context);
|
||||
|
||||
if ((context.ContextFlags & CONTEXT_DEBUG_REGISTERS_64) == CONTEXT_DEBUG_REGISTERS_64)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "windows_emulator.hpp"
|
||||
|
||||
#include "address_utils.hpp"
|
||||
#include "context_frame.hpp"
|
||||
#include "cpu_context.hpp"
|
||||
|
||||
#include <unicorn_x64_emulator.hpp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user