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/dyncom/arm_dyncom.cpp | |
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 '')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index 976e81480..d84917529 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp @@ -93,15 +93,6 @@ void ARM_DynCom::ExecuteInstructions(int num_instructions) { AddTicks(ticks_executed); } -void ARM_DynCom::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_DynCom::SaveContext(Core::ThreadContext& ctx) { memcpy(ctx.cpu_registers, state->Reg.data(), sizeof(ctx.cpu_registers)); memcpy(ctx.fpu_registers, state->ExtReg.data(), sizeof(ctx.fpu_registers)); |