mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
don't printf from exception handler
it was handy for debugging, but it's dangerous
This commit is contained in:
@ -584,7 +584,7 @@ bool MapAtAddress(u32 addr)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
u8* states = num == 0 ? MappingStatus9 : MappingStatus7;
|
u8* states = num == 0 ? MappingStatus9 : MappingStatus7;
|
||||||
printf("mapping mirror %x, %x %x %d %d\n", mirrorStart, mirrorSize, memoryOffset, region, num);
|
//printf("mapping mirror %x, %x %x %d %d\n", mirrorStart, mirrorSize, memoryOffset, region, num);
|
||||||
bool isExecutable = ARMJIT::CodeMemRegions[region];
|
bool isExecutable = ARMJIT::CodeMemRegions[region];
|
||||||
|
|
||||||
u32 dtcmStart = NDS::ARM9->DTCMBase;
|
u32 dtcmStart = NDS::ARM9->DTCMBase;
|
||||||
@ -650,7 +650,7 @@ bool MapAtAddress(u32 addr)
|
|||||||
#if defined(__SWITCH__)
|
#if defined(__SWITCH__)
|
||||||
if (!hasCode)
|
if (!hasCode)
|
||||||
{
|
{
|
||||||
printf("trying to map %x (size: %x) from %x\n", mirrorStart + sectionOffset, sectionSize, sectionOffset + memoryOffset + OffsetsPerRegion[region]);
|
//printf("trying to map %x (size: %x) from %x\n", mirrorStart + sectionOffset, sectionSize, sectionOffset + memoryOffset + OffsetsPerRegion[region]);
|
||||||
bool succeded = MapIntoRange(mirrorStart + sectionOffset, num, sectionOffset + memoryOffset + OffsetsPerRegion[region], sectionSize);
|
bool succeded = MapIntoRange(mirrorStart + sectionOffset, num, sectionOffset + memoryOffset + OffsetsPerRegion[region], sectionSize);
|
||||||
assert(succeded);
|
assert(succeded);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user