summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-10 22:45:40 -0400
committerGravatar bunnei2014-04-10 22:45:40 -0400
commit5d95bb98434b8e7cd67010f6064ccdb69c1222bb (patch)
tree5d4c4f1b10d37e2619322a7f837883d61b1d2865 /src
parentadded logger for generic HLE (diff)
downloadyuzu-5d95bb98434b8e7cd67010f6064ccdb69c1222bb.tar.gz
yuzu-5d95bb98434b8e7cd67010f6064ccdb69c1222bb.tar.xz
yuzu-5d95bb98434b8e7cd67010f6064ccdb69c1222bb.zip
cleaned up some logging messages
Diffstat (limited to 'src')
-rw-r--r--src/core/core.cpp22
-rw-r--r--src/core/hw/hw.cpp8
-rw-r--r--src/core/mem_map.cpp4
-rw-r--r--src/core/mem_map_funcs.cpp2
-rw-r--r--src/core/system.cpp15
-rw-r--r--src/video_core/video_core.cpp3
6 files changed, 21 insertions, 33 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index acb0a6e82..859a62c78 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -24,24 +24,6 @@ void RunLoop() {
24 24
25/// Step the CPU one instruction 25/// Step the CPU one instruction
26void SingleStep() { 26void SingleStep() {
27
28 char current_instr[512];
29
30 if (g_app_core->GetPC() == 0x080D1534) {
31 g_disasm->disasm(g_app_core->GetPC(), Memory::Read32(g_app_core->GetPC()), current_instr);
32
33
34 NOTICE_LOG(ARM11, "0x%08X 0x%08X 0x%08X 0x%08X 0x%08X 0x%08X",
35 g_app_core->GetReg(0),
36 g_app_core->GetReg(1),
37 g_app_core->GetReg(2),
38 g_app_core->GetReg(3), Memory::Read32(g_app_core->GetReg(0)), Memory::Read32(g_app_core->GetReg(1)));
39
40
41 NOTICE_LOG(ARM11, "0x%08X\t%s", g_app_core->GetPC(), current_instr);
42 }
43
44
45 g_app_core->Step(); 27 g_app_core->Step();
46 HW::Update(); 28 HW::Update();
47} 29}
@@ -58,7 +40,7 @@ void Stop() {
58 40
59/// Initialize the core 41/// Initialize the core
60int Init() { 42int Init() {
61 NOTICE_LOG(MASTER_LOG, "Core initialized OK"); 43 NOTICE_LOG(MASTER_LOG, "initialized OK");
62 44
63 g_disasm = new ARM_Disasm(); 45 g_disasm = new ARM_Disasm();
64 g_app_core = new ARM_Interpreter(); 46 g_app_core = new ARM_Interpreter();
@@ -72,7 +54,7 @@ void Shutdown() {
72 delete g_app_core; 54 delete g_app_core;
73 delete g_sys_core; 55 delete g_sys_core;
74 56
75 NOTICE_LOG(MASTER_LOG, "Core shutdown OK"); 57 NOTICE_LOG(MASTER_LOG, "shutdown OK");
76} 58}
77 59
78} // namespace 60} // namespace
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp
index 44625e3af..7191d7c60 100644
--- a/src/core/hw/hw.cpp
+++ b/src/core/hw/hw.cpp
@@ -12,12 +12,12 @@ namespace HW {
12 12
13template <typename T> 13template <typename T>
14inline void Read(T &var, const u32 addr) { 14inline void Read(T &var, const u32 addr) {
15 NOTICE_LOG(HW, "Hardware read from address %08X", addr); 15 NOTICE_LOG(HW, "read from address %08X", addr);
16} 16}
17 17
18template <typename T> 18template <typename T>
19inline void Write(u32 addr, const T data) { 19inline void Write(u32 addr, const T data) {
20 NOTICE_LOG(HW, "Hardware write to address %08X", addr); 20 NOTICE_LOG(HW, "write to address %08X", addr);
21} 21}
22 22
23// Explicitly instantiate template functions because we aren't defining this in the header: 23// Explicitly instantiate template functions because we aren't defining this in the header:
@@ -40,12 +40,12 @@ void Update() {
40/// Initialize hardware 40/// Initialize hardware
41void Init() { 41void Init() {
42 LCD::Init(); 42 LCD::Init();
43 NOTICE_LOG(HW, "Hardware initialized OK"); 43 NOTICE_LOG(HW, "initialized OK");
44} 44}
45 45
46/// Shutdown hardware 46/// Shutdown hardware
47void Shutdown() { 47void Shutdown() {
48 NOTICE_LOG(HW, "Hardware shutdown OK"); 48 NOTICE_LOG(HW, "shutdown OK");
49} 49}
50 50
51} \ No newline at end of file 51} \ No newline at end of file
diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cpp
index 96f8d0440..a5865d785 100644
--- a/src/core/mem_map.cpp
+++ b/src/core/mem_map.cpp
@@ -63,7 +63,7 @@ void Init() {
63 63
64 g_scratchpad = new u8[MEM_SCRATCHPAD_SIZE]; 64 g_scratchpad = new u8[MEM_SCRATCHPAD_SIZE];
65 65
66 NOTICE_LOG(MEMMAP, "Memory system initialized. RAM at %p (mirror at 0 @ %p)", g_fcram, 66 NOTICE_LOG(MEMMAP, "initialized OK, RAM at %p (mirror at 0 @ %p)", g_fcram,
67 g_physical_fcram); 67 g_physical_fcram);
68} 68}
69 69
@@ -77,7 +77,7 @@ void Shutdown() {
77 g_base = NULL; 77 g_base = NULL;
78 g_scratchpad = NULL; 78 g_scratchpad = NULL;
79 79
80 NOTICE_LOG(MEMMAP, "Memory system shut down."); 80 NOTICE_LOG(MEMMAP, "shutdown OK");
81} 81}
82 82
83} // namespace 83} // namespace
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp
index 4c0e08b3f..00719445f 100644
--- a/src/core/mem_map_funcs.cpp
+++ b/src/core/mem_map_funcs.cpp
@@ -40,7 +40,7 @@ inline void _Read(T &var, const u32 addr) {
40 var = *((const T*)&g_fcram[addr & MEM_FCRAM_MASK]); 40 var = *((const T*)&g_fcram[addr & MEM_FCRAM_MASK]);
41 41
42 } else { 42 } else {
43 _assert_msg_(MEMMAP, false, "unknown memory read"); 43 _assert_msg_(MEMMAP, false, "unknown memory read @ 0x%08X", addr);
44 } 44 }
45} 45}
46 46
diff --git a/src/core/system.cpp b/src/core/system.cpp
index edb07fef5..c77092327 100644
--- a/src/core/system.cpp
+++ b/src/core/system.cpp
@@ -7,6 +7,7 @@
7#include "core/mem_map.h" 7#include "core/mem_map.h"
8#include "core/system.h" 8#include "core/system.h"
9#include "core/hw/hw.h" 9#include "core/hw/hw.h"
10#include "core/hle/hle.h"
10 11
11#include "video_core/video_core.h" 12#include "video_core/video_core.h"
12 13
@@ -19,15 +20,16 @@ void UpdateState(State state) {
19} 20}
20 21
21void Init(EmuWindow* emu_window) { 22void Init(EmuWindow* emu_window) {
22 Core::Init(); 23 Core::Init();
23 Memory::Init(); 24 Memory::Init();
24 HW::Init(); 25 HW::Init();
25 CoreTiming::Init(); 26 HLE::Init();
27 CoreTiming::Init();
26 VideoCore::Init(emu_window); 28 VideoCore::Init(emu_window);
27} 29}
28 30
29void RunLoopFor(int cycles) { 31void RunLoopFor(int cycles) {
30 RunLoopUntil(CoreTiming::GetTicks() + cycles); 32 RunLoopUntil(CoreTiming::GetTicks() + cycles);
31} 33}
32 34
33void RunLoopUntil(u64 global_cycles) { 35void RunLoopUntil(u64 global_cycles) {
@@ -35,9 +37,12 @@ void RunLoopUntil(u64 global_cycles) {
35 37
36void Shutdown() { 38void Shutdown() {
37 Core::Shutdown(); 39 Core::Shutdown();
40 Memory::Shutdown();
38 HW::Shutdown(); 41 HW::Shutdown();
42 HLE::Shutdown();
43 CoreTiming::Shutdown();
39 VideoCore::Shutdown(); 44 VideoCore::Shutdown();
40 g_ctr_file_system.Shutdown(); 45 g_ctr_file_system.Shutdown();
41} 46}
42 47
43} // namespace 48} // namespace
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index e227b6795..f2e17f9f9 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -38,12 +38,13 @@ void Init(EmuWindow* emu_window) {
38 38
39 g_current_frame = 0; 39 g_current_frame = 0;
40 40
41 NOTICE_LOG(VIDEO, "initialized ok"); 41 NOTICE_LOG(VIDEO, "initialized OK");
42} 42}
43 43
44/// Shutdown the video core 44/// Shutdown the video core
45void Shutdown() { 45void Shutdown() {
46 delete g_renderer; 46 delete g_renderer;
47 NOTICE_LOG(VIDEO, "shutdown OK");
47} 48}
48 49
49} // namespace 50} // namespace