summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-04 04:06:42 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-04 04:07:07 +0200
commitc2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7 (patch)
tree7895ea620721dcd46d4379d291f82fdb2c479cc3 /src
parentadded hack to allow physical mem read/writes (diff)
downloadyuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar.gz
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar.bz2
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar.lz
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar.xz
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.tar.zst
yuzu-c2d4c7d4f4cf41ec7be5600bea929dbde6d5edb7.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/src/core.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/core/src/core.cpp b/src/core/src/core.cpp
index 800a2a3fb..edae66b9f 100644
--- a/src/core/src/core.cpp
+++ b/src/core/src/core.cpp
@@ -26,6 +26,7 @@
#include "core.h"
#include "mem_map.h"
#include "arm/armdefs.h"
+#include "arm/armemu.h"
#include "arm/disassembler/arm_disasm.h"
namespace Core {
@@ -54,31 +55,13 @@ void RunLoop() {
/// Step the CPU one instruction
void SingleStep() {
- //arm11_core_t* core = (arm11_core_t*)opaque->obj;
ARMul_State *state = core->state;
- //if (state->space.conf_obj == NULL){
- // state->space.conf_obj = core->space->conf_obj;
- // state->space.read = core->space->read;
- // state->space.write = core->space->write;
- //}
-
- char next_instr[255];
-
- disasm->disasm(state->pc, Memory::Read32(state->pc), next_instr);
-
- NOTICE_LOG(ARM11, "0x%08X : %s", state->pc, next_instr);
-
-
- for (int i = 0; i < 15; i++) {
- NOTICE_LOG(ARM11, "Reg[%02d] = 0x%08X", i, state->Reg[i]);
- }
-
state->step++;
state->cycle++;
state->EndCondition = 0;
state->stop_simulator = 0;
- //state->NextInstr = RESUME; /* treat as PC change */
+ state->NextInstr = RESUME; /* treat as PC change */
state->last_pc = state->Reg[15];
state->Reg[15] = ARMul_DoInstr(state);
state->Cpsr = (state->Cpsr & 0x0fffffdf) | \
@@ -88,7 +71,7 @@ void SingleStep() {
(state->VFlag << 28);// | \
//(state->TFlag << 5);
- //FLUSHPIPE;
+ FLUSHPIPE;
}
/// Halt the core