small cleaning

This commit is contained in:
SimoneN64
2024-01-04 02:41:22 +01:00
parent f0fb01d8e7
commit d4d9aae321
2 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@@ -12,7 +12,7 @@ vgcore.*
*.dump
*.data
disasm.txt
log.txt
*log.txt
.vs/
CMakeSettings.json
out/

View File

@@ -42,7 +42,7 @@ void Flash::Load(SaveType saveType, const std::string& path) {
}
void Flash::CommandExecute() {
Util::debug("Flash::CommandExecute");
Util::trace("Flash::CommandExecute");
switch (state) {
case FlashState::Idle:
break;
@@ -176,7 +176,7 @@ template <> u8 Flash::Read<u8>(u32 index) const {
case FlashState::Read: {
if(saveData.is_mapped()) {
u8 value = saveData[index];
Util::debug("Flash read byte in state read: index {:08X} = {:02X}", index, value);
Util::trace("Flash read byte in state read: index {:08X} = {:02X}", index, value);
return value;
} else {
Util::panic("Accessing flash when not mapped!");
@@ -185,7 +185,7 @@ template <> u8 Flash::Read<u8>(u32 index) const {
case FlashState::Status: {
u32 offset = (7 - (index % 8)) * 8;
u8 value = (status >> offset) & 0xFF;
Util::debug("Flash read byte in state status: index {:08X} = {:02X}", index, value);
Util::trace("Flash read byte in state status: index {:08X} = {:02X}", index, value);
return value;
}
default: Util::panic("Flash read byte while in unknown state");