Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
melonDS
Commits
2a3147db
Commit
2a3147db
authored
Jul 31, 2020
by
RSDuck
Browse files
reset fastmem on DSi soft reset
parent
c5ecef74
Changes
3
Show whitespace changes
Inline
Side-by-side
src/ARMJIT_Internal.h
View file @
2a3147db
...
...
@@ -114,6 +114,7 @@ struct __attribute__((packed)) TinyVector
void
Remove
(
int
index
)
{
assert
(
Length
>
0
);
assert
(
index
>=
0
&&
index
<
Length
);
Length
--
;
...
...
src/ARMJIT_Memory.cpp
View file @
2a3147db
...
...
@@ -414,7 +414,7 @@ void RemapDTCM(u32 newBase, u32 newSize)
u32
start
=
mapping
.
Addr
;
u32
end
=
mapping
.
Addr
+
mapping
.
Size
;
printf
(
"mapping %d %x %x %x %x
\n
"
,
region
,
mapping
.
Addr
,
mapping
.
Size
,
mapping
.
Num
,
mapping
.
LocalOffset
);
printf
(
"
un
mapping %d %x %x %x %x
\n
"
,
region
,
mapping
.
Addr
,
mapping
.
Size
,
mapping
.
Num
,
mapping
.
LocalOffset
);
bool
oldOverlap
=
NDS
::
ARM9
->
DTCMSize
>
0
&&
!
(
oldDTCMBase
>=
end
||
oldDTCBEnd
<=
start
);
bool
newOverlap
=
newSize
>
0
&&
!
(
newBase
>=
end
||
newEnd
<=
start
);
...
...
src/DSi.cpp
View file @
2a3147db
...
...
@@ -181,15 +181,17 @@ void SoftReset()
// also, BPTWL[0x70] could be abused to quickly boot specific titles
#ifdef JIT_ENABLED
ARMJIT_Memory
::
Reset
();
ARMJIT
::
CheckAndInvalidateITCM
();
#endif
NDS
::
ARM9
->
Reset
();
NDS
::
ARM7
->
Reset
();
NDS
::
ARM9
->
CP15Reset
();
memcpy
(
NDS
::
ARM9
->
ITCM
,
ITCMInit
,
0x8000
);
#ifdef JIT_ENABLED
ARMJIT
::
CheckAndInvalidateITCM
();
#endif
DSi_AES
::
Reset
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment