diff options
author | bunnei <bunneidev@gmail.com> | 2016-09-02 14:53:42 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-09-15 23:49:30 +0200 |
commit | 05e120a4cc380db318a5ee194579053b850f14fe (patch) | |
tree | 86f0801b9b79adf9832a328bf0981433d199b0ff /src/core/arm/dynarmic | |
parent | arm_dynarmic/arm_dyncom: Remove unnecessary "virtual" keyword. (diff) | |
download | yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar.gz yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar.bz2 yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar.lz yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar.xz yuzu-05e120a4cc380db318a5ee194579053b850f14fe.tar.zst yuzu-05e120a4cc380db318a5ee194579053b850f14fe.zip |
Diffstat (limited to 'src/core/arm/dynarmic')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic.cpp | 9 | ||||
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp index 46b4d6103..a9cb973df 100644 --- a/src/core/arm/dynarmic/arm_dynarmic.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic.cpp @@ -130,15 +130,6 @@ void ARM_Dynarmic::ExecuteInstructions(int num_instructions) { AddTicks(num_instructions); } -void ARM_Dynarmic::ResetContext(Core::ThreadContext& context, u32 stack_top, u32 entry_point, u32 arg) { - memset(&context, 0, sizeof(Core::ThreadContext)); - - context.cpu_registers[0] = arg; - context.pc = entry_point; - context.sp = stack_top; - context.cpsr = USER32MODE | ((entry_point & 1) << 5); // Usermode and THUMB mode -} - void ARM_Dynarmic::SaveContext(Core::ThreadContext& ctx) { memcpy(ctx.cpu_registers, jit->Regs().data(), sizeof(ctx.cpu_registers)); memcpy(ctx.fpu_registers, jit->ExtRegs().data(), sizeof(ctx.fpu_registers)); diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.h index 58323135d..d493cabd5 100644 --- a/src/core/arm/dynarmic/arm_dynarmic.h +++ b/src/core/arm/dynarmic/arm_dynarmic.h @@ -36,7 +36,6 @@ public: void AddTicks(u64 ticks) override; - void ResetContext(Core::ThreadContext& context, u32 stack_top, u32 entry_point, u32 arg) override; void SaveContext(Core::ThreadContext& ctx) override; void LoadContext(const Core::ThreadContext& ctx) override; |